Retry application upgrade > Success message (Add toast success message)
What does this MR do?
When a user retries a Runner application upgrade and it succeeds, the user will see a banner alert.
This MR replaces the current banner alert with a toast message.
Closes #57017 (closed)
Dependent on gitlab-ui!235 (merged)
Note: In order to test this MR the yarn install
command needs to be executed in the project.
Preview
To simulate an "Upgrade failure" state (to show the Retry update button), the following commands can be executed:
Open rails console: bundle exec rails console
In rails console execute the following:
-
cluster = Clusters::Cluster.find <id>
Note:<id>
can be found in the browser url when navigating to the cluster runner = cluster.application_runner
runner.update!(status: 6)
To simulate an "Upgrade succeeded" state (to show the toast message):
Click the Retry update
button and wait for a successful upgrade.