Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.Sign up
GitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
Reset users' startpages if referenced stream/dashboard is deleted. #2702
This change adds a listener and the necessary events, which are posted
Also the StartPage component reloads the current user before redirecting, so the start page reset also affects logged in users, plus the wrapping component (
Motivation and Context
As described in #2400, when a user has set a dashboard/stream as start page and that entity is deleted, the user gets an error every login/click on the Graylog logo on the upper left.
Types of changes
This change adds a listener and the necessary events, which are posted when a stream or dashboard is deleted. The listener will then reset any user's startpage if it references the deleted entity.
I am seeing a problem with this, although I didn't check yet if it is related to the changes in here:
When I set a stream or dashboard as start page, doing a full refresh in any other path is taking me back to the start page I set, which is not what I expected. The redirection to the start page should only happen when going to