Skip to content

Conversation

TheGostKasper
Copy link
Contributor

Closes #1606

What changed?
Set lastAppliedRevision to every workload

Why was this change made?

Show requested and deployed version of a Helm Release within Pipelines details
Feedback from CX that:

Only showing the declared version makes it difficult to understand state when using semver range
Showing both the HelmRelease spec.chart.spec.version and status.lastAppliedRevision would help with users quickly trying to eyeball the state of their application rollout

@TheGostKasper TheGostKasper added area/ui area/pipelines for issues around cd pipelines labels Oct 4, 2022
Copy link
Collaborator

@yiannistri yiannistri left a comment

Choose a reason for hiding this comment

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

LGTM 👍 Can we add a test for the new field to make sure it's coming back as expected?

Copy link
Contributor

@jpellizzari jpellizzari left a comment

Choose a reason for hiding this comment

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

No blockers

@@ -866,10 +866,6 @@ exports[`Applications index test snapshots success 1`] = `
text-overflow: ellipsis;
}

.c15 .filter-options-chip {
Copy link
Contributor

Choose a reason for hiding this comment

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

Should this have changed?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This happens a lot lately, when running npm test -- -u without even change a thing in application

@@ -1,3 +1,4 @@
/* eslint-disable testing-library/no-node-access */
Copy link
Contributor

Choose a reason for hiding this comment

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

❓ Any idea why we would want to do DOM traversal here (had to look up what this rule did). https://github.com/testing-library/eslint-plugin-testing-library/blob/main/docs/rules/no-node-access.md

Copy link
Contributor Author

Choose a reason for hiding this comment

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

We need to select an element from another element here and testing-library doesn't support all the functionality we want.

@TheGostKasper TheGostKasper merged commit 0547905 into main Oct 5, 2022
@TheGostKasper TheGostKasper deleted the 1606-include-lastAppliedRevision branch October 5, 2022 11:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/pipelines for issues around cd pipelines area/ui
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Update API response to include spec.chart.spec.version and status.lastAppliedRevision fields
3 participants