Skip to content

  • Projects
  • Groups
  • Snippets
  • Help
  • Sign in / Register
Minds Frontend
Minds Frontend
  • Project overview
  • Repository
  • Issues 354
  • Merge Requests 56
  • CI / CD
  • Security & Compliance
  • Packages
  • Wiki
  • Snippets
  • Members
  • Collapse sidebar
  • Graph
  • Charts
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
  • Minds
  • Minds FrontendMinds Frontend
  • Merge Requests
  • !710

Open
Opened 17 hours ago by Ben Hayward@benhayward.ben
Report abuse

Group membership change propegation

  • Overview 2
  • Commits 1
  • Pipelines 1
  • Changes 6
0/2 threads resolved

Summary

Closes #2228

This MR makes it so that when joining, leaving, creating and destroying a group, the sidebar updates without the user having to refresh.

Steps to test

Create and Delete
  1. Log in.
  2. Create a new group.
  3. Check the sidebar has the new group without you having to reload.
  4. Delete the group, it should now be gone.
Leave and Join
  1. Join a group that you are not an admin of.
  2. Leave the group - it should now be gone from the sidebar.
  3. Rejoin, it should be back.

Estimated Regression Scope

GroupsService, The group sidebar have been the main focus of this change, most of the logical changes are in there.

I've also touched two other areas due to errors flooding my console when testing:

Avatar component, the only change is an extra condition in an if statement, so I don't see much of an issue with that but note it has been touched.

Other than that some changeDetection was added to the videochat component.

Request to merge fix/group-membership-propegation-2228 into master
The source branch is 6 commits behind the target branch
Open in Web IDE
Pipeline #106943828 failed for f0812700 on fix/group-membership-propegation-2228
              Requires 3 more approvals from Devs, Deployers, and QA.
              Olivia Madrid
              Olivia Madrid
              Emiliano Balbuena
              Emiliano Balbuena
              Marcelo Rivera
              Marcelo Rivera
              Xander Miller
              Xander Miller
              Guy Thouret
              Guy Thouret
              Ready to be merged automatically. Ask someone with write access to this repository to merge this request

              Closes #2228

              Deletes source branch

              • Ben Hayward @benhayward.ben added Squad::Yellow Status::Requires Changes scoped labels 17 hours ago

                added scoped labels

              • Ben Hayward
                Ben Hayward @benhayward.ben started a thread on the diff 17 hours ago
                src/app/modules/videochat/videochat.component.ts
                39 39 this.isActive = false;
                40 40 }
                41 41 this.cd.markForCheck();
                42 this.cd.detectChanges();
                42 if (!this.cd['destroyed']) {
                43 this.cd.detectChanges();
                44 }
                43 45 }
                44 46 );
                45 47 }
                46 48
                47 49 ngOnDestroy() {
                50 this.cd.detach();
                48 51 this.service.deactivate();
                • Ben Hayward
                  Ben Hayward @benhayward.ben · 17 hours ago
                  Developer

                  Not related to this change per se, but trying to use a destroyed change detector was flooding the console; this is likely somewhere in sentry but I could not find the issue.

                • Please register or sign in to reply
              • Ben Hayward
                Ben Hayward @benhayward.ben started a thread on the diff 17 hours ago
                src/app/common/components/avatar/avatar.ts
                130 130 * @returns true if the object guid matches the currently logged in user guid
                131 131 */
                132 132 isOwnerAvatar(): boolean {
                133 return this.minds.user && this.object.guid === this.minds.user.guid;
                133 return (
                134 this.minds.user &&
                135 this.object &&
                136 this.object.guid === this.minds.user.guid
                137 );
                134 138 }
                • Ben Hayward
                  Ben Hayward @benhayward.ben · 17 hours ago
                  Developer

                  Fixes #2403

                  Added in here because it made monitoring console for errors very annoying.

                • Please register or sign in to reply
              Please register or sign in to reply
              0 Assignees
              None
              None
              Milestone
              None
              Time tracking
              No estimate or time spent
              2
              Labels
              Squad::Yellow Status::Requires Changes
              Lock merge request
              Unlocked
              11
              11 participants
              user avatar
              Olivia Madrid
              user avatar
              Emiliano Balbuena
              user avatar
              Marcelo Rivera
              user avatar
              Xander Miller
              user avatar
              Guy Thouret
              user avatar
              Martin Santangelo
              user avatar
              Rami Albatal
              Reference: minds/front!710

              Now you can access the merge request navigation tabs at the top, where they’re easier to find.

              More information and share feedback