Keep showing create issue loading spinner while redirecting
What does this MR do and why?
Related #440418 (closed)
This will make sure the loading spinner keeps showing while the redirection to the created issue in in progress. Before, the loading spinner would already stop showing once the mutation to create the issue was received.
MR acceptance checklist
Please evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.
Screenshots or screen recordings
Screenshots are required for UI changes, and strongly recommended for all other merge requests.
Before | After |
---|---|
before | after |
With the MR applied and an error occurs, the loading spinner will still disappear:
How to set up and validate locally
Prerequisites
- You need an EE license
- You need to have runners enabled (See $2408961 for setting up a runner)
- Import https://gitlab.com/gitlab-examples/security/security-reports
- Run a pipeline on master
Validate
- Go to a pipeline and click the security tab
- Click on a finding (without a related issue)
- Set throttling in chrome devtools to slow 3G
- Click "Create issue"
- Validate that once the graphql mutation's response is received, the loading spinner keeps spinning
- Go back and click on another finding
- Make sure to set the network throttling to offline
- Click "Create issue"
- Validate that loading spinner is not showing