-
Notifications
You must be signed in to change notification settings - Fork 0
Provisioning for page #23
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
Conversation
shackra
left a comment
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.
just a couple of comments
pkg/client/group.go
Outdated
| _, _ = sb.WriteString(`select "id", "accessLevel" from group_folder_defaults WHERE "groupId"=$1 AND "folderId"=$2`) | ||
| _, _ = sb.WriteString(``) |
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 that remain without a SQL statement tho?
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 was not supposed to be empty, I fix it.
| return fmt.Sprintf("%s:%d", resourceTypeID, id) | ||
| return fmt.Sprintf("%c%d", resourceTypeID[0], id) |
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.
%c will print the character "represented by the corresponding Unicode code point", are you sure this is what you want?
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.
Yes
| } | ||
| } | ||
|
|
||
| func findPageGroupPermission(ctx context.Context, client *client.Client, pageId int64, permission string, userId int64) error { |
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.
Nice!
| return &ret, nil | ||
| } | ||
|
|
||
| func (c *Client) CreateGroup(ctx context.Context, organizationID *int64, name string) error { |
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 think they'll need to update the permissions they give our connectors. I will let CS know
Retool does not provide Provisioning Page ot user
Retool provides Groups access pages, user has groups
Refactor IDs for groups and pages
Add provisioning for page to group
Add GrantExpandable for page
Add Grant page to user
If the group does not exist, we should create one group then link to the user