-
-
Notifications
You must be signed in to change notification settings - Fork 739
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
feat: allow editing root role/description on SCIM group #7874
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
1 Skipped Deployment
|
Dependency Review✅ No vulnerabilities or license issues or OpenSSF Scorecard issues found.OpenSSF Scorecard
Scanned Manifest Files |
@@ -30,6 +30,10 @@ import type { IUser } from '../types/user'; | |||
import type EventService from '../features/events/event-service'; | |||
import { SSO_SYNC_USER } from '../db/group-store'; | |||
|
|||
const setsAreEqual = (firstSet, secondSet) => |
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 is ugly and bloats the call site where it's actually relevant but only really useful in one place so I've pulled it out into a non exported function
@@ -106,6 +106,7 @@ export const CreateGroup = () => { | |||
handleSubmit={handleSubmit} | |||
handleCancel={handleCancel} | |||
mode={CREATE} | |||
isScimGroup={false} |
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 is the create flow - can't be a SCIM group if SCIM didn't make it!
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.
Awesome, this looks good!
This relaxes validation on modifying SCIM groups.
From a UI perspective, users are now allowed to access the edit screen for SCIM groups (previously you couldn't click the relevant UI elements and if you navigated manually you'd just get the save button disabled). Now instead updating the name is disabled and modifying the SSO mappings is hidden. The usual places that previously blocked you from changing users are still disabled.
On the backend, validation has been relaxed to allow some editing of groups, so long as you're not changing the name or modifying the users (effectively the only two properties SCIM cares about).