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

fix: Retain "None" Option in Technical User Setup After Submission #1039

Merged

Conversation

ss-nikunj
Copy link
Contributor

Description

  • Context: App Release Process -> Step 4: Technical Integration -> Technical User Setup.
  • Change: Added an if condition in useEffect to verify if the user has assigned roles. If no roles are found, the "None" option is automatically selected.

Why

  • Issue: The "None" option in the Technical User Setup was not retaining its selection after submission.
  • Solution: This fix ensures that the "None" option remains selected when the user revisits the "Technical Integration" step, providing a more consistent and user-friendly experience.

Issue

Github Issue: #1036

Checklist

  • I have followed the contributing guidelines
  • I have performed IP checks for added or updated 3rd party libraries
  • I have created and linked IP issues or requested their creation by a committer
  • I have performed a self-review of my own code
  • I have successfully tested my changes locally
  • I have added tests that prove my changes work
  • I have checked that new and existing tests pass locally with my changes
  • I have commented my code, particularly in hard-to-understand areas
REC-20240827121521.mp4

@ss-nikunj ss-nikunj changed the title Fix/tech user setup none selection fix: Retain "None" Option in Technical User Setup After Submission Aug 27, 2024
@ss-nikunj ss-nikunj requested review from lavanya-bmw and oyo August 27, 2024 06:53
Copy link
Contributor

@lavanya-bmw lavanya-bmw left a comment

Choose a reason for hiding this comment

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

lgtm

@MaximilianHauer MaximilianHauer added this to the Release 24.12 milestone Aug 29, 2024
Copy link
Contributor

@oyo oyo left a comment

Choose a reason for hiding this comment

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

small change

// Set default value as "None" when user profiles don't have any roles
// Initially, value is "None"
setTechUserProfiles([technicalUserNone])
}
Copy link
Contributor

Choose a reason for hiding this comment

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

better use ? : instead of if-else here:

setTechUserProfiles(userProfiles.length > 0 ? userProfiles : [technicalUserNone])

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Hi @oyo,
I am using the if and else statements because of easy to read and understand the code. Sometimes ?: will create an issue.

But anyway I will make these changes. 🙂

@ss-nikunj ss-nikunj requested a review from oyo September 9, 2024 05:31
Copy link
Contributor

@manojava-gk manojava-gk left a comment

Choose a reason for hiding this comment

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

small finding regarding notes

CHANGELOG.md Outdated
@@ -100,6 +100,7 @@
- fixed height for "Admin Service Detail" page content [#1001](https://github.com/eclipse-tractusx/portal-frontend/pull/1001)
- fixed onClick of "Overview My Apps" button in App Release Process screen [#1022](https://github.com/eclipse-tractusx/portal-frontend/issues/1022)
- Fix 400 Bad Request error in App Access Management -> Add Role search filter [#1057](https://github.com/eclipse-tractusx/portal-frontend/issues/1057)
- fixed "None" selection issue in Technical Integration -> App Release Process [#1036](https://github.com/eclipse-tractusx/portal-frontend/issues/1036)
Copy link
Contributor

Choose a reason for hiding this comment

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

this has been added in the wrong place. Put this at the top.
title should be "unreleased"

Copy link

sonarqubecloud bot commented Sep 9, 2024

@ss-nikunj
Copy link
Contributor Author

Hi @oyo & @manojava-gk,

I have covered your feedback, Can you review it again? 🙂
Thanks!

Copy link
Contributor

@manojava-gk manojava-gk left a comment

Choose a reason for hiding this comment

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

lftm

@oyo oyo merged commit fb06d90 into eclipse-tractusx:main Sep 17, 2024
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: USER READY
Development

Successfully merging this pull request may close these issues.

5 participants