Skip to content

feat(ui): Do not load Global Selection values from local storage in Issue Details #13689

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

Conversation

billyvg
Copy link
Member

@billyvg billyvg commented Jun 14, 2019

This is for the case where an Issue is accessed from a direct URL.
Previously it would load the last accessed project/env from local storage.
This is not desired behavior when accessing an Issue directly. This will
look for a route to Issue details and avoid loading the store.

However we also want to initialize the store if we leave the issue details
page. Otherwise (this is exacerbated in the single project case), you could
have last accessed project Foo, open url to issue in Bar, and then
navigating from Issue to Issues list could result in a project that is
neither Foo nor Bar.

Fixes SEN-709
Fixes SEN-658

@billyvg billyvg requested a review from a team June 14, 2019 16:42
@billyvg billyvg force-pushed the feat/ui/dont-load-global-selection-local-storage-on-issue-details branch from 7ec0f40 to 2273448 Compare June 14, 2019 16:52
billyvg added 2 commits June 17, 2019 16:55
…ssue Details

This is for the case where an Issue is accessed from a direct URL. Previously it would load the last accessed project/env from local storage. This is not desired behavior when accessing an Issue directly. This will look for a route to Issue details and avoid loading the store.

However we also want to initialize the store if we leave the issue details page. Otherwise (this is exacerbated in the single project case), you could have last accessed project `Foo`, open url to issue in `Bar`, and then navigating from Issue to Issues list could result in a project that is neither `Foo` nor `Bar`.

Fixes SEN-709
Fixes SEN-658
@billyvg billyvg force-pushed the feat/ui/dont-load-global-selection-local-storage-on-issue-details branch from 2273448 to 89c3e17 Compare June 17, 2019 23:55
@billyvg billyvg requested a review from lynnagara June 19, 2019 21:06
Copy link
Member

@lynnagara lynnagara left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems to work well

@billyvg billyvg merged commit 0e4ad37 into master Jun 21, 2019
@billyvg billyvg deleted the feat/ui/dont-load-global-selection-local-storage-on-issue-details branch June 21, 2019 18:18
@dashed dashed mentioned this pull request Oct 30, 2019
1 task
billyvg added a commit that referenced this pull request Apr 22, 2020
This basically re-implements #13689 in a more simple way. This is possible due to other changes that we have done to issue details (#13875, #14731).

This also (semi) fixes an issue with loading Issue Details with an environment in the URL. Previously, it would fetch details API serially: 1) without env and 2) with env.
There would be a slight flicker between loading -> finished req #1 -> loading -> finished req #2. Now this seems to fire both at near the same time and cancels the initial request almost immediately.

This is still not ideal but is an interim-fix as the ideal solution is a bit more involved, but will be on its way.
billyvg added a commit that referenced this pull request Apr 23, 2020
This basically re-implements #13689 in a more simple way. This is possible due to other changes that we have done to issue details (#13875, #14731).

This also (semi) fixes an issue with loading Issue Details with an environment in the URL. Previously, it would fetch details API serially: 1) without env and 2) with env.
There would be a slight flicker between loading -> finished req #1 -> loading -> finished req #2. Now this seems to fire both at near the same time and cancels the initial request almost immediately.

This is still not ideal but is an interim-fix as the ideal solution is a bit more involved, but will be on its way.
billyvg added a commit that referenced this pull request Apr 26, 2020
This basically re-implements #13689 in a more simple way. This is possible due to other changes that we have done to issue details (#13875, #14731).

This also (semi) fixes an issue with loading Issue Details with an environment in the URL. Previously, it would fetch details API serially: 1) without env and 2) with env.
There would be a slight flicker between loading -> finished req #1 -> loading -> finished req #2. Now this seems to fire both at near the same time and cancels the initial request almost immediately.

This is still not ideal but is an interim-fix as the ideal solution is a bit more involved, but will be on its way.
billyvg added a commit that referenced this pull request Apr 27, 2020
This basically re-implements #13689 in a more simple way. This is possible due to other changes that we have done to issue details (#13875, #14731).

This also (semi) fixes an issue with loading Issue Details with an environment in the URL. Previously, it would fetch details API serially: 1) without env and 2) with env.
There would be a slight flicker between loading -> finished req #1 -> loading -> finished req #2. Now this seems to fire both at near the same time and cancels the initial request almost immediately.

This is still not ideal but is an interim-fix as the ideal solution is a bit more involved, but will be on its way.

The tests introduced in #18452 should cover the changes in this PR.
@github-actions github-actions bot locked and limited conversation to collaborators Dec 20, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants