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

bug 1749561: fix supersearch form and refining search #5976

Merged
merged 2 commits into from
Jan 20, 2022
Merged

bug 1749561: fix supersearch form and refining search #5976

merged 2 commits into from
Jan 20, 2022

Conversation

willkg
Copy link
Collaborator

@willkg willkg commented Jan 20, 2022

This fixes the javascript parts of the supersearch form when you go to refine the search.

It correctly removes the "exists" filters if they exist for the field. It no longer messes up adding a filter for mac_crash_info or other fields where the values get coerced into other things.

It still adds filters for product, product_type, platform, and version rather than adding those to the simple form. I thought about trying to figure that out and then decided it's not critical, so I'd leave it.

Previously, I hard-coded the simple search fields values in the
search_results.html template. This fixes that to use the setting values.
This fixes the javascript parts of the supersearch form when you go to
refine the search.

It correctly removes the "exists" filters if they exist for the field.
It no longer messes up adding a filter for mac_crash_info or other
fields where the values get coerced into other things.

It still adds filters for product, product_type, platform, and version
rather than adding those to the simple form. I thought about trying to
figure that out and then decided it's not _critical_, so I'd leave it.
@willkg willkg merged commit f19412a into mozilla-services:main Jan 20, 2022
@willkg willkg deleted the bug-1749561-refine branch January 21, 2022 15:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant