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

UIBULKED-349 Update Electronic access - URL relationship #409

Merged
merged 13 commits into from
Nov 14, 2023
Merged

Conversation

vashjs
Copy link
Contributor

@vashjs vashjs commented Nov 13, 2023

Purpose

After this PR merged, then new URL Relationship option will be added. Once selected it should contain all actions and behave based on UIBULKED-349 requirements.

  • Tests refactored
  • Some string literals replaced with constants
  • Some functions names were unified

image
image

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.

Copy link

github-actions bot commented Nov 13, 2023

Jest Unit Test Statistics

    1 files  ±0    25 suites  ±0   1m 38s ⏱️ -37s
167 tests +5  166 ✔️ +5  1 💤 ±0  0 ±0 
170 runs  +5  169 ✔️ +5  1 💤 ±0  0 ±0 

Results for commit 8040b4f. ± Comparison against base commit f2bef8f.

This pull request removes 3 and adds 8 tests. Note that renamed tests count towards both.
ContentUpdatesForm helpers helpers getDefaultActions returns the correct object for the URI option ‑ ContentUpdatesForm helpers helpers getDefaultActions returns the correct object for the URI option
ContentUpdatesForm helpers helpers getExtraActions should return a certain structure for specific OPTIONS and ACTIONS ‑ ContentUpdatesForm helpers helpers getExtraActions should return a certain structure for specific OPTIONS and ACTIONS
ValuesColumn Component should render select with item note types when action type is LOAN_TYPE ‑ ValuesColumn Component should render select with item note types when action type is LOAN_TYPE
ContentUpdatesForm helpers helpers getDefaultActions returns the correct object for the ELECTRONIC_ACCESS_URI option ‑ ContentUpdatesForm helpers helpers getDefaultActions returns the correct object for the ELECTRONIC_ACCESS_URI option
ContentUpdatesForm helpers helpers getDefaultActions returns the correct object for the ELECTRONIC_ACCESS_URL_RELATIONSHIP option ‑ ContentUpdatesForm helpers helpers getDefaultActions returns the correct object for the ELECTRONIC_ACCESS_URL_RELATIONSHIP option
ContentUpdatesForm helpers helpers getExtraActions should return a certain structure for specific OPTIONS and ACTIONS - Notes ‑ ContentUpdatesForm helpers helpers getExtraActions should return a certain structure for specific OPTIONS and ACTIONS - Notes
ContentUpdatesForm helpers helpers getExtraActions should return a certain structure for specific OPTIONS and ACTIONS - URL Relationship ‑ ContentUpdatesForm helpers helpers getExtraActions should return a certain structure for specific OPTIONS and ACTIONS - URL Relationship
ValuesColumn Component should render TextArea when action type is TEXTAREA ‑ ValuesColumn Component should render TextArea when action type is TEXTAREA
ValuesColumn Component should render select with item note types when action type is NOTE_SELECT + HOLDINS CAPABILITY ‑ ValuesColumn Component should render select with item note types when action type is NOTE_SELECT + HOLDINS CAPABILITY
ValuesColumn Component should render select with item note types when action type is NOTE_SELECT ‑ ValuesColumn Component should render select with item note types when action type is NOTE_SELECT
ValuesColumn Component should render select with url relationship types when action type is FIND ‑ ValuesColumn Component should render select with url relationship types when action type is FIND

♻️ This comment has been updated with latest results.

Copy link

github-actions bot commented Nov 13, 2023

BigTest Unit Test Statistics

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

Results for commit 8040b4f. ± Comparison against base commit f2bef8f.

♻️ This comment has been updated with latest results.

@vashjs vashjs requested review from UladzislauKutarkin and a team November 14, 2023 00:48
Copy link

@Terala-Priyanka Terala-Priyanka left a comment

Choose a reason for hiding this comment

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

Could you add more unit tests to improve the coverage on files helpers.js and ValuesColumn.js

# Conflicts:
#	CHANGELOG.md
#	src/components/BulkEditList/BulkEditListResult/BulkEditInApp/ContentUpdatesForm/helpers.js
#	src/constants/selectOptions.js
@vashjs
Copy link
Contributor Author

vashjs commented Nov 14, 2023

Could you add more unit tests to improve the coverage on files helpers.js and ValuesColumn.js

@Terala-Priyanka The effort spent on achieving these few percents is much greater than the potential benefits of these tests. Coverage will be increased in a crowd of other stories.

@vashjs
Copy link
Contributor Author

vashjs commented Nov 14, 2023

@mariia-aloshyna selectors for test updated, thanks for pointing it.

Copy link

SonarCloud Quality Gate failed.    Quality Gate failed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

75.9% 75.9% Coverage
0.0% 0.0% Duplication

idea Catch issues before they fail your Quality Gate with our IDE extension sonarlint SonarLint

@vashjs vashjs merged commit 16cd64e into master Nov 14, 2023
5 of 6 checks passed
@vashjs vashjs deleted the UIBULKED-349 branch November 14, 2023 14:24
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.

4 participants