Skip to content
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(console|passport): Delete group, delete member and identity of group member #2597

Conversation

Cosmin-Parvulescu
Copy link
Contributor

@Cosmin-Parvulescu Cosmin-Parvulescu commented Aug 11, 2023

Description

  • Ability to delete groups
  • Ability to kick group members
  • Ability to clear group data when deleting identity
  • Infrastructure for toast messaging in groups

Related Issues

Testing

  1. Create group
  2. Delete group
    --
  3. Create group
  4. Add group member
  5. Delete group member
    --
  6. Create group
  7. Add group member
  8. Delete group member
  9. Delete myself
    --
  10. Create group
  11. Delete identity
    --
  12. Create group
  13. Add member
  14. Loging to member account
  15. Delete identity

Checklist

  • I have read the CONTRIBUTING guidelines
  • I have tested my code (manually and/or automated if applicable)
  • I have updated the documentation (if necessary)

@Cosmin-Parvulescu Cosmin-Parvulescu added the enhancement Indicates new feature requests label Aug 11, 2023
@Cosmin-Parvulescu Cosmin-Parvulescu self-assigned this Aug 11, 2023
@Cosmin-Parvulescu Cosmin-Parvulescu force-pushed the feat/console|passport/delete-group,-delete-member-and-identity-of-group-member branch 3 times, most recently from c2fcf2a to 9e23d47 Compare August 14, 2023 10:06
@Cosmin-Parvulescu Cosmin-Parvulescu marked this pull request as ready for review August 14, 2023 10:50
}: {
ctx: Context
}): Promise<void> => {
if (!ctx.accountURN) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Replace this with the RequireAccount middleware. Same for the other methods.

})
}

const purge = Boolean(fd.get('purge'))
Copy link
Contributor

Choose a reason for hiding this comment

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

Move this up so it runs before the FormData parse .. securitah!!


const identityGroupURNList = edges.map((e) => e.dst.baseUrn)
await Promise.all(
identityGroupURNList.map(async (igu) => {
Copy link
Contributor

Choose a reason for hiding this comment

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

This, ideally, we'd push down into edges to be done in a single call but maybe this may not be the right PR for it. Give it a think if it can be "easily" added and we'll decide together.

@Cosmin-Parvulescu Cosmin-Parvulescu force-pushed the feat/console|passport/delete-group,-delete-member-and-identity-of-group-member branch from bdb1edf to 7f17ff6 Compare August 15, 2023 09:49
@betimshahini betimshahini merged commit ace4ca9 into main Aug 15, 2023
14 checks passed
@betimshahini betimshahini deleted the feat/console|passport/delete-group,-delete-member-and-identity-of-group-member branch August 15, 2023 13:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Indicates new feature requests
Projects
None yet
Development

Successfully merging this pull request may close these issues.

feat(console|passport): Delete group, delete member and identity of group member
2 participants