Skip to content
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

UIREC-316: Change field name of "Caption" to Display summary #487

Closed
wants to merge 5 commits into from

Conversation

alisher-epam
Copy link
Contributor

Purpose

UIREC-316 - Change field name of "Caption" to Display summary

Approach

TODOS and Open Questions

Learning

Pre-Merge Checklist

Before merging this PR, please go through the following list and take appropriate actions.

  • I've added appropriate record to the CHANGELOG.md
  • Does this PR meet or exceed the expected quality standards?
    • Code coverage on new code is 80% or greater
    • Duplications on new code is 3% or less
    • There are no major code smells or security issues
  • Does this introduce breaking changes?
    • If any API-related changes - okapi interfaces and permissions are reviewed/changed correspondingly
    • There are no breaking changes in this PR.

If there are breaking changes, please STOP and consider the following:

  • What other modules will these changes impact?
  • Do JIRAs exist to update the impacted modules?
    • If not, please create them
    • Do they contain the appropriate level of detail? Which endpoints/schemas changed, etc.
    • Do they have all they appropriate links to blocked/related issues?
  • Are the JIRAs under active development?
    • If not, contact the project's PO and make sure they're aware of the urgency.
  • Do PRs exist for these changes?
    • If so, have they been approved?

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.

@alisher-epam alisher-epam requested review from a team January 27, 2024 10:49
Copy link

github-actions bot commented Jan 27, 2024

Jest Unit Test Statistics

214 tests  ±0   213 ✔️ ±0   3m 26s ⏱️ -3s
  68 suites ±0       1 💤 ±0 
    1 files   ±0       0 ±0 

Results for commit 151f703. ± Comparison against base commit 1a5cd3e.

♻️ This comment has been updated with latest results.

Copy link

github-actions bot commented Jan 27, 2024

BigTest Unit Test Statistics

0 tests  ±0   0 ✔️ ±0   0s ⏱️ ±0s
0 suites ±0   0 💤 ±0 
0 files   ±0   0 ±0 

Results for commit 151f703. ± Comparison against base commit 1a5cd3e.

♻️ This comment has been updated with latest results.

@alisher-epam alisher-epam requested review from usavkov-epam and a team January 29, 2024 05:52
Copy link
Member

@zburke zburke left a comment

Choose a reason for hiding this comment

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

I expected a one-line change in en.json where we just change the displayed name. Given the underlying data structure is changing too, I'm surprised there isn't a breaking change in the version of the Okapi API. Did we miss that here (or did the underlying API miss something when it changed the name of that field 😒)?

@alisher-epam
Copy link
Contributor Author

alisher-epam commented Jan 29, 2024

@zburke after discussion with our team, we are planning to deploy changes at the same time in order to prevent automated tests from failing. We have backend changes that are ready https://github.com/folio-org/mod-orders/pull/826/files
@NikitaSedyx Can you confirm it, please?

@SerhiiNosko
Copy link

@zburke basically this field is used in editing/receiving/unreceiving piece and also new field to mod-inventory added with the same name folio-org/mod-inventory#673 . To not confuse how 'caption' correlates with 'displaySummary' we decided to rename from 'caption' to 'displaySummary' with writing migration script and increased major versions of interfaces. Regarding external usages - we don't know other consumers for these interfaces, only UI for now, so probably better to rename now than when we have different external consumers.

@zburke
Copy link
Member

zburke commented Jan 29, 2024

Thanks for the details, @SerhiiNosko, that's super helpful!

with writing migration script and increased major versions of interfaces

But there were no updates to the interface version here in package.json, nor a corresponding bump to this module's major version.

@SerhiiNosko
Copy link

Thanks for the details, @SerhiiNosko, that's super helpful!

with writing migration script and increased major versions of interfaces

But there were no updates to the interface version here in package.json, nor a corresponding bump to this module's major version.

@alisher-epam can you please update to the newest major versions of interfaces, you can find them in this PR: https://github.com/folio-org/mod-orders/pull/826/files

@alisher-epam alisher-epam requested a review from zburke January 29, 2024 16:16
Comment on lines +34 to +35
"pieces": "3.0",
"receiving": "2.0",
Copy link
Member

Choose a reason for hiding this comment

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

Bumping an okapi interface version is akin to bumping a peer-dependency version; this is a breaking change. Please update the module version to 5.0.0 and call out this change in the CHANGELOG, e.g.

* *BREAKING* Bump minimum okapi interfaces for `pieces` (3.0) and `receiving` (2.0). Refs UIREC-316.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Update the PR according to your comments.

Copy link

@alisher-epam alisher-epam requested review from a team and zburke January 30, 2024 07:24
@@ -15,6 +15,8 @@
* Send claim action for piece record. Refs UIREC-304.
* Align the display of fields in full screen receiving view and piece edit form. Refs UIREC-296.
* Expect "Unreceivable" pieces on the full screen form. Refs UIREC-307.
* Change field name of "Caption" to Display summary. Refs UIREC-316.
Copy link
Contributor

Choose a reason for hiding this comment

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

this is not required anymore

@@ -31,8 +31,8 @@
"order-lines": "2.0 3.0",
"orders": "11.0 12.0",
"organizations.organizations": "1.0",
"pieces": "2.0",
"receiving": "1.0",
"pieces": "3.0",
Copy link
Contributor

Choose a reason for hiding this comment

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

check interfaces in other places, inventory orders etc

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Sure.

@alisher-epam alisher-epam deleted the UIREC-316 branch January 30, 2024 08:33
@alisher-epam
Copy link
Contributor Author

@zburke @SerhiiNosko Since this has breaking changes, I have created a new PR here #488

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.

5 participants