-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
Sync UserProfile
interface in kbn/user-profile-components
package with the one in Security plugin.
#138704
Sync UserProfile
interface in kbn/user-profile-components
package with the one in Security plugin.
#138704
Changes from 3 commits
28d0949
19ae485
773ab22
69f4096
22973a1
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||||||||
---|---|---|---|---|---|---|---|---|---|---|
|
@@ -26,6 +26,11 @@ export interface UserProfile<D extends UserProfileData = UserProfileData> { | |||||||||
*/ | ||||||||||
uid: string; | ||||||||||
|
||||||||||
/** | ||||||||||
* Indicates whether user profile is enabled or not. | ||||||||||
*/ | ||||||||||
enabled: boolean; | ||||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. note: Covered the rationale here kibana/x-pack/plugins/security/server/user_profile/user_profile_service.ts Lines 182 to 185 in ea7bc36
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Ah nice, thanks for this Oleg. I wrongly removed this prop from the interface thinking it wasn't used anymore. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. No worries, I reviewed that PR and thought that was fine to remove it too 🙈 Only when migrating to the new Bulk Get API I realized that our consumers might need this field to recognize not active user profiles (e.g. in cases assignments). |
||||||||||
|
||||||||||
/** | ||||||||||
* Information about the user that owns profile. | ||||||||||
*/ | ||||||||||
|
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.
nit: might be worth typing these so that we get type errors before test failures 🤷♂️
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.
Yep, it's a good idea, will do!