Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
98 changes: 75 additions & 23 deletions .mock/definition/__package__.yml
Original file line number Diff line number Diff line change
Expand Up @@ -401,10 +401,10 @@ types:
inline: true
Annotation:
docs: |-
A ModelSerializer that takes additional arguments for
"fields", "omit" and "expand" in order to
control which fields are displayed, and whether to replace simple
values with complex, nested serializations
Annotation Serializer with FSM state support.

Note: The 'state' field will be populated from the queryset annotation
if present, preventing N+1 queries. Use .with_state() on your queryset.
properties:
bulk_created:
type: optional<boolean>
Expand Down Expand Up @@ -466,6 +466,7 @@ types:
result:
type: optional<list<map<string, unknown>>>
docs: List of annotation results for the task
state: string
task:
type: optional<integer>
docs: Corresponding task for this annotation
Expand Down Expand Up @@ -581,10 +582,10 @@ types:
inline: true
AnnotationRequest:
docs: |-
A ModelSerializer that takes additional arguments for
"fields", "omit" and "expand" in order to
control which fields are displayed, and whether to replace simple
values with complex, nested serializations
Annotation Serializer with FSM state support.

Note: The 'state' field will be populated from the queryset annotation
if present, preventing N+1 queries. Use .with_state() on your queryset.
properties:
bulk_created:
type: optional<boolean>
Expand Down Expand Up @@ -651,10 +652,14 @@ types:
openapi: openapi/openapi.yaml
AnnotationReview:
docs: |-
A ModelSerializer that takes additional arguments for
"fields", "omit" and "expand" in order to
control which fields are displayed, and whether to replace simple
values with complex, nested serializations
AnnotationReview Serializer with FSM state support.

Note: The 'state' field will be populated from the queryset annotation
if present, preventing N+1 queries. Use .with_state() on your queryset.

The state field display is controlled by both:
- fflag_feat_fit_568_finite_state_management (FSM background calculations)
- fflag_feat_fit_710_fsm_state_fields (state field display in APIs)
properties:
accepted:
type: optional<boolean>
Expand All @@ -679,14 +684,19 @@ types:
remove_from_queue: optional<boolean>
result: optional<unknown>
started_at: optional<datetime>
state: string
source:
openapi: openapi/openapi.yaml
AnnotationReviewRequest:
docs: |-
A ModelSerializer that takes additional arguments for
"fields", "omit" and "expand" in order to
control which fields are displayed, and whether to replace simple
values with complex, nested serializations
AnnotationReview Serializer with FSM state support.

Note: The 'state' field will be populated from the queryset annotation
if present, preventing N+1 queries. Use .with_state() on your queryset.

The state field display is controlled by both:
- fflag_feat_fit_568_finite_state_management (FSM background calculations)
- fflag_feat_fit_710_fsm_state_fields (state field display in APIs)
properties:
accepted:
type: optional<boolean>
Expand Down Expand Up @@ -1592,6 +1602,15 @@ types:
source:
openapi: openapi/openapi.yaml
Comment:
docs: |-
Comment Serializer with FSM state support.

Note: The 'state' field will be populated from the queryset annotation
if present, preventing N+1 queries. Use .with_state() on your queryset.

The state field display is controlled by both:
- fflag_feat_fit_568_finite_state_management (FSM background calculations)
- fflag_feat_fit_710_fsm_state_fields (state field display in APIs)
properties:
annotation: optional<integer>
classifications: optional<unknown>
Expand All @@ -1611,6 +1630,7 @@ types:
resolved_at:
type: optional<datetime>
docs: Resolving time
state: string
task: optional<integer>
text:
type: optional<string>
Expand All @@ -1621,6 +1641,15 @@ types:
source:
openapi: openapi/openapi.yaml
CommentRequest:
docs: |-
Comment Serializer with FSM state support.

Note: The 'state' field will be populated from the queryset annotation
if present, preventing N+1 queries. Use .with_state() on your queryset.

