-
Notifications
You must be signed in to change notification settings - Fork 12
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
Stage users #181
Stage users #181
Conversation
0f07089
to
0e530d9
Compare
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.
Some changes were requested. Also, some things that I noticed through the UI (not mentioned in the inline comments):
- The
status
column is not needed in the 'Stage users' main table. - Under 'Stage users' > 'Add user':
- The question mark icon in the
Class
field is not needed in this form. - The
No private group
checkbox field is not needed in this form. - The
GID
field is not needed in this form.
- The question mark icon in the
src/components/modals/AddUser.tsx
Outdated
@@ -473,7 +496,7 @@ const AddUser = (props: PropsToAddUser) => { | |||
}, | |||
{ | |||
id: "gid-form", | |||
name: "GID", | |||
name: GIDTitle, |
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.
Apparently, this field should be only available for 'Active' users, not 'Staged' ones. So this should be adapted to be here only if the from
prop is "stage-users"
.
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.
Apparently, this field should be only available for 'Active' users, not 'Staged' ones. So this should be adapted to be here only if the
from
prop is"stage-users"
.
It is required for stage users
0e530d9
to
1a5c5e6
Compare
@carma12 all changes made (I had to keep some changes for the modal field validation to work correctly). Please review... |
128e8b3
to
bdb3e15
Compare
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 added more comments requesting some tiny bits in the code (mostly naming and some Qs).
Apart from that, it seems that some changes in the AddUser
component have been pushed in both commits (it was hard for me to find the recently requested changes). No need to correct that.
{ | ||
id: "no-members", | ||
pfComponent: ( | ||
<Checkbox |
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 is the purpose of this checkbox? This is not in the current WebUI either.
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.
Oh yeah, this is an option you can use with the CLI when activating users. Figured if the CLI can do it, then so should the UI.
[vagrant@server ~]$ ipa stageuser-activate --help
Usage: ipa [global-options] stageuser-activate LOGIN [options]
Activate a stage user.
Options:
-h, --help show this help message and exit
--all Retrieve and print all attributes from the server. Affects
command output.
--raw Print entries as stored on the server. Only affects output
format.
--no-members Suppress processing of membership attributes.
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.
Oh, didn't know about this. I think it is a nice feature to keep then :)
Ok I'm not sure how that happened :-( This should be a single commit (not 2). Hmm I might have to recreate this PR from scratch... |
3922e7e
to
adb3a1d
Compare
Ok, its all fixed now |
adb3a1d
to
4574b64
Compare
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!
As we are still waiting for a fix for the gating integration tests problem, the merge of this PR will wait until the fix is released.
Context/TL;DR: The image runners that we are using for the CI are experiencing some errors that will be solved in the next release of macos-12
next week. Link1. Link2.)
{ | ||
id: "no-members", | ||
pfComponent: ( | ||
<Checkbox |
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.
Oh, didn't know about this. I think it is a nice feature to keep then :)
4574b64
to
3ee75b7
Compare
Since the integration tests are non-functional as of now due to the changes to IP address' ranges assigned to the runners, I recommend we treat them as non-blocking. Given these circumstances, I approve of merging despite integration tests are being skipped. |
3ee75b7
to
cd74c8a
Compare
There are 2 commits breaking up this work. Next, Preserved Users will be added (that PR will be much smaller)