Closed SpecLad closed 1 month ago
[!IMPORTANT]
Review skipped
Auto incremental reviews are disabled on this repository.
Please check the settings in the CodeRabbit UI or the
.coderabbit.yaml
file in this repository. To trigger a single review, invoke the@coderabbitai review
command.You can disable this status message by setting the
reviews.review_status
tofalse
in the CodeRabbit configuration file.
The recent changes enhance the CVAT system by introducing a new functionID
within the Operation
type and adding an AUTOANNOTATE
action to the RequestAction
class. These modifications improve operation tracking and expand the capabilities related to automated annotations. Additionally, updates to serializers, job handling, and schema definitions increase the flexibility and robustness of the system, further supporting effective request processing and metadata management.
Files | Change Summary |
---|---|
cvat-core/src/request.ts |
Added functionID to Operation type; updated Request class to include functionID in the constructed object. |
cvat/apps/engine/models.py |
Introduced AUTOANNOTATE to RequestAction , expanding available request actions. |
cvat/apps/engine/rq_job_handler.py |
Added FUNCTION_ID to RQJobMetaField ; updated _OPTIONAL_FIELD_REQUIREMENTS to include RequestAction.AUTOANNOTATE ; modified render and parse methods. |
cvat/apps/engine/serializers.py |
Introduced function_id as an optional field in RequestDataOperationSerializer and updated to_representation method. |
cvat/apps/lambda_manager/views.py |
Refined enqueue method logic for job handling; included RQJobMetaField.FUNCTION_ID in job metadata creation. |
cvat/schema.yml |
Added autoannotate to schema enum; introduced nullable function_id property in components. |
sequenceDiagram
participant User
participant LambdaManager
participant RQJobMetaField
participant RQId
User->>LambdaManager: Request job for auto annotation
LambdaManager->>RQId: Create job identifier
LambdaManager->>RQJobMetaField: Set job metadata including FUNCTION_ID
RQJobMetaField-->>LambdaManager: Return metadata
LambdaManager-->>User: Job successfully enqueued
π In the land of code where the rabbits play,
New features hop in to brighten the day!
With function IDs and actions anew,
Autoannotate joins the crew!
Letβs celebrate this vibrant spree,
With joy in our hearts, as happy as can be! πΌβ¨
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
@Marishka17 Could you review?
Issues
1 New issue
0 Accepted issues
Measures
0 Security Hotspots
0.0% Coverage on New Code
0.0% Duplication on New Code
Define an RQ ID format for auto-annotation jobs, and make use of it.
Add a
function_id
field toRequestSerializer
, so that the general request API can expose the same information as the lambda request API. (In truth, the lambda request API also exposes the "threshold" field, but the UI doesn't use it, and I don't see the point in having it.)Note that this doesn't actually enable the general request API for auto-annotation requests. This is because a similar patch needs to first be applied to the Enterprise version, otherwise requests for Roboflow/Hugging Face jobs will be invisible.
Motivation and context
We're trying to unify the API for managing long-running requests.
How has this been tested?
Manual testing.
Checklist
develop
branch[ ] I have created a changelog fragment[ ] I have updated the documentation accordingly[ ] I have added tests to cover my changesLicense
Summary by CodeRabbit
New Features
functionID
property to enhance operation tracking.AUTOANNOTATE
action to expand request handling options.function_id
field in serializers for better data representation.Bug Fixes
Documentation
autoannotate
operation type andfunction_id
property.