-
Notifications
You must be signed in to change notification settings - Fork 37
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
fix: Retain "None" Option in Technical User Setup After Submission #1039
Conversation
…s, This will Resolve the issue of selection.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
There was a problem hiding this 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]) | ||
} |
There was a problem hiding this comment.
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])
There was a problem hiding this comment.
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. 🙂
There was a problem hiding this 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) |
There was a problem hiding this comment.
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"
Quality Gate passedIssues Measures |
Hi @oyo & @manojava-gk, I have covered your feedback, Can you review it again? 🙂 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lftm
Description
if
condition inuseEffect
to verify if the user has assigned roles. If no roles are found, the "None" option is automatically selected.Why
Issue
Github Issue: #1036
Checklist
REC-20240827121521.mp4