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

UIU-2969: change user type confirmation modal #2627

Merged
merged 7 commits into from
Feb 9, 2024
Merged

Conversation

alisher-epam
Copy link
Contributor

Purpose

https://folio-org.atlassian.net/browse/UIU-2969

Approach

Screen.Recording.2024-02-08.at.15.57.41.mp4

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 February 8, 2024 12:56
Copy link
Contributor

@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.

The Confirmation modal is being displayed on non-ECS environment too.
As per the ticket, the functionality applies to ECS enabled environment.
Please incorporate an ECS check.

@Terala-Priyanka
Copy link
Contributor

@alisher-epam
looks like there is a new issue reported by Sonar. Please fix it.

Copy link

sonarqubecloud bot commented Feb 9, 2024

@alisher-epam alisher-epam merged commit 74c40df into develop Feb 9, 2024
5 checks passed
@alisher-epam alisher-epam deleted the UIU-2969 branch February 9, 2024 13:44
@Terala-Priyanka
Copy link
Contributor

@alisher-epam
looks like the issue injected by your changes persists.
It was expected and agreed by you that it would be fixed.
Please fix it ASAP.

@NikitaSedyx
Copy link
Contributor

@Terala-Priyanka render function already has high complexity, mb it's time for you to do a refactoring?

his condition is reasonable in render as it's part of OnChange (it could be improved, but still ok), when functions that are created inside render and contain conditions are definitely not expected (I have no idea who introduced them), so instead of fixing normal code just to fix, may be bad code should be refactored so sonar doesn't complain?

@Terala-Priyanka
Copy link
Contributor

Just an FYI..
another PR #2636 with master as target, doesn't have this sonar complaint.
I did not dig much into the details

@NikitaSedyx
Copy link
Contributor

just because someone could remove one of the conditions, but the point is the same, to ask to sustain quality - it should be initially in good state (I'm talking only for cases like this one, and not if quality is not so good we can do whatever we want)

alisher-epam added a commit that referenced this pull request Feb 15, 2024
* UIU-2969: change user type confirmation  modal

* tests: fix failing tests

* tests: add test coverages

* tests: improve test coverage

* refactor code

* update changelog file

* reduce code's Cognitive Complexity
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