Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed(Search-Filter): Connect Search Filter and endpoint request #2211

Merged
merged 7 commits into from
Oct 18, 2024

Conversation

MirzaHanan
Copy link
Contributor

@MirzaHanan MirzaHanan commented Sep 24, 2024

Problem:

When a user confirms the filter, these should be used in the /graph/search request

  • type -> node_type
  • max results -> limit
  • source nodes -> top_node_count
  • hops -> depth

closes: #2180

Issue ticket number and link:

@MirzaHanan
Copy link
Contributor Author

Hi @Rassl, Please review this PR.

@MirzaHanan MirzaHanan requested a review from Rassl September 26, 2024 14:05
@MirzaHanan
Copy link
Contributor Author

Hi @Rassl, Please review this PR.

@MirzaHanan
Copy link
Contributor Author

Hi @Rassl, @tomsmith8, Please merge this PR.

Copy link
Collaborator

@Rassl Rassl left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it does not seem to work
image
just closed filters on click "Show result"

@@ -301,7 +301,10 @@ export const useDataStore = create<DataStore>()(
fetchData()
},
resetDataNew: () => null,
setFilters: (filters: FilterParams) => set((state) => ({ filters: { ...state.filters, ...filters, page: 0 } })),
setFilters: (filters: Partial<FilterParams>) => {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @Rassl, I believe you might have missed this part of the code. Could you please review it again? Everything is working well on my side now. Please see the demo:

https://www.loom.com/share/5dec38ba89024a1c93ed297422478ec3

Copy link
Contributor Author

@MirzaHanan MirzaHanan Oct 18, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Rassl, could you please scroll down a bit and take a look at the code above?

@MirzaHanan MirzaHanan requested a review from Rassl October 18, 2024 03:46
@Rassl Rassl merged commit b914f69 into stakwork:master Oct 18, 2024
17 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Connect Search Filter and endpoint request
2 participants