The state field display is controlled by both:
- fflag_feat_fit_568_finite_state_management (FSM background calculations)
- fflag_feat_fit_710_fsm_state_fields (state field display in APIs)
properties:
annotation: optional<integer>
classifications: optional<unknown>
Expand All @@ -1635,6 +1664,15 @@ types:
source:
openapi: openapi/openapi.yaml
CommentSerializerWithExpandedUser:
docs: |-
Comment Serializer with FSM state support.

Note: The 'state' field will be populated from the queryset annotation
if present, preventing N+1 queries. Use .with_state() on your queryset.

The state field display is controlled by both:
- fflag_feat_fit_568_finite_state_management (FSM background calculations)
- fflag_feat_fit_710_fsm_state_fields (state field display in APIs)
properties:
annotation: optional<integer>
classifications: optional<unknown>
Expand All @@ -1652,6 +1690,7 @@ types:
resolved_at:
type: optional<datetime>
docs: Resolving time
state: string
task: optional<integer>
text:
type: optional<string>
Expand Down Expand Up @@ -5040,7 +5079,7 @@ types:
openapi: openapi/openapi.yaml
inline: true
LseTask:
docs: Task Serializer with project scheme configs validation
docs: Data Manager Task Serializer with FSM state support.
properties:
agreement: string
agreement_selected: string
Expand Down Expand Up @@ -5119,6 +5158,7 @@ types:
reviewers_count: integer
reviews_accepted: optional<integer>
reviews_rejected: optional<integer>
state: string
storage_filename: string
total_annotations: optional<integer>
total_predictions: optional<integer>
Expand Down Expand Up @@ -5435,7 +5475,7 @@ types:
openapi: openapi/openapi.yaml
inline: true
LseTaskSerializerForAnnotators:
docs: Task Serializer with project scheme configs validation
docs: Data Manager Task Serializer with FSM state support.
properties:
annotations: string
annotations_results: string
Expand Down Expand Up @@ -5497,7 +5537,7 @@ types:
openapi: openapi/openapi.yaml
inline: true
LseTaskSerializerForReviewers:
docs: Task Serializer with project scheme configs validation
docs: Data Manager Task Serializer with FSM state support.
properties:
agreement: string
agreement_selected: string
Expand Down Expand Up @@ -5576,6 +5616,7 @@ types:
reviewers_count: integer
reviews_accepted: optional<integer>
reviews_rejected: optional<integer>
state: string
storage_filename: string
total_annotations: optional<integer>
total_predictions: optional<integer>
Expand Down Expand Up @@ -7451,11 +7492,12 @@ types:
source:
openapi: openapi/openapi.yaml
RoleBasedTask:
discriminated: false
discriminant: user_role
base-properties: {}
union:
- LseTask
- LseTaskSerializerForReviewers
- LseTaskSerializerForAnnotators
LseTask: LseTask
LseTaskSerializerForAnnotators: LseTaskSerializerForAnnotators
LseTaskSerializerForReviewers: LseTaskSerializerForReviewers
source:
openapi: openapi/openapi.yaml
S3DatasetStorage:
Expand Down Expand Up @@ -8030,6 +8072,15 @@ types:
source:
openapi: openapi/openapi.yaml
TaskAssignment:
docs: |-
TaskAssignment Serializer with FSM state support.

Note: The 'state' field will be populated from the queryset annotation
if present, preventing N+1 queries. Use .with_state() on your queryset.

