Skip to content

  • Projects
  • Groups
  • Snippets
  • Help
  • Sign in / Register
Minds Frontend
Minds Frontend
  • Project overview
  • Repository
  • Issues 345
  • 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
  • !703

Open
Opened 3 weeks ago by Ben Hayward@benhayward.ben
Report abuse

[Sprint/VacantViper](fix) Live refresh of comments thread on entity change. #1658

  • Overview 5
  • Commits 2
  • Pipelines 2
  • Changes 1
0/1 thread resolved

Summary

Closes #1658

Comment threads currently do not live refresh, so if the original input entity changes, the thread does not update. This is not problematic for most usecases as the entity is usually fixed, but in situations like the firehose, it changes on approval / rejection.

This meant that when approving and rejecting, the old comments stayed in place on the wrong entity.

Steps to test

  1. Log in as admin
  2. Make 5x posts with the content: adult 1, adult 2, adult 3, adult 4, adult 5
  3. Comment on each of these posts (maybe multiple times but not essential) comment 1, comment 2 etc
  4. In admin panel, go to firehose
  5. First entry should be your new post (adult is a keyword watched by the firehose)
  6. Open the comments - be sure the comment is there.
  7. Click approve, it should load the next post's comments automatically.
  8. Try reject, it should do the same.

Estimated Regression Scope

This affects all comment threads on the side, though only in the way of their change detection. Regressions relating to the updating of threads are possible There was an issue I had during development where it was triggering on the initial input, rather than changes, thus duplicating comments and XHR requests.

Request to merge fix/admin-firehose-1658 into master
The source branch is 21 commits behind the target branch
Open in Web IDE
Pipeline #106853671 passed with warnings for 9354105c on fix/admin-firehose-1658
              Merge request approved. Approved by
              Mark Harding
              Mark Harding
              Rami Albatal
              Rami Albatal
              Juan Manuel Solaro
              Juan Manuel Solaro
              Guy Thouret
              Guy Thouret
              Marcelo Rivera
              Marcelo Rivera
              Xander Miller
              Xander Miller
              Ready to be merged automatically. Ask someone with write access to this repository to merge this request

              Closes #1658

              Deletes source branch

              • Ben Hayward @benhayward.ben added Squad::Yellow scoped label 3 weeks ago

                added scoped label

              • Ben Hayward @benhayward.ben added Status::Awaiting Review scoped label 3 weeks ago

                added scoped label

              • Ben Hayward @benhayward.ben added Status::BuddyReview scoped label and automatically removed Status::Awaiting Review label 3 weeks ago

                added scoped label and automatically removed label

              • Xander Miller
                Xander Miller @xander-miller · 2 weeks ago
                Developer

                seen at buddy review

              • Ben Hayward @benhayward.ben assigned to @benhayward.ben 2 weeks ago

                assigned to @benhayward.ben

              • Ben Hayward @benhayward.ben assigned to @edgebal 2 weeks ago

                assigned to @edgebal

              • Emiliano Balbuena
                Emiliano Balbuena @edgebal · 2 weeks ago
                Developer

                Seems like the indexing runner is not working correctly on the sandbox.

              • Emiliano Balbuena
                Emiliano Balbuena @edgebal · 2 weeks ago
                Developer

                Looks like this sandbox's indexer is still having issues

              • Emiliano Balbuena
                Emiliano Balbuena @edgebal started a thread on an old version of the diff 2 weeks ago
                Last updated by Ben Hayward 6 days ago
                src/app/modules/comments/thread/thread.component.ts
                320 320 }
                321 321
                322 322 ngOnChanges(changes) {
                323 // console.log('[comment:list]: on changes', changes);
                323 // console.log('[comment:thread]: on changes', changes);
                324
                325 // reload on entity change.
                326 if (changes.entity && changes.entity.previousValue) {
                • Emiliano Balbuena
                  Emiliano Balbuena @edgebal · 2 weeks ago
                  Developer

                  In order to avoid unnecessary reloads, can we also check the entity's GUID against the previous value?

                • Ben Hayward @benhayward.ben changed this line in version 2 of the diff 6 days ago

                  changed this line in version 2 of the diff

                • Please register or sign in to reply
              • Emiliano Balbuena @edgebal added Status::Requires Changes scoped label and automatically removed Status::BuddyReview label 2 weeks ago

                added scoped label and automatically removed label

              • Emiliano Balbuena @edgebal unassigned @edgebal 2 weeks ago

                unassigned @edgebal

              • Ben Hayward @benhayward.ben added 1 commit 6 days ago

                added 1 commit

                • 9354105c - Added in guid check for repeating post

                Compare with previous version

              • Ben Hayward @benhayward.ben added Status::BuddyReview scoped label and automatically removed Status::Requires Changes label 6 days ago

                added scoped label and automatically removed label

              • Mark Harding @markeharding approved this merge request 2 days ago

                approved this merge request

              • Mark Harding @markeharding added Status::Ready to Merge scoped label and automatically removed Status::BuddyReview label 2 days ago

                added scoped label and automatically removed label

              • Ben Hayward @benhayward.ben assigned to @xander-miller 1 day ago

                assigned to @xander-miller

              • Ben Hayward @benhayward.ben assigned to @edgebal and unassigned @benhayward.ben 1 day ago

                assigned to @edgebal and unassigned @benhayward.ben

              • Ben Hayward @benhayward.ben assigned to @benhayward.ben 1 day ago

                assigned to @benhayward.ben

              • Xander Miller
                Xander Miller @xander-miller · 40 minutes ago
                Developer

                Why I create posts with the word "adult" they do not appear in the fire hose feed. I tried doing it with the admin account and a different account.

              Please register or sign in to reply
              3 Assignees
              Emiliano Balbuena's avatar
              Xander Miller's avatar
              Ben Hayward's avatar
              None
              Milestone
              None
              Time tracking
              No estimate or time spent
              2
              Labels
              Squad::Yellow Status::Ready to Merge
              Lock merge request
              Unlocked
              11
              11 participants
              user avatar
              Rami Albatal
              user avatar
              Juan Manuel Solaro
              user avatar
              Guy Thouret
              user avatar
              Marcelo Rivera
              user avatar
              Xander Miller
              user avatar
              Emiliano Balbuena
              user avatar
              Martin Santangelo
              Reference: minds/front!703

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

              More information and share feedback