Skip to content

Conversation

@Elkasitu
Copy link
Contributor

@Elkasitu Elkasitu commented Oct 28, 2025

When requesting an incident on a Flaw, users will now be required to submit a comment denoting why they think the Flaw constitutes an incident.

Closes OSIDB-3852

Depends on #1087

@Elkasitu Elkasitu marked this pull request as ready for review October 28, 2025 19:20
@Elkasitu Elkasitu requested a review from a team October 28, 2025 19:20
@Jincxz Jincxz force-pushed the OSIDB-3959-update-incident-state-field branch 2 times, most recently from c1807ef to ef3eb98 Compare October 29, 2025 15:49
Base automatically changed from OSIDB-3959-update-incident-state-field to affects-v2 October 29, 2025 15:57
@Elkasitu Elkasitu force-pushed the required-comment-on-incident-request branch from 973a701 to 58c2ea8 Compare October 29, 2025 17:26
When requesting an incident on a Flaw, users will now be required to
submit a comment denoting why they think the Flaw constitutes an
incident.

Closes OSIDB-3852
@Elkasitu Elkasitu force-pushed the required-comment-on-incident-request branch from 58c2ea8 to 48c346c Compare October 29, 2025 17:34
Copy link
Contributor

@JakubFrejlach JakubFrejlach left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

Comment on lines +13033 to +13063
deprecated: true
oneOf:
- $ref: '#/components/schemas/MajorIncidentStateEnum'
- $ref: '#/components/schemas/BlankEnum'
major_incident_start_dt:
type: string
format: date-time
nullable: true
nist_cvss_validation:
oneOf:
- $ref: '#/components/schemas/NistCvssValidationEnum'
- $ref: '#/components/schemas/BlankEnum'
aegis_meta: {}
embargoed:
type: boolean
description: The embargoed boolean attribute is technically read-only as
it just indirectly modifies the ACLs but is mandatory as it controls the
access to the resource.
group_key:
type: string
maxLength: 60
owner:
type: string
maxLength: 60
team_id:
type: string
maxLength: 8
required:
- comment_zero
- embargoed
- title
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I wonder where this change came from? 🤔 Only thing which changed for FlawPostSerializer was deprecate_fields=["major_incident_state"]

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it's just an artifact from the diff algorithm, since I introduce a FlawPutSerializer and the contents are pretty similar


@extend_schema_serializer(exclude_fields=["updated_dt"])
@extend_schema_serializer(
exclude_fields=["updated_dt"], deprecate_fields=["major_incident_state"]
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I suppose later we will just move major_incident_state to exclude_fields? 🤔

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes, the field will be read-only

Base automatically changed from affects-v2 to master October 30, 2025 11:41
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.

3 participants