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(reports): keep url/report data in sync #4142

Merged
merged 1 commit into from Feb 3, 2020

Conversation

jniles
Copy link
Contributor

@jniles jniles commented Jan 28, 2020

This PR fixes a longstanding bug in the reports module in which the
report's reference would get out of sync with the URL. When a user
attempted to save the report or view the archives, sometimes a different
report title would be presented. We re-sync the report data on every
transition now, since the resolve() was not being called when :reportKey
was changing in the URL.

Demonstration of the problem
vgxR9XscSQ

Demonstration of the solution
ckc3eh4xUO

This commit fixes a longstanding bug in the reports module in which the
report's reference would get out of sync with the URL.  When a user
attempted to save the report or view the archives, sometimes a different
report title would be presented.  We re-sync the report data on every
transition now, since the resolve() was not being called when :reportKey
was changing in the URL.
@jniles
Copy link
Contributor Author

jniles commented Feb 3, 2020

bors r+

bors bot added a commit that referenced this pull request Feb 3, 2020
4142: fix(reports): keep url/report data in sync r=jniles a=jniles

This PR fixes a longstanding bug in the reports module in which the
report's reference would get out of sync with the URL.  When a user
attempted to save the report or view the archives, sometimes a different
report title would be presented.  We re-sync the report data on every
transition now, since the `resolve()` was not being called when :reportKey
was changing in the URL.

**Demonstration of the problem**
![vgxR9XscSQ](https://user-images.githubusercontent.com/896472/73254326-8047c400-41be-11ea-9102-b7de72deca65.gif)


**Demonstration of the solution**
![ckc3eh4xUO](https://user-images.githubusercontent.com/896472/73254424-af5e3580-41be-11ea-8d75-2404462bed19.gif)


Co-authored-by: Jonathan Niles <jonathanwniles@gmail.com>
@bors
Copy link
Contributor

bors bot commented Feb 3, 2020

@bors bors bot merged commit 77d9039 into IMA-WorldHealth:master Feb 3, 2020
@jniles jniles deleted the fix-report-url-bugs branch February 3, 2020 14:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants