Skip to content

pkg/contexts: remove org ID normalization#1995

Merged
jmank88 merged 1 commit intomainfrom
CRE-3673-org-id-prefix
Apr 22, 2026
Merged

pkg/contexts: remove org ID normalization#1995
jmank88 merged 1 commit intomainfrom
CRE-3673-org-id-prefix

Conversation

@jmank88
Copy link
Copy Markdown
Contributor

@jmank88 jmank88 commented Apr 22, 2026

https://smartcontract-it.atlassian.net/browse/CRE-3673

This PR updates CRE.Normalized() to leave the org id unmodified.

@github-actions
Copy link
Copy Markdown

📊 API Diff Results

No changes detected for module github.com/smartcontractkit/chainlink-common

View full report

Comment thread pkg/contexts/contexts.go
Comment on lines 43 to 47
c.Owner = strings.TrimPrefix(c.Owner, "0x")
c.Owner = strings.ToLower(c.Owner)

c.Workflow = strings.TrimPrefix(c.Workflow, "0x")
c.Workflow = strings.ToLower(c.Workflow)
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Are these problematic too? Or OK since they are a stricter hex format?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I think those are OK 👍 We already do some normalization in various places so they're less problematic

@jmank88 jmank88 marked this pull request as ready for review April 22, 2026 20:34
@jmank88 jmank88 requested a review from a team as a code owner April 22, 2026 20:34
@jmank88 jmank88 enabled auto-merge April 22, 2026 20:34
@jmank88 jmank88 added this pull request to the merge queue Apr 22, 2026
Merged via the queue into main with commit 23d6ae0 Apr 22, 2026
35 of 36 checks passed
@jmank88 jmank88 deleted the CRE-3673-org-id-prefix branch April 22, 2026 20:48
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.

4 participants