Skip to content

feat: 🍰 Implement JoinGroup, GroupMember, SwitchGroupMemberRole Resolvers #5199

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

Merged
merged 32 commits into from
Aug 30, 2022

Conversation

Tirokk
Copy link
Member

@Tirokk Tirokk commented Aug 23, 2022

🍰 Pullrequest

Implement JoinGroup, GroupMember, and SwitchGroupMemberRole resolvers.

Issues

Todo

  • set updatedAt to null
  • rename EnterGroup to JoinGroup
  • change name SwitchGroupMemberRole to ChangeGroupMemberRole
  • implement ChangeGroupMemberRole
    • add functionallity to join group with ChangeGroupMemberRole
      • test this
  • test in general
    • refactor for additinal describe blocks for in mode: XXX
  • test of JoinGroup refactor to building up mode?
  • test ChangeGroupMemberRole
    • general tests
    • check for has "updatedAt" newer as "createdAt"?
      • the GQL mutation would need this fields in the result for testing
      • !!! we decided to do it not yet
    • shall a switch to a role which the a member already has through a permission error?
      • !!! we decided to through no error
    • can an owner be degraded?
      • shall an owner can switch the role of another owner to a lower role yet?
      • or shall only an owner who gave the second owner the owner role downgrade themself?
      • !!! we decided an owner can not be degraded yet
  • switch some group members role in seeding
  • who can make a user joining a group
    • the user themselfs in case of groups of type public and closed
    • the admin/owner with an invite code in case of groups of type hidden, see 🚀 [Feature] Invite Link For Groups #5204
      • we decided that a hidden group can not be joined
        • !!! we decide a hidden group can only be joined by ChangeGroupMemberRole by an owner (no admin)
  • for changing english Authorised to american english Authorized all over the place, see issue 💥 [DevOps] Change Error Message With Authorised To Authorized All Over The Place To Have American English #5203
  • cleanup: search Wolle

@Tirokk Tirokk changed the title feat: [WIP] 🍰 Implement JoinGroup, GroupMember, SwitchGroupMemberRole Resolvers feat: 🍰 Implement JoinGroup, GroupMember, SwitchGroupMemberRole Resolvers Aug 23, 2022
@Tirokk Tirokk requested a review from Mogge August 23, 2022 11:13
Copy link
Contributor

@Mogge Mogge left a comment

Choose a reason for hiding this comment

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

Sorry, I saw this very late. But I think it is really better to have myRoleInGroup on Group instead of on User

@Tirokk Tirokk requested a review from Mogge August 25, 2022 16:17
…/Ocelot-Social into 5059-groups/5188-query-members-of-group

# Conflicts:
#	backend/src/schema/resolvers/groups.spec.js
@Tirokk Tirokk merged commit 244cb59 into 5059-epic-groups Aug 30, 2022
@Tirokk Tirokk deleted the 5059-groups/5188-query-members-of-group branch August 30, 2022 08:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants