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

fix facets not being persisted when applied from the URL #1429

Merged
merged 2 commits into from
Jun 9, 2021

Conversation

oshi97
Copy link
Contributor

@oshi97 oshi97 commented Jun 8, 2021

When sending facets in a search request, there is logic that first checks
whether FACET_FILTER_NODES exist. If none exist, we default to using whatever
was persisted in the URL. The issue was that this logic was not being duplicated
for persisting facets in the URL. If facets were applied from the URL on a search
run on page load, for example, we would try to persist facets using the FACET_FILTER_NODE
state on page load, which would be no filter nodes existing. Defaulting this to whatever
is persisted in the URL fixes the issue.

J=SLAP-1377
TEST=manual,auto

saw that I can double refresh the page with facets applied from the url, and also
that the back and forwards buttons work for facets

added a additional refresh and forward nav actions to the facetsonload acceptance test to
test double refreshing and forward naving with facets from the URL
saw that, without this fix updating the acceptance test this way would cause it to fail
added a new facetsonload.html for this test, with the only difference being
searchOnChange: true for facets (which is the default as well as more common config setting)

When sending facets in a search request, there is logic that first checks
whether FACET_FILTER_NODES exist. If none exist, we default to using whatever
was persisted in the URL. The issue was that this logic was not being duplicated
for persisting facets in the URL. If facets were applied from the URL on a search
run on page load, for example, we would try to persist facets using the FACET_FILTER_NODE
state on page load, which would be no filter nodes existing. Defaulting this to whatever
is persisted in the URL fixes the issue.

J=SLAP-1377
TEST=manual,auto

saw that I can double refresh the page with facets applied from the url, and also
that the back and forwards buttons work for facets

added a additional refresh and forward nav actions to the facetsonload acceptance test to
test double refreshing and forward naving with facets from the URL
added a new facetsonload.html for this test, with the only difference being
 searchOnChange: true for facets (which is the default as well as more common config setting)
@oshi97 oshi97 changed the title fix facets not being persisted if the search applied facets from the URL fix facets not being persisted when applied from the URL Jun 8, 2021
@tmeyer2115 tmeyer2115 merged commit 868b706 into hotfix/v1.8.4 Jun 9, 2021
@tmeyer2115 tmeyer2115 mentioned this pull request Jun 9, 2021
tmeyer2115 added a commit that referenced this pull request Jun 9, 2021
## Fixes
- Fixed a bug that prevented Facets in the URL from being applied on page load. (#1429)
@tmeyer2115 tmeyer2115 mentioned this pull request Jun 10, 2021
tmeyer2115 added a commit that referenced this pull request Jun 10, 2021
## Fixes
- Fixed a bug that prevented Facets in the URL from being applied on page load. (#1429)
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.

None yet

2 participants