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

Issue 214 - User settings should show if the user is disabled #222

Merged
merged 1 commit into from
Jan 22, 2024

Conversation

mreynolds389
Copy link
Collaborator

If a user is disabled then show a "locked" icon next to the user name in the userSettings page

fixes: #214

@mreynolds389 mreynolds389 requested a review from carma12 December 14, 2023 19:13
Copy link
Collaborator

@carma12 carma12 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please see the comment below.

@@ -58,6 +60,8 @@ const ActiveUsersTabs = () => {
return <DataSpinner />;
}

const disabled = userSettingsData.user.nsaccountlock;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It seems that this variable is always true for enabled and disabled users, so the lock icon is being shown for all users. Maybe this is related to the way the data is retrieved (not 100% sure though).

Copy link
Collaborator Author

@mreynolds389 mreynolds389 Dec 15, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok I originally built this on top of your kabob work. So I think we need to get your PR's merged first then this will start working correctly

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok, so maybe we can postpone the review of this one until all kebab PRs are merged.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is working now, so I'm resolving this conversation thread.

If a user is disabled then show a "locked" icon next tothe user name in
the userSettings page

fixes: freeipa#214

Signed-off-by: Mark Reynolds <mreynolds@redhat.com>
@mreynolds389 mreynolds389 force-pushed the issue214-disabled-icon branch from f5b06ed to a27a120 Compare January 19, 2024 19:02
@mreynolds389 mreynolds389 requested a review from carma12 January 19, 2024 19:04
@mreynolds389
Copy link
Collaborator Author

@carma12 ok it's working now, please review...

Copy link
Collaborator

@carma12 carma12 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The code seems ok - Although this solution is still using the previous PatternFly 4 library, so rebasing from recent changes and doing a quick npm install is encouraged.

@mreynolds389
Copy link
Collaborator Author

The code seems ok - Although this solution is still using the previous PatternFly 4 library, so rebasing from recent changes and doing a quick npm install is encouraged.

This was rebased and already had npm install done. I am using PF5 classes, so I'm not sure what issues you are running into. Please elaborate...

@carma12 carma12 self-requested a review January 22, 2024 13:44
Copy link
Collaborator

@carma12 carma12 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Apparently, I had a previous version of the solution and I forgot to pull the new changes. Sorry for the confusion :)

The changes LGTM, hence approving this PR.

@@ -58,6 +60,8 @@ const ActiveUsersTabs = () => {
return <DataSpinner />;
}

const disabled = userSettingsData.user.nsaccountlock;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is working now, so I'm resolving this conversation thread.

@mreynolds389
Copy link
Collaborator Author

Apparently, I had a previous version of the solution and I forgot to pull the new changes. Sorry for the confusion :)

The changes LGTM, hence approving this PR.

Whew! You had me worried for a moment as I didn't see anything wrong with it :-)

@mreynolds389 mreynolds389 merged commit c66cfbe into freeipa:main Jan 22, 2024
3 checks passed
@mreynolds389 mreynolds389 deleted the issue214-disabled-icon branch January 22, 2024 14:36
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.

User settings should show if the user is disabled or not
2 participants