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: correct filter display values #2616

Merged

Conversation

jniles
Copy link
Collaborator

@jniles jniles commented Mar 26, 2018

The search filters must update their display values if the underlying value changes. Previously, the default case was to preserve display values, but it didn't take into account the changes in the underlying value, leading to display values being out of sync with the values.

This was reported in #2595.

The search filters must update their display values if the underlying
value changes.  Previously, the default case was to preserve display
values, but it didn't take into account the changes in the underlying
value, leading to display values being out of sync with the values.

This was reported in Third-Culture-Software#2595.
@jniles jniles added the Bug Fix label Mar 26, 2018
@jniles
Copy link
Collaborator Author

jniles commented Mar 26, 2018

I've tested manually the following conditions:

  1. Add a filter, submit, update it, submit. The filter's display value should change.
  2. Add a filter A, submit, add a filter B, submit. Filter A's display value should always stay the same.
  3. Add a filter A and B. Refresh the page. Both A and B should restore their display values.
  4. Navigating via a ui-sref should use the provided display value.

bors r+

bors bot added a commit that referenced this pull request Mar 26, 2018
2616: fix: correct filter display values r=jniles a=jniles

The search filters must update their display values if the underlying value changes.  Previously, the default case was to preserve display values, but it didn't take into account the changes in the underlying value, leading to display values being out of sync with the values.

This was reported in #2595.
@bors
Copy link
Contributor

bors bot commented Mar 26, 2018

Build succeeded

@bors bors bot merged commit 826d729 into Third-Culture-Software:master Mar 26, 2018
@jniles jniles deleted the fix-all-display-value-errors branch March 26, 2018 14:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant