Skip to content

Refactored Run_event.py to iterator pattern#97

Open
NimishaShrivastava-dev wants to merge 1 commit intohashicorp:next-0.1.3from
NimishaShrivastava-dev:refactoring-iterator-run-event
Open

Refactored Run_event.py to iterator pattern#97
NimishaShrivastava-dev wants to merge 1 commit intohashicorp:next-0.1.3from
NimishaShrivastava-dev:refactoring-iterator-run-event

Conversation

@NimishaShrivastava-dev
Copy link

Summary
Refactored the RunEvents service to use the iterator pattern for its list method, consistent with the approach used in Runs and OAuthTokens.
Updated the run events example script to consume the new iterator-based API.
Added and improved unit tests for RunEvents to cover iterator behavior, input validation, and edge cases.
Ensured all tests, formatting, and linting checks pass.
Details
The list method in RunEvents now yields RunEvent objects directly, supporting efficient and memory-friendly iteration.
Example and tests were updated to us
Screenshot 2026-02-26 at 12 21 50 PM
the new iterator interface.
All checks (formatting, linting, and tests) pass successfully.
Screenshot 2026-02-25 at 2 27 27 PM

@NimishaShrivastava-dev NimishaShrivastava-dev requested a review from a team as a code owner February 26, 2026 06:54
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.

1 participant