-
Notifications
You must be signed in to change notification settings - Fork 237
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: add user group db schema support #1144
Conversation
jczhong84
commented
Feb 4, 2023
- update db schema to support user group
- add a new component to display user group info
66bd8f0
to
550b416
Compare
550b416
to
8e89c07
Compare
Group members | ||
</AccentText> | ||
<div className="members-container"> | ||
{members.map((m) => ( |
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.
put a limit on how many member to show
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.
should we provide "show more" to allow them to view all the members?
@jczhong84 there is another concern that i just realized. With this change, users will be able to add "groups" as editors of datadocs. For now, can you disable groups being indexed into elasticsearch? |
|
||
|
||
## Load Users and Group | ||
If you're not using the default username/password authentication, you probably need to sync the users/groups regularly from your organization's sysmtem into Querybook. To do this, you can |
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.
oauth/ldap auth both supports auto-creation of users. I guess you can mention groups can only be sync'ed now and cannot be created in UI
A user or a group can have below properties | ||
- username: It is the unique iendifiter of a user or a group. | ||
- fullname: Full name or display name of a user or a group | ||
- password: Password of a user. Only applies to a user. |
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.
Only applies to users when using default user/password auth
- fullname: Full name or display name of a user or a group | ||
- password: Password of a user. Only applies to a user. | ||
- email: Email of a user or a group. | ||
- profile_img: Profile image of a user or a group. |
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.
profile image url
querybook/webapp/const/uiConfig.ts
Outdated
* this constant controls the maximum number | ||
* of members to show in the user group popover | ||
*/ | ||
export const MAX_USER_GROUP_MEMBERS_TO_SHOW = 1; |
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.
1 is too low?
querybook/webapp/const/user.ts
Outdated
|
||
roles?: number[]; | ||
|
||
// Properties below are only available when is_group is true | ||
properties?: { |
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.
properties is no longer optional
We use the `User` model to represent a user or a group. | ||
|
||
A user or a group can have below properties | ||
- username: It is the unique iendifiter of a user or a group. |
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.
identifier
## Create/Load Users and Group | ||
For users | ||
- default user/password authentication: people can sign up as a new user on UI. | ||
- auth/ldap authentication: they both support auto-creation of 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.
oauth
* feat: add user group db schema support * comments * disable user group indexing * addto sidebar * fix linter * more comments * fix linter * typo
* feat: add user group db schema support * comments * disable user group indexing * addto sidebar * fix linter * more comments * fix linter * typo