Skip to content

fix(tasks): add missing skipped state to TaskReviewStatus enum (#55) - #113

Open
themanoj-025 wants to merge 1 commit into
scaleapi:masterfrom
themanoj-025:fix/task-review-status-skipped
Open

themanoj-025 wants to merge 1 commit into
scaleapi:masterfrom
themanoj-025:fix/task-review-status-skipped

Conversation

@themanoj-025

@themanoj-025 themanoj-025 commented Nov 28, 2026 •

Copy link
Copy Markdown

Pull Request Summary

Closes #55

Description

During task audit workflows, tasks can be skipped and are returned with review status skipped. However, TaskReviewStatus enum was missing the Skipped state.

This PR adds:

  • TaskReviewStatus.Skipped = "skipped" to scaleapi/tasks.py.
  • Unit tests in tests/test_tasks.py to verify enum membership, string lookup, and parameter serialization in _process_tasks_endpoint_args.
  • Incremented SDK version in scaleapi/_version.py from 2.20.0 to 2.20.1.

How did you test your code?

  • Created new unit tests in tests/ for the newly implemented methods: Added tests/test_tasks.py covering TaskReviewStatus.Skipped and _process_tasks_endpoint_args serialization.
  • Ran unit tests with pytest tests/test_tasks.py tests/test_audits.py -v: 13 passed in 0.81s.
  • Verified ruff linter checks pass cleanly.

Checklist

  • I have commented my code in details, particularly in hard-to-understand areas
  • I have updated Readme.rst document with examples for newly implemented public methods
  • I have reviewed Deployment and Publishing Guide for Python SDK document
  • I incremented the SDK version in _version.py (unless this PR only updates the documentation).
  • In order to release a new version, a "Release Summary" needs to be prepared and published after the merge

Confidence Score: 5/5 · The PR appears safe to merge.RetriggerView in GreptileConfidence Score: 5/5

The PR appears safe to merge.

Summary

Adds TaskReviewStatus.Skipped and bumps the SDK to 2.20.1.

  • Task queries can now filter by skipped audit status.

Reviews (1) · Last reviewed commit: "fix(tasks): add missing skipped state to..." · Reviewed by Greptile

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.

TaskReviewStatus Enum is missing state "skipped"

1 participant