Skip to content

Conversation

CyberShadow
Copy link
Member

Instant search had a little bit of hard-coded references to GuidedBugEntry's products.js.

Refactor these so GuidedBugEntry can gracefully inject the product synonyms remains a TODO, but for now, allow instant search to work on its own.

getProduct had a hard dependency on the 'products' object, which is
provided by products.js from the GuidedBugEntry extension.

Check if the products variable exists before attempting to use
it. This can happen when loading products.js fails, which in turn can
happen when the GuidedBugEntry extension isn't present.
Fixes a 404 if the GuidedBugEntry extension is not present.
Fixes remaining dependency on GuidedBugEntry.
@CyberShadow CyberShadow force-pushed the instant-search-wo-guidedbugentry branch from c3529aa to 74347bf Compare April 3, 2018 11:31
@dylanwh dylanwh merged commit f786d42 into bugzilla:unstable Apr 8, 2018
dylanwh pushed a commit that referenced this pull request Jun 28, 2020
* instant-search.js: Don't fail if product map isn't loaded

getProduct had a hard dependency on the 'products' object, which is
provided by products.js from the GuidedBugEntry extension.

Check if the products variable exists before attempting to use
it. This can happen when loading products.js fails, which in turn can
happen when the GuidedBugEntry extension isn't present.

* Instant search: Don't load products.js without GuidedBugEntry

Fixes a 404 if the GuidedBugEntry extension is not present.

* instant-search.js: Use throbber.gif from core

Fixes remaining dependency on GuidedBugEntry.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants