Skip to content

refactor: Remove internal models module in favor of generated models#649

Closed
vdusek wants to merge 1 commit intomasterfrom
rm-internal-models
Closed

refactor: Remove internal models module in favor of generated models#649
vdusek wants to merge 1 commit intomasterfrom
rm-internal-models

Conversation

@vdusek
Copy link
Contributor

@vdusek vdusek commented Feb 25, 2026

Summary

  • Removes _internal_models.py module — ActorJob and ActorJobResponse are now generated from the OpenAPI spec
  • Regenerates _models.py from updated spec that includes the new schemas
  • Updates import in _resource_client.py from _internal_models to _models

Related

Test plan

  • All 219 unit tests pass
  • Ruff linting clean
  • Type checking clean
  • Verify polling (_wait_for_finish) works correctly with generated models

🤖 Generated with Claude Code

ActorJob and ActorJobResponse schemas were added to the OpenAPI spec
(apify/apify-docs#XXXX), so they are now generated into _models.py.
This removes the manually maintained _internal_models.py module.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@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 Feb 25, 2026
@vdusek vdusek self-assigned this Feb 25, 2026
@vdusek vdusek requested a review from Pijukatel February 25, 2026 15:02
@github-actions github-actions bot added this to the 135th sprint - Tooling team milestone Feb 25, 2026
@vdusek vdusek closed this Feb 25, 2026
@vdusek vdusek deleted the rm-internal-models branch February 25, 2026 15:12
@vdusek vdusek removed the request for review from Pijukatel February 25, 2026 15:12
@codecov
Copy link

codecov bot commented Feb 25, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 96.70%. Comparing base (230bb64) to head (0fadb92).
⚠️ Report is 3 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #649      +/-   ##
==========================================
+ Coverage   96.62%   96.70%   +0.08%     
==========================================
  Files          45       45              
  Lines        4271     4375     +104     
==========================================
+ Hits         4127     4231     +104     
  Misses        144      144              
Flag Coverage Δ
integration 94.92% <100.00%> (+0.24%) ⬆️
unit 76.18% <100.00%> (+0.57%) ⬆️

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.

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.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant