Skip to content

fix: adds tenant to context before check#686

Merged
mchain0 merged 4 commits into
mainfrom
fix-multi-trigger-flag-check
Jul 14, 2026
Merged

fix: adds tenant to context before check#686
mchain0 merged 4 commits into
mainfrom
fix-multi-trigger-flag-check

Conversation

@MStreet3

@MStreet3 MStreet3 commented Jul 14, 2026

Copy link
Copy Markdown
Contributor

This PR re-adds the flag because we cannot run in mixed mode without the flag, we need to roll this version out with flag with correct context added, then it can be removed in a subsequent release.

@MStreet3 MStreet3 marked this pull request as ready for review July 14, 2026 18:09
@MStreet3 MStreet3 requested review from a team as code owners July 14, 2026 18:09
Comment on lines +467 to +471
ctx = contexts.WithCRE(ctx, contexts.CRE{
Org: orgID,
Owner: workflowOwner,
Workflow: workflowID,
})

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.

Without this context, the flag check fails because no tenant is provided.

require.Equal(t, expectedWorkflowID, workflowIDFromResponse)

executionID, err := workflows.GenerateExecutionIDWithTriggerIndex(strings.TrimPrefix(workflowIDFromResponse, "0x"), requestID, 0)
executionID, err := workflows.EncodeExecutionID(strings.TrimPrefix(workflowIDFromResponse, "0x"), requestID) //nolint:staticcheck // SA1019 legacy execution ID path

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.

have to revert this back to expect legacy ID by default

@mchain0 mchain0 enabled auto-merge July 14, 2026 20:02
@cl-sonarqube-production

Copy link
Copy Markdown

@mchain0 mchain0 added this pull request to the merge queue Jul 14, 2026
Merged via the queue into main with commit 2cf9657 Jul 14, 2026
22 of 23 checks passed
@mchain0 mchain0 deleted the fix-multi-trigger-flag-check branch July 14, 2026 20:17
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.

3 participants