Skip to content

Conversation

@aurelien-reeves-scalingo
Copy link
Contributor

@aurelien-reeves-scalingo aurelien-reeves-scalingo commented Apr 25, 2025

@notion-workspace
Copy link

@aurelien-reeves-scalingo aurelien-reeves-scalingo requested review from leo-scalingo and removed request for EtienneM April 29, 2025 07:18

type CollaboratorsService interface {
CollaboratorsList(ctx context.Context, app string) ([]Collaborator, error)
CollaboratorAdd(ctx context.Context, app string, email string) (Collaborator, error)
Copy link
Member

Choose a reason for hiding this comment

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

To prevent breaking the API in the future for other params, can you use the signature:

CollaboratorAdd(ctx context.Context, app string, params CollaboratorAddParams) (Collaborator, error)

And have

type CollaboratorAddParams struct {
  Email string `json:"email"`
  IsLimited bool `json:"is_limited"`
}

And use this in the `SubresourceAdd` call

Copy link
Contributor Author

Choose a reason for hiding this comment

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

done

Copy link
Member

@leo-scalingo leo-scalingo left a comment

Choose a reason for hiding this comment

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

LGTM

@aurelien-reeves-scalingo aurelien-reeves-scalingo merged commit 350629b into master Apr 29, 2025
4 checks passed
@aurelien-reeves-scalingo aurelien-reeves-scalingo deleted the feat/story-1890/add-support-for-limited-collaborators branch April 29, 2025 13:16
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.

3 participants