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

UISACQCOMP-231: Display system change label for version cards #836

Merged
merged 5 commits into from
Dec 2, 2024

Conversation

alisher-epam
Copy link
Contributor

Purpose

UISACQCOMP-231: Display system change label for version cards

Approach

Screen.Recording.2024-11-29.at.13.34.44.mp4

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 usavkov-epam and a team November 29, 2024 08:37
@alisher-epam alisher-epam self-assigned this Nov 29, 2024
Copy link

github-actions bot commented Nov 29, 2024

Jest Unit Test Statistics

    1 files  ±0  224 suites  ±0   4m 2s ⏱️ -3s
596 tests ±0  594 ✔️ ±0  2 💤 ±0  0 ±0 
599 runs  ±0  597 ✔️ ±0  2 💤 ±0  0 ±0 

Results for commit 39dc9e3. ± Comparison against base commit ef26138.

♻️ This comment has been updated with latest results.

Copy link

github-actions bot commented Nov 29, 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 39dc9e3. ± Comparison against base commit ef26138.

♻️ This comment has been updated with latest results.

@usavkov-epam
Copy link
Contributor

As far as I recall, we discussed that it makes sense to display this message when an event exists but the fields changed in the snapshot could not be resolved, i.e., when paths is empty. Your approach involves explicitly passing system fields, which may not all be known in advance and can evolve over time, requiring constant maintenance and updates to this array.

@alisher-epam
Copy link
Contributor Author

@usavkov-epam updated

@alisher-epam
Copy link
Contributor Author

@usavkov-epam @folio-org/fe-tl-reviewers the tests are failing due to some external issues. Please, help if you you have any ideas on how to fix.

Copy link

sonarcloud bot commented Dec 2, 2024

Quality Gate Failed Quality Gate failed

Failed conditions
76.5% Coverage on New Code (required ≥ 80%)

See analysis details on SonarQube Cloud

@usavkov-epam usavkov-epam merged commit b07ffc9 into master Dec 2, 2024
5 of 6 checks passed
@usavkov-epam usavkov-epam deleted the UISACQCOMP-231 branch December 2, 2024 11:01
usavkov-epam pushed a commit that referenced this pull request Dec 4, 2024
* UISACQCOMP-231: Display system change label for version cards

* test: fix failing test

* refactor: simplify changed version card message logic

* revert test changes
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.

3 participants