Skip to content

Add curse validation to applyCurse and applyUncurse#2098

Merged
crispymangoes merged 6 commits into
mainfrom
only-allow-cursing-one-direction
May 29, 2026
Merged

Add curse validation to applyCurse and applyUncurse#2098
crispymangoes merged 6 commits into
mainfrom
only-allow-cursing-one-direction

Conversation

@crispymangoes
Copy link
Copy Markdown
Contributor

No description provided.

@github-actions
Copy link
Copy Markdown

👋 crispymangoes, thanks for creating this pull request!

To help reviewers, please consider creating future PRs as drafts first. This allows you to self-review and make any final changes before notifying the team.

Once you're ready, you can mark it as "Ready for review" to request feedback. Thanks!

KodeyThomas
KodeyThomas previously approved these changes May 28, 2026
@KodeyThomas KodeyThomas requested a review from RensR May 28, 2026 14:34
Comment thread deployment/fastcurse/validation.go Outdated
action.SubjectChainSelector,
)
}
if action.ChainSelector == action.SubjectChainSelector {
Copy link
Copy Markdown
Collaborator

@RensR RensR May 28, 2026

Choose a reason for hiding this comment

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

nit: can move this check up to avoid duping it on line 32. Maybe even just combine with the check on 28

if action.IsGlobalCurse || action.ChainSelector == action.SubjectChainSelector {

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Do we even need to make this exception? It wouldn't do anything if we removed this check right?

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.

Comment thread deployment/fastcurse/validation.go Outdated
}

key := laneKey{source: action.ChainSelector, target: action.SubjectChainSelector}
actionInfo := curseActionInfo{
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

super nitty nit: i'd just inline this

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.

RensR
RensR previously approved these changes May 28, 2026
@crispymangoes crispymangoes enabled auto-merge May 28, 2026 15:34
@github-actions
Copy link
Copy Markdown

Metric only-allow-cursing-one-direction main
Coverage 69.9% 69.7%

@crispymangoes crispymangoes added this pull request to the merge queue May 29, 2026
Merged via the queue into main with commit 968850e May 29, 2026
108 of 112 checks passed
@crispymangoes crispymangoes deleted the only-allow-cursing-one-direction branch May 29, 2026 15:01
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