Skip to content
This repository has been archived by the owner on Jul 24, 2022. It is now read-only.

Group invites Api #110

Open
pedro-gutierrez opened this issue Nov 28, 2020 · 0 comments
Open

Group invites Api #110

pedro-gutierrez opened this issue Nov 28, 2020 · 0 comments
Labels
enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed twelve

Comments

@pedro-gutierrez
Copy link
Contributor

Is your feature request related to a problem? Please describe.

As a general practice we should probably avoid sharing data about users to other users unless they're in the same group or privileged since security is a concern and trust between different groups isn't a given.

Describe the solution you'd like

The simplest thing for now is the focus on group-to-group interactions. No need to show users in another group

Eg: - if you want to invite someone to a shipment or whatever then you can just invite the group. If the group accepts the invite then anyone in the group can access the shipment.

How we can implement this

  • Implement createInvite, acceptInvite, rejectInvite graphql mutations.
  • Implement an invites query that lists all pending invites for a given group.
  • No email notifications for now.
  • These queries and mutations would be only available to users that have the admin role in a given group.
  • This assumes the list of available groups in the toolbox is public and discoverable, which is probably fine.
@pedro-gutierrez pedro-gutierrez added enhancement New feature or request twelve good first issue Good for newcomers help wanted Extra attention is needed labels Nov 28, 2020
@pedro-gutierrez pedro-gutierrez changed the title Group invite/accept/reject GraphQL api Group invites Api Nov 28, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed twelve
Projects
None yet
Development

No branches or pull requests

1 participant