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

feat(search): Enable data-only checkbox #3744

Merged
merged 3 commits into from
Oct 3, 2024
Merged

Conversation

DafyddLlyr
Copy link
Contributor

@DafyddLlyr DafyddLlyr commented Oct 1, 2024

What does this PR do?

  • Enables "data-only" checkbox to be toggled, which controls if the search uses DATA_FACETS or ALL_FACETS
  • Lists out all text node data values, across all component types, as ALL_FACETS
  • Still behind a feature flag so I'll pick up the tasks below as follow ups
Screen.Recording.2024-10-03.at.10.54.58.mov

Next steps...

Copy link

github-actions bot commented Oct 1, 2024

Removed vultr server and associated DNS entries

@DafyddLlyr DafyddLlyr force-pushed the dp/search-basic-field branch from 7610459 to a154cf7 Compare October 1, 2024 14:40
@DafyddLlyr DafyddLlyr force-pushed the dp/search-basic-field branch from a154cf7 to b22d06d Compare October 2, 2024 06:17
@DafyddLlyr DafyddLlyr requested a review from a team October 3, 2024 09:52
@DafyddLlyr DafyddLlyr marked this pull request as ready for review October 3, 2024 09:52
Copy link
Member

@jessicamcinchak jessicamcinchak left a comment

Choose a reason for hiding this comment

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

Quick questions after a first pass - will come back to this one for a proper review !!

const toggleDataOnly = () =>
isDataOnly()
? formik.setFieldValue("facets", ALL_FACETS)
: formik.setFieldValue("facets", DATA_FACETS);
Copy link
Member

Choose a reason for hiding this comment

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

The logic here feels backwards to me based on naming?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thanks, updated naming 👍

"data.schema.fields.data.description",
"data.schema.fields.data.options.description",
"data.schema.fields.data.options.text",
"data.schema.fields.data.options.data.val",
Copy link
Member

Choose a reason for hiding this comment

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

nit: I think data.schema.fields.data.options.data.val should be considered a data field only search term, rather than general search?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Fantastic catch thank you! 🦅 👀 Looks like a copy/paste error

@DafyddLlyr DafyddLlyr merged commit 2d535f6 into main Oct 3, 2024
12 checks passed
@DafyddLlyr DafyddLlyr deleted the dp/search-basic-field branch October 3, 2024 13:16
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