Skip to content

refactor!: Use snake case for actors().list(sort_by=...)#736

Merged
vdusek merged 2 commits intomasterfrom
refactor/actors-sort-by-snake-case
Apr 17, 2026
Merged

refactor!: Use snake case for actors().list(sort_by=...)#736
vdusek merged 2 commits intomasterfrom
refactor/actors-sort-by-snake-case

Conversation

@vdusek
Copy link
Copy Markdown
Contributor

@vdusek vdusek commented Apr 17, 2026

Summary

  • Changes the sort_by parameter of ActorCollectionClient(Async).list() from the camelCase API values ('createdAt', 'stats.lastRunStartedAt') to pythonic snake_case values ('created_at', 'last_run_started_at').
  • Adds a small module-level _SORT_BY_TO_API mapping to translate to the API's expected form before dispatching the request.
  • Updates the integration test accordingly.

Closes #700.

Change the sort_by Literal to pythonic snake_case values ('created_at',
'last_run_started_at') and translate them to the API's camelCase form
('createdAt', 'stats.lastRunStartedAt') inside the client.
@vdusek vdusek added adhoc Ad-hoc unplanned task added during the sprint. t-tooling Issues with this label are in the ownership of the tooling team. labels Apr 17, 2026
@vdusek vdusek self-assigned this Apr 17, 2026
@vdusek vdusek requested a review from Pijukatel April 17, 2026 08:47
@github-actions github-actions bot added this to the 138th sprint - Tooling team milestone Apr 17, 2026
@github-actions github-actions bot added the tested Temporary label used only programatically for some analytics. label Apr 17, 2026
@codecov
Copy link
Copy Markdown

codecov bot commented Apr 17, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 95.27%. Comparing base (3d4ce3f) to head (b19b500).
⚠️ Report is 2 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master     #736   +/-   ##
=======================================
  Coverage   95.26%   95.27%           
=======================================
  Files          45       45           
  Lines        5115     5118    +3     
=======================================
+ Hits         4873     4876    +3     
  Misses        242      242           
Flag Coverage Δ
integration 95.27% <100.00%> (+<0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Copy link
Copy Markdown
Contributor

@Pijukatel Pijukatel left a comment

Choose a reason for hiding this comment

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

But this should be marked as breaking, right?

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@vdusek vdusek changed the title refactor: accept snake_case values for actors().list(sort_by=...) refactor!: change actors().list(sort_by=...) values to snake_case Apr 17, 2026
@vdusek vdusek changed the title refactor!: change actors().list(sort_by=...) values to snake_case refactor!: use snake_case for actors().list(sort_by=...) Apr 17, 2026
@vdusek vdusek changed the title refactor!: use snake_case for actors().list(sort_by=...) refactor!: Use snake case for actors().list(sort_by=...) Apr 17, 2026
@vdusek vdusek merged commit eb70b64 into master Apr 17, 2026
26 checks passed
@vdusek vdusek deleted the refactor/actors-sort-by-snake-case branch April 17, 2026 12:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

adhoc Ad-hoc unplanned task added during the sprint. t-tooling Issues with this label are in the ownership of the tooling team. tested Temporary label used only programatically for some analytics.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Consider adding snake_case to camelCase conversion for Literal parameter values

3 participants