Skip to content

query: introduce new ExpectLengthForMultiple query check#607

Open
stephybun wants to merge 6 commits intomainfrom
f/regex-expect-length
Open

query: introduce new ExpectLengthForMultiple query check#607
stephybun wants to merge 6 commits intomainfrom
f/regex-expect-length

Conversation

@stephybun
Copy link
Member

Related Issue

Related to #597

Description

  • Introduces the query check ExpectLengthForMultiple for validating the number of found resources of multiple list blocks
  • Applies a fix to the ExpectLengthAtLeast check

Rollback Plan

  • If a change needs to be reverted, we will roll out an update to the code within 7 days.

Changes to Security Controls

Are there any changes to security controls (access controls, encryption, logging) in this pull request? If so, explain.
None

@stephybun stephybun requested a review from a team as a code owner February 11, 2026 09:29
Copy link
Member Author

Choose a reason for hiding this comment

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

I'm not attached to this name and open to other suggestions, this just seems the most descriptive at first glance to me.

Copy link
Member

Choose a reason for hiding this comment

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

Yeah, tough naming 🤔

Two things I think would be nice to communicate with the name are that it's checking total length and that it's checking via a form of matching resource addresses via regex. What do you think of ExpectTotalLengthForMatching? ExpectTotalLengthForMultiple? 🤔

Copy link
Member Author

Choose a reason for hiding this comment

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

I went with ExpectTotalLengthForMatching

Copy link
Member

@austinvalle austinvalle left a comment

Choose a reason for hiding this comment

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

Looking good! I left some thoughts

Copy link
Member

Choose a reason for hiding this comment

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

Yeah, tough naming 🤔

Two things I think would be nice to communicate with the name are that it's checking total length and that it's checking via a form of matching resource addresses via regex. What do you think of ExpectTotalLengthForMatching? ExpectTotalLengthForMultiple? 🤔

@stephybun stephybun force-pushed the f/regex-expect-length branch from 88908bf to 273cddb Compare February 17, 2026 07:20
@stephybun
Copy link
Member Author

Failing CI is unrelated to this change

@stephybun stephybun enabled auto-merge (squash) February 17, 2026 07:41
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.

2 participants

Comments