-
Notifications
You must be signed in to change notification settings - Fork 9
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
UIOR-1177 Add settings components for custom fields #1536
Conversation
@@ -1,6 +1,6 @@ | |||
{ | |||
"name": "@folio/orders", | |||
"version": "5.1.0", | |||
"version": "6.0.0", |
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.
why do you think it's a breaking 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.
We're discontinuing support for orders <12.1
and order-lines <3.3
. Interface requirements are a part of the public API. This change is backward incompatible, as ui-orders
will no longer function in an environment that provides orders <12.1
or order-lines <3.3
.
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.
If you implement any backwards-incompatible change to any API, or drop any API at all, increment the module version to 3.0.0
Quality Gate passedKudos, no new issues were introduced! 0 New issues |
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.
please wait for one more review
Purpose
This PR is part of the integration of custom fields into the orders app. See UIOR-1177.
Approach
This PR introduces
<CustomFieldsSettings>
within<OrderSettings>
to manage custom fields for both purchase orders and purchase order lines. This addition includes permissions, translations, and relies on the components<ViewCustomFieldsSettings>
and<EditCustomFieldsSettings>
fromstripes-smart-components
. These components communicate with themod-orders-storage
module to manage the custom fields.Dependencies
<CustomFieldsSettings>
requiresmod-orders-storage
to provide thecustom-fields 3.0
interface. Unfortunately, directly requiring the okapi interfacecustom-fields 3.0
isn't feasible due to its"interfaceType": "multiple"
nature. There's currently no way to ensure thatcustom-fields 3.0
is specifically provided bymod-orders-storage
rather than, for example,mod-users
.The custom fields functionality was introduced in
mod-orders
andmod-orders-storage
accompanied by an upgrade to the provided interface versions toorders 12.1
andorder-lines 3.3
(see PR#806 and PR#374). Requiringorders 12.1
andorder-lines 3.3
guarantees that bothmod-orders
and consequentlymod-orders-storage
support the custom fields functionality, securing the intended operation of<CustomFieldsSettings>
.Breaking Changes
The requirement for
orders 12.1
andorder-lines 3.3
constitutes a breaking change. As per semantic versioning guidelines, a major version increment inui-orders
is recommended.Screenshots
screen-capture.webm
Pre-Merge Checklist
Before merging this PR, please go through the following list and take appropriate actions.
If there are breaking changes, please STOP and consider the following:
Ideally all of the PRs involved in breaking changes would be merged in the same day to avoid breaking the folio-testing environment. Communication is paramount if that is to be achieved, especially as the number of intermodule and inter-team dependencies increase.
While it's helpful for reviewers to help identify potential problems, ensuring that it's safe to merge is ultimately the responsibility of the PR assignee.