Skip to content

Conversation

@MarcusGoldschmidt
Copy link
Contributor

@MarcusGoldschmidt MarcusGoldschmidt commented Feb 4, 2025

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

@MarcusGoldschmidt MarcusGoldschmidt changed the title Add GrantImmutable for pages Provisioning for page Feb 5, 2025
@pquerna pquerna requested review from ggreer and jirwin February 6, 2025 00:09
Copy link

@shackra shackra left a 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

Comment on lines 111 to 158
_, _ = sb.WriteString(`select "id", "accessLevel" from group_folder_defaults WHERE "groupId"=$1 AND "folderId"=$2`)
_, _ = sb.WriteString(``)
Copy link

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?

Copy link
Contributor Author

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.

Comment on lines -13 to +12
return fmt.Sprintf("%s:%d", resourceTypeID, id)
return fmt.Sprintf("%c%d", resourceTypeID[0], id)
Copy link

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?

Copy link
Contributor Author

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 {
Copy link
Contributor

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 {
Copy link
Contributor

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

@btipling btipling merged commit e518ba8 into main Feb 14, 2025
2 checks passed
@btipling btipling deleted the goldschmidt/pages-provisioning branch February 14, 2025 00:14
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.

4 participants