Skip to content

Conversation

@pkwarren
Copy link
Member

Update generated code to match runtime requirement (6.30.1). Make some small fixes to custom CEL functions.

Update generated code to match runtime requirement (6.30.1). Make some
small fixes to custom CEL functions.
@pkwarren pkwarren requested review from smaye81 and timostamm April 15, 2025 12:49
enabled: true
plugins:
- remote: buf.build/protocolbuffers/python:v29.3
- remote: buf.build/protocolbuffers/python:v30.1
Copy link
Member Author

Choose a reason for hiding this comment

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

Saw warnings when running the tests that the generated code version didn't match the runtime version. Upgraded it to match here.

start = self._index

while True:
if self._index >= len(self._string) or not self.__digit():
Copy link
Member Author

Choose a reason for hiding this comment

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

Noticed this pattern in a few places - I think it is better to lift the condition into the while statement if possible. We were doing this already in a few places in the URI parsing but not here.

Copy link
Member

@timostamm timostamm left a comment

Choose a reason for hiding this comment

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

Thanks, this looks great.

@pkwarren pkwarren merged commit aef7b62 into sayers/validation_upgrades Apr 15, 2025
7 checks passed
@pkwarren pkwarren deleted the pkw/validation_upgrades branch April 15, 2025 14: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.

4 participants