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

[front] Restore search endpoint with proper filtering #9313

Merged
merged 4 commits into from
Dec 13, 2024

Conversation

tdraier
Copy link
Contributor

@tdraier tdraier commented Dec 12, 2024

Description

Restore search endpoint with proper filtering. Pass the view_filter with parent ids to core.

Risk

none

Deploy Plan

Deploy front

Comment on lines +188 to +193
if (req.query.parents_in && typeof req.query.parents_in === "string") {
req.query.parents_in = [req.query.parents_in];
}
if (req.query.parents_not && typeof req.query.parents_not === "string") {
req.query.parents_not = [req.query.parents_not];
}
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I've added that to support passing a single parents_in value

const s = await handleDataSourceSearch({
searchQuery,
dataSource: dataSourceView.dataSource,
dataSourceView,
Copy link
Contributor Author

Choose a reason for hiding this comment

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

New parameter passed here

@tdraier tdraier requested a review from spolu December 12, 2024 14:24
@tdraier tdraier merged commit 722f5d8 into main Dec 13, 2024
4 checks passed
@tdraier tdraier deleted the thomas/restore-endpoint branch December 13, 2024 08:05
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.

2 participants