-
Notifications
You must be signed in to change notification settings - Fork 0
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
[FCFIELDS-44] - PUT /custom-fields does not handle multiple entity types #41
Conversation
…Service replaceAll method
all custom fields in PUT /custom-fields requests should contain the same entityType
PUT on /custom-fields expects a PutCustomFieldCollection
Kudos, SonarCloud Quality Gate passed! |
"metadata": { | ||
"description": "User metadata information", | ||
"$ref": "raml-util/schemas/metadata.schema", | ||
"readonly": true | ||
} | ||
}, | ||
"required": [ | ||
"customFields" | ||
"customFields", | ||
"entityType" |
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.
This is a breaking change. If any other module uses this API and is not providing entity type will be a problem. Please check impacted modules due to this change.
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.
Indeed, I've detailed this in the description. The application and interface versions have been bumped to signify this change. No module should be affected by this modification unless it explicitly updates its folio-custom-fields
dependency.
However, mod-users
will require such an update once the related frontend work is merged. This is tracked over in STSMACOM PR#1417.
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.
ok, I approve the PR
"metadata": { | ||
"description": "User metadata information", | ||
"$ref": "raml-util/schemas/metadata.schema", | ||
"readonly": true | ||
} | ||
}, | ||
"required": [ | ||
"customFields" | ||
"customFields", | ||
"entityType" |
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.
ok, I approve the PR
@folio-org/volaris-backend Any chance I can get another review on this so things can move forward? |
Purpose
This PR resolves the issue FCFIELDS-44 where the
PUT /custom-fields
endpoint was unable to handle differententityType
s.Approach
To address this issue, a required attribute called
entityType
has been added to thePutCustomFieldCollection
schema. This change mandates clients to include theentityType
when updating custom fields using the PUT /custom-fields endpoint. With this addition, the implementation can now update custom fields specifically for a certainentityType
without affecting others.TODOs and Open Questions
Additional Actions
This is a breaking change. Client implementations will require adjustments to include the
entityType
when makingPUT
requests to/custom-fields
.