-
Notifications
You must be signed in to change notification settings - Fork 11
OSIDB-3852: Require internal comment on Incident request #1097
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
c1807ef to
ef3eb98
Compare
973a701 to
58c2ea8
Compare
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
58c2ea8 to
48c346c
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM.
| 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 |
There was a problem hiding this comment.
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"]
There was a problem hiding this comment.
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"] |
There was a problem hiding this comment.
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? 🤔
There was a problem hiding this comment.
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
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