Repository navigation
chore: require servicekit 2.0.2 and use the public JobOptions - #98
Merged
Merged
Conversation
servicekit 2.0.1 exported JobOptions as the public type for the _create_scheduler hook, and 2.0.2 routes FastAPI request validation errors through the Problem Details handler. Pin servicekit>=2.0.2,<3, refresh the lockfile, and drop the private _JobOptions import.
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Bumps the servicekit constraint to
servicekit>=2.0.2,<3and refreshes the lockfile (resolves 2.0.2).Switches the
_create_scheduleroverride inServiceBuilderfrom the private_JobOptionsimport to the publicJobOptionsthat servicekit 2.0.1 exports for exactly this hook.Behavior picked up from servicekit 2.0.1 and 2.0.2 without chapkit code changes: constraint violations on create (for example an unknown artifact
parent_id) now return a 409 with the detailEntity violates a database constraintinstead of a misleading duplicate-id message, and request validation failures (malformed body, out-of-rangepageorsize) are RFC 9457 Problem Details with the error list undererrors. The artifact guide already describes the 2.0.1 wording.Test plan
make lintclean (ruff, mypy, pyright).make test: 861 passed, 3 skipped, 13 deselected against servicekit 2.0.2.