JsonPatchType duplicates functionality of WSME readonly & mandatory attributes
Bug #1284781 reported by
aeva black
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Ironic |
Fix Released
|
Medium
|
Miles Gould |
Bug Description
ironic.
Changed in ironic: | |
status: | New → Triaged |
importance: | Undecided → Medium |
Changed in ironic: | |
assignee: | nobody → Haomeng,Wang (whaom) |
Changed in ironic: | |
status: | Triaged → In Progress |
Changed in ironic: | |
assignee: | Haomeng,Wang (whaom) → nobody |
Changed in ironic: | |
status: | In Progress → Triaged |
Changed in ironic: | |
assignee: | nobody → Pablo Fernando Cargnelutti (pablo-fernando-cargnelutti) |
tags: | added: api |
Changed in ironic: | |
assignee: | nobody → Shraddha Pandhe (shraddha-pandhe) |
Changed in ironic: | |
assignee: | Shraddha Pandhe (shraddha-pandhe) → miles@assyrian.org.uk (miles-8) |
Changed in ironic: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
@Deva, I understand we should remove the mandatory fields definition from API Object, because it is defined in Object JsonPatchType class mandatory_attrs method already, right?
eg:
port.address is mandatory field, defined in both code:
https:/ /github. com/openstack/ ironic/ blob/master/ ironic/ api/controllers /v1/port. py#L80 /github. com/openstack/ ironic/ blob/master/ ironic/ api/controllers /v1/port. py#L45
https:/
So we can remove the definition from line #L80.