Skip to content

Conversation

keithchong
Copy link
Contributor

@keithchong keithchong commented Mar 19, 2025

DO NOT MERGE UNTIL OCI Beta PR is merged (There are merge conflicts)

Fixes part of #21685

Checklist:

  • Either (a) I've created an enhancement proposal and discussed it with the community, (b) this is a bug fix, or (c) this does not need to be in the release notes.
  • The title of the PR states what changed and the related issues number (used for the release note).
  • The title of the PR conforms to the Toolchain Guide
  • I've included "Closes [ISSUE #]" or "Fixes [ISSUE #]" in the description to automatically close the associated issue.
  • I've updated both the CLI and UI to expose my feature, or I plan to submit a second PR with them.
  • Does this PR require documentation updates?
  • I've updated documentation as required by this PR.
  • I have signed off all my commits as required by DCO
  • I have written unit and/or e2e tests for my change. PRs without these are unlikely to be merged.
  • My build is green (troubleshooting builds).
  • My new feature complies with the feature status guidelines.
  • I have added a brief description of why this PR is necessary and/or what this PR solves.
  • Optional. My organization is added to USERS.md.
  • Optional. For bug fixes, I've indicated what older releases this fix should be cherry-picked into (this may or may not happen depending on risk/complexity).
Screenshot 2025-06-16 at 3 13 38 PM

@keithchong keithchong requested a review from a team as a code owner March 19, 2025 16:48
Copy link

bunnyshell bot commented Mar 19, 2025

❌ Preview Environment deleted from Bunnyshell

Available commands (reply to this comment):

  • 🚀 /bns:deploy to deploy the environment

@blakepettersson
Copy link
Member

@keithchong can you fix the conflict?

Signed-off-by: Keith Chong <kykchong@redhat.com>
@keithchong keithchong force-pushed the 21685-OCI-UI-Changes branch from f3bf703 to c0b29a0 Compare June 16, 2025 18:16
Signed-off-by: Keith Chong <kykchong@redhat.com>
@keithchong
Copy link
Contributor Author

@blakepettersson , I've updated this PR.

Signed-off-by: Keith Chong <kykchong@redhat.com>
Signed-off-by: Keith Chong <kykchong@redhat.com>
Copy link
Contributor

@aali309 aali309 left a comment

Choose a reason for hiding this comment

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

LGTM!

@keithchong
Copy link
Contributor Author

Hi @agaudreault , could we get this in for 3.1? Release 3.1, since the main OCI feature PR was merged there.

@agaudreault agaudreault merged commit 2c53861 into argoproj:master Jun 16, 2025
24 checks passed
message += ' (' + revision.substring(0, 14) + ')';
} else {
message += ' (' + revision.substring(0, 7) + ')';
}
Copy link
Contributor

Choose a reason for hiding this comment

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

The whole block can be simplified as (untested pseudo-code):

let revAbbrvLen = 7;
// Show "sha256: " plus the first 7 actual characters of the digest.
if (source.repoURL.startsWith('oci://') && revision.startsWith('sha256:')) {
    revAbbrvLen = 14;
}
message += ' (' + revision.substring(0, 7) + ')';

@@ -12,7 +12,7 @@ export const Revision = ({repoUrl, revision, path, isForPath, children}: {repoUr
if (url !== null && hasPath) {
url += '/' + path;
}
const content = children || (isSHA(revision) ? revision.substr(0, 7) : revision);
const content = children || (isSHA(revision) ? (revision.startsWith('sha256:') ? revision.substr(0, 14) : revision.substr(0, 7)) : revision);
Copy link
Contributor

Choose a reason for hiding this comment

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

Similarly, as above:

const content = children || (isSHA(revision) ? (revision.substr(0, revision.startsWith('sha256:') ? 14 : 7 ) : revision);

enneitex pushed a commit to enneitex/argo-cd that referenced this pull request Aug 24, 2025
…j#22410)

Signed-off-by: Keith Chong <kykchong@redhat.com>
Signed-off-by: enneitex <etienne.divet@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants