Pipeline Dashboard doesn't update after add/remove project
Summary
When adding/removing a project to the pipeline dashboard, the project list request isn't made again and the dashboard doesn't update so the page has to wait for two minutes until the poll is requested again. This makes the page look unresponsive to the user.
Steps to reproduce
- Go to operations dashboard page.
- Click
Add Projects
- Add a project
- Note that the project was not added to the dashboard
OR
- Go to operations dashboard page.
- Remove a project
- Note that the project was not removed from the dashboard
What is the current bug behavior?
When adding a project to the pipeline dashboard, the project list request isn't made again so the project doesn't show up.
What is the expected correct behavior?
Once the project is added to the dashboard, you should see the project immediately added to the dashboard.
Relevant logs and/or screenshots
Output of checks
This bug happens on GitLab.com
Possible fixes
The function linked below preemptively returns if eTagPoll
is already instantiated, so if the function is called a second time then the poll isn't messed up. This has a side effect of not allowing a request to be made when a project is added or removed. This is the action that is currently being dispatched when projects are added or removed.
There is already an action created called forceProjectsRequest
that is better to use than fetchProjects
.