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

feat: allow editing root role/description on SCIM group #7874

Merged
merged 5 commits into from
Aug 14, 2024

Conversation

sighphyre
Copy link
Member

@sighphyre sighphyre commented Aug 14, 2024

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

Copy link

vercel bot commented Aug 14, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
unleash-monorepo-frontend ✅ Ready (Inspect) Visit Preview 💬 Add feedback Aug 14, 2024 0:16am
1 Skipped Deployment
Name Status Preview Comments Updated (UTC)
unleash-docs ⬜️ Ignored (Inspect) Visit Preview Aug 14, 2024 0:16am

@sighphyre sighphyre changed the title feat: allow editing root role on SCIM group feat: allow editing root role/description on SCIM group Aug 14, 2024
Copy link
Contributor

github-actions bot commented Aug 14, 2024

Dependency Review

✅ No vulnerabilities or license issues or OpenSSF Scorecard issues found.

OpenSSF Scorecard

PackageVersionScoreDetails

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) =>
Copy link
Member Author

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}
Copy link
Member Author

@sighphyre sighphyre Aug 14, 2024

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!

Copy link
Contributor

@daveleek daveleek left a 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!

@sighphyre sighphyre merged commit f276728 into main Aug 14, 2024
12 checks passed
@sighphyre sighphyre deleted the feat/allow-editing-root-role-on-scim-group branch August 14, 2024 13:11
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.

2 participants