FE: Add pinned version view and upgrade path at group namespace level
What does this MR do and why?
This MR allows users to see the version of the agent or flow that is pinned at the group name space level. This MR depended on the configurationForGroup field to be exposed to the front end via GraphQL, which was recently implemented and merged.
Without this, users will not be able to reverse engineer what version of agent are flow their top level group was pinned at when an agent or flow was first enabled.
References
Screenshots or screen recordings
Recommended to play this at 2x (it's 8 minutes 😅 )
How to set up and validate locally
- Create a new agent or flow and enable it in a group
- You should see that the list item in the group are does not have an "Update available" badge, its "show" page does not have an update alert, and its version is v1.0.0
- Update that same agent or flow from the Explore area.
- You should now see in the group area that list item has an "Update available" badge, the "show" page has an update alert that shows you "v1.1.0" when you click "View latest version". Do not update it yet.
- Enable that agent or flow in a project
- You should see that the project is pinned to v1.0.0 (the group's version)
- Update the project agent or flow, which should create a new version v1.2.0. Update your project to this version.
- Notice that you can have a project version that is independent of the group's version
- Update the group level agent or flow to the latest. Take note of the version for step 13
- Make one more edit to the agent or flow and take note of the version
- Update the project level agent or flow
- Now disable the agent or flow at the project level and re-enable it
- You should see that the version the project starts with is the same version as in step 9.
MR acceptance checklist
Evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.
Related to #578590 (closed)
Edited by Angus Ryer