-
-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
Merged
billyvg
merged 3 commits into
master
from
feat/ui/dont-load-global-selection-local-storage-on-issue-details
Jun 21, 2019
Merged
feat(ui): Do not load Global Selection values from local storage in Issue Details #13689
billyvg
merged 3 commits into
master
from
feat/ui/dont-load-global-selection-local-storage-on-issue-details
Jun 21, 2019
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7ec0f40
to
2273448
Compare
…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
2273448
to
89c3e17
Compare
lynnagara
reviewed
Jun 18, 2019
src/sentry/static/sentry/app/components/organizations/globalSelectionHeader/index.jsx
Outdated
Show resolved
Hide resolved
lynnagara
reviewed
Jun 18, 2019
src/sentry/static/sentry/app/components/organizations/globalSelectionHeader/index.jsx
Show resolved
Hide resolved
lynnagara
approved these changes
Jun 20, 2019
There was a problem hiding this 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
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.
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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 inBar
, and thennavigating from Issue to Issues list could result in a project that is
neither
Foo
norBar
.Fixes SEN-709
Fixes SEN-658