-
Notifications
You must be signed in to change notification settings - Fork 21
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
Rebuild rolescopepicker #5580
Rebuild rolescopepicker #5580
Conversation
Thanks to Stef for asking the right question
// label={"Scopes"} | ||
/> | ||
); | ||
// This mess takes every scope that is |
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.
Easier to just return that form from the backend?
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.
It needs both fully-resolved scope paths and the grouped rep; it'd need to be mangling whatever's returned in one direction or the other.
|
||
}) |
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.
No newline?! 😱
I thought the code formatter takes care of these things?
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.
Knew I'd forgotten to do something...
@@ -2,109 +2,227 @@ | |||
* License, v. 2.0. If a copy of the MPL was not distributed with this | |||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */ | |||
|
|||
/* eslint-disable react/prop-types */ |
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.
What happens if we don't disable this?
If it really makes no sense perhaps we can disable in eslint's config globally?
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.
It's something we should be doing (according to eslint), but haven't - I'd like to put it in in future, but I think it adds a dependency.
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.
Nothing horribly wrong jumps out at me.
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.
I'm happy to merge as well I think.
I have:
masterpermission_reworkDescription
This re-implements
RoleScopePicker
, reimplementingCascadePicker
within Flowauth. There is also a Cypress component test.Note: This does not use any of
util.js
, bututil.js
is still used byRightsCascade
, inServerAdmin.jsx
.