The state field display is controlled by both:
- fflag_feat_fit_568_finite_state_management (FSM background calculations)
- fflag_feat_fit_710_fsm_state_fields (state field display in APIs)
properties:
assignee:
type: integer
Expand All @@ -8038,6 +8089,7 @@ types:
type: datetime
docs: Time of assignment
id: integer
state: string
task:
type: integer
docs: Assigned task
Expand Down
5 changes: 5 additions & 0 deletions .mock/definition/annotationReviews.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ service:
result:
key: value
started_at: '2024-01-15T09:30:00Z'
state: state
audiences:
- public
create:
Expand Down Expand Up @@ -90,6 +91,7 @@ service:
result:
key: value
started_at: '2024-01-15T09:30:00Z'
state: state
audiences:
- public
get:
Expand Down Expand Up @@ -131,6 +133,7 @@ service:
result:
key: value
started_at: '2024-01-15T09:30:00Z'
state: state
audiences:
- public
api_annotation_reviews_update:
Expand Down Expand Up @@ -177,6 +180,7 @@ service:
result:
key: value
started_at: '2024-01-15T09:30:00Z'
state: state
audiences:
- internal
delete:
Expand Down Expand Up @@ -262,6 +266,7 @@ service:
result:
key: value
started_at: '2024-01-15T09:30:00Z'
state: state
audiences:
- public
source:
Expand Down
4 changes: 4 additions & 0 deletions .mock/definition/annotations.yml
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,7 @@ service:
width: 50
x: 20
'y': 30
state: state
task: 1
updated_at: '2024-01-15T09:30:00Z'
updated_by: 1
Expand Down Expand Up @@ -296,6 +297,7 @@ service:
width: 50
x: 20
'y': 30
state: state
task: 1
updated_at: '2024-01-15T09:30:00Z'
updated_by: 1
Expand Down Expand Up @@ -361,6 +363,7 @@ service:
project: 1
result:
- key: value
state: state
task: 1
updated_at: '2024-01-15T09:30:00Z'
updated_by: 1
Expand Down Expand Up @@ -486,6 +489,7 @@ service:
width: 50
x: 20
'y': 30
state: state
task: 1
updated_at: '2024-01-15T09:30:00Z'
updated_by: 1
Expand Down
5 changes: 5 additions & 0 deletions .mock/definition/comments.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ service:
region_ref:
key: value
resolved_at: '2024-01-15T09:30:00Z'
state: state
task: 1
text: text
updated_at: '2024-01-15T09:30:00Z'
Expand Down Expand Up @@ -95,6 +96,7 @@ service:
region_ref:
key: value
resolved_at: '2024-01-15T09:30:00Z'
state: state
task: 1
text: text
updated_at: '2024-01-15T09:30:00Z'
Expand Down Expand Up @@ -176,6 +178,7 @@ service:
region_ref:
key: value
resolved_at: '2024-01-15T09:30:00Z'
state: state
task: 1
text: text
updated_at: '2024-01-15T09:30:00Z'
Expand Down Expand Up @@ -227,6 +230,7 @@ service:
region_ref:
key: value
resolved_at: '2024-01-15T09:30:00Z'
state: state
task: 1
text: text
updated_at: '2024-01-15T09:30:00Z'
Expand Down Expand Up @@ -317,6 +321,7 @@ service:
region_ref:
key: value
resolved_at: '2024-01-15T09:30:00Z'
state: state
task: 1
text: text
updated_at: '2024-01-15T09:30:00Z'
Expand Down
1 change: 1 addition & 0 deletions .mock/definition/projects.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1147,6 +1147,7 @@ service:
created_at: '2024-01-15T09:30:00Z'
created_username: created_username
id: 1
state: state
updated_at: '2024-01-15T09:30:00Z'
cancelled_annotations: 1
comment_authors:
Expand Down
3 changes: 3 additions & 0 deletions .mock/definition/projects/assignments.yml
Original file line number Diff line number Diff line change
Expand Up @@ -440,6 +440,7 @@ service:
- assignee: 1
created_at: '2024-01-15T09:30:00Z'
id: 1
state: state
task: 1
type: AN
audiences:
Expand Down Expand Up @@ -493,6 +494,7 @@ service:
assignee: 1
created_at: '2024-01-15T09:30:00Z'
id: 1
state: state
task: 1
type: AN
audiences:
Expand Down Expand Up @@ -587,6 +589,7 @@ service:
assignee: 1
created_at: '2024-01-15T09:30:00Z'
id: 1
state: state
task: 1
type: AN
audiences:
Expand Down
Loading
Loading