Skip to content

Conversation

joshri
Copy link
Contributor

@joshri joshri commented Sep 23, 2022

Closes #2706

The HelmChart class has two new getters which are displayed in the details view - Version, and Revision (should this be artifact revision?)
The HelmRelease class has three - Version, Last Applied Revision, and Last Attempted Revision

Screenshots below - yes, there's a couple unfortunate bugs I found here with the overflow styling of chip group...and a chip will be created if you just press enter on the search input with no content...........issue incoming :(

image

image

@joshri joshri requested review from ozamosi and opudrovs September 23, 2022 18:56
@joshri joshri added the area/ui Issues that require front-end work label Sep 23, 2022
Copy link
Contributor

@ozamosi ozamosi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Works as expected, though I also put one suggestion for UI clarification.

@@ -34,6 +34,8 @@ function HelmChartDetail({ className, helmChart }: Props) {
info={[
["Type", Kind.HelmChart],
["Chart", helmChart.chart],
["Version", helmChart.version],
["Revision", helmChart.revision],
Copy link
Contributor

@ozamosi ozamosi Sep 26, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 The "version" vs "revision" distinction is weird to me. At least to me, "version" and "revision" can be used interchangeably, and I'd use revision for "automatic" versioning (i.e. git commits) and version for "active" versioning (i.e. git tags) - and that's not at all what's going on here! Version is a "version mask", "version selector" or "version specification", and revision is "actual version" or "highest version matching the version field". I looked at the flux documentation to see if they use more precise terms, but the best I can find is "artifact revision", which is perfectly accurate but also requires you to have a deep understanding of the source controller for it to be helpful.

This isn't too bad on the helm release page (because "last applied" and "last attempted" helps explain that they're "discovered" and thus status, so that helps suggest "chart version" isn't discovered and thus specified), but here I can't help go "wait, what?".

tl;dr: My concrete suggestion is to change "Revision" to "Latest Revision" or "Current Revision". That way it would also "look like" it comes from status, to help distinguish between the two.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"Current Revision" it is!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/ui Issues that require front-end work
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Show chart version in a HelmRelease and HelmChart details pages
3 participants