Skip to content

Next

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
    • Help
    • Submit feedback
    • Contribute to GitLab
    • Switch to GitLab Next
  • Sign in / Register
Minds Frontend
Minds Frontend
  • Project
    • Project
    • Details
    • Activity
    • Releases
    • Dependency List
    • Cycle Analytics
    • Insights
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Charts
    • Locked Files
  • Issues 843
    • Issues 843
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • Merge Requests 43
    • Merge Requests 43
  • CI / CD
    • CI / CD
    • Pipelines
    • Jobs
    • Schedules
    • Charts
  • Packages
    • Packages
    • List
    • Container Registry
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Members
    • Members
  • Collapse sidebar
  • Activity
  • Graph
  • Charts
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
  • Minds
  • Minds FrontendMinds Frontend
  • Merge Requests
  • !426

Merged
Opened 3 weeks ago by Brian Hatchet@brianhatchet:speech_balloon:
  • Report abuse
Report abuse

(Feat) disable comments 526

Edited 3 weeks ago by Brian Hatchet
Request to merge feat/disable-comments-526 into master
  • Email patches
  • Plain diff
Pipeline #72730399 passed for 1b7b3d3d on feat/disable-comments-526
          Merge request approved. Approved by
          Mark Harding
          Mark Harding
          Emiliano Balbuena
          Emiliano Balbuena
          Marcelo Rivera
          Marcelo Rivera
          Ben Hayward
          Ben Hayward
          Martin Santangelo
          Martin Santangelo

          Merged by Mark Harding 37 minutes ago

          The changes were merged into master with 749e79e5

          The source branch has been deleted

          Pipeline #73514979 passed for 749e79e5 on master
                • Discussion 22
                • Commits 32
                • Pipelines 14
                • Changes 25
                8/9 threads resolved
                • Loading...
                • Brian Hatchet :speech_balloon: @brianhatchet changed milestone to %sprint: Interesting Iguana 3 weeks ago

                  changed milestone to %sprint: Interesting Iguana

                • Brian Hatchet :speech_balloon: @brianhatchet changed title from Feat/disable comments 526 to (Feat) disable comments 526 3 weeks ago

                  changed title from Feat/disable comments 526 to (Feat) disable comments 526

                • Brian Hatchet :speech_balloon: @brianhatchet added 4 commits 2 weeks ago

                  added 4 commits

                  • b8f503ae...d7f9cc7d - 3 commits from branch master
                  • e93b4129 - Merge remote-tracking branch 'upstream/master' into feat/disable-comments-526

                  Compare with previous version

                • Brian Hatchet :speech_balloon: @brianhatchet added 1 commit 2 weeks ago

                  added 1 commit

                  • 032dc9ae - fixing comment allowComment access leve

                  Compare with previous version

                • Ben Hayward @benhayward.ben approved this merge request 2 weeks ago

                  approved this merge request

                • Mark Harding @markeharding added MR::Awaiting Review scoped label 2 weeks ago

                  added MR::Awaiting Review scoped label

                • Brian Hatchet :speech_balloon: @brianhatchet added 8 commits 2 weeks ago

                  added 8 commits

                  • 032dc9ae...12a0ab82 - 6 commits from branch master
                  • b3689ba5 - Merge branch 'master' of gitlab.com:minds/front
                  • 4b51976e - Merge branch 'master' into feat/disable-comments-526

                  Compare with previous version

                • Brian Hatchet :speech_balloon: @brianhatchet added 1 commit 2 weeks ago

                  added 1 commit

                  • 95ca222a - Adding 'allow-comments-toggle' feature. Setting featuresservice assumption to false

                  Compare with previous version

                • Brian Hatchet :speech_balloon: @brianhatchet added 45 commits 2 weeks ago

                  added 45 commits

                  • 95ca222a...bda69088 - 44 commits from branch master
                  • 48216571 - Merge remote-tracking branch 'origin/master' into feat/disable-comments-526

                  Compare with previous version

                • Brian Hatchet :speech_balloon: @brianhatchet added 12 commits 1 week ago

                  added 12 commits

                  • 48216571...3fad9777 - 11 commits from branch master
                  • 5c29a195 - Merge remote-tracking branch 'upstream/master' into feat/disable-comments-526

                  Compare with previous version

                • Mark Harding
                  Mark Harding @markeharding started a thread on an old version of the diff 1 week ago
                  Resolved by Brian Hatchet 1 week ago
                • Mark Harding
                  Mark Harding @markeharding started a thread on an old version of the diff 1 week ago
                  Last updated by Brian Hatchet 6 days ago
                  src/app/modules/comments/comment/comment.component.ts
                  87 94 private overlayModal: OverlayModalService,
                  88 95 private cd: ChangeDetectorRef,
                  89 96 private timeDiffService: TimeDiffService,
                  90 private el: ElementRef
                  97 private el: ElementRef,
                  98 protected activityService: ActivityService
                  91 99 ) {}
                  92 100
                  93 101 ngOnInit() {
                  94 102 this.commentAge$ = this.timeDiffService.source.pipe(map(secondsElapsed => {
                  95 103 return (this.comment.time_created - secondsElapsed * 0.01) * 1000;
                  96 104 }));
                  105 this.canReply = this.entity['allow_comments'];
                  • Mark Harding
                    Mark Harding @markeharding · 1 week ago
                    Owner

                    q. should this be instantiated from the tree/thread level?

                  • Emiliano Balbuena
                    Emiliano Balbuena @edgebal · 1 week ago
                    Developer

                    Adhering to Mark's question here. Remember that, if you don't want to be passing the property through the whole tree, you can also use a shared just-for-state @Injectable() service using providers: [] on the top level component (the comments list container), and injecting it on the constructor() part of the children components.

                  • Brian Hatchet
                    Brian Hatchet :speech_balloon: @brianhatchet · 1 week ago
                    Maintainer

                    I am confused. I am pretty sure that is exactly what I am doing.

                    Provided here. https://gitlab.com/minds/front/blob/feat/disable-comments-526/src/app/modules/comments/list/list.component.ts#L28

                    Then I just inject it into whatever component needs to respond at the constructor level.

                  • Brian Hatchet :speech_balloon: @brianhatchet changed this line in version 10 of the diff 6 days ago

                    changed this line in version 10 of the diff

                  • Please register or sign in to reply
                • Mark Harding
                  Mark Harding @markeharding started a thread on an old version of the diff 1 week ago
                  Resolved by Brian Hatchet 1 week ago
                • Mark Harding
                  Mark Harding @markeharding started a thread on an old version of the diff 1 week ago
                  Resolved by Brian Hatchet 1 week ago
                • Emiliano Balbuena
                  Emiliano Balbuena @edgebal started a thread on an old version of the diff 1 week ago
                  Resolved by Brian Hatchet 1 week ago
                • Emiliano Balbuena
                  Emiliano Balbuena @edgebal started a thread on an old version of the diff 1 week ago
                  Resolved by Brian Hatchet 1 week ago
                • Emiliano Balbuena
                  Emiliano Balbuena @edgebal started a thread on an old version of the diff 1 week ago
                  Resolved by Brian Hatchet 1 week ago
                • Emiliano Balbuena
                  Emiliano Balbuena @edgebal started a thread on an old version of the diff 1 week ago
                  Resolved by Brian Hatchet 1 week ago
                • Emiliano Balbuena
                  Emiliano Balbuena @edgebal started a thread on an old version of the diff 1 week ago
                  Resolved by Brian Hatchet 4 days ago
                • Brian Hatchet :speech_balloon: @brianhatchet added 13 commits 1 week ago

                  added 13 commits

                  • 5c29a195...87b682c6 - 12 commits from branch master
                  • 7093e8d1 - Merge remote-tracking branch 'origin/master' into feat/disable-comments-526

                  Compare with previous version

                • Brian Hatchet :speech_balloon: @brianhatchet added 1 commit 1 week ago

                  added 1 commit

                  • 3ebd1846 - CR changes

                  Compare with previous version

                • Mark Harding @markeharding added Squad::Green scoped label 1 week ago

                  added Squad::Green scoped label

                • Marcelo Rivera @eiennohi approved this merge request 1 week ago

                  approved this merge request

                • Brian Hatchet :speech_balloon: @brianhatchet added 20 commits 6 days ago

                  added 20 commits

                  • 3ebd1846...157e56d4 - 17 commits from branch master
                  • 97042103 - Merge remote-tracking branch 'origin/master' into feat/disable-comments-526
                  • 4ce3fc42 - Merge remote-tracking branch 'origin/master' into feat/disable-comments-526
                  • f76b770f - CR changes and BehaviorSubject overhaul

                  Compare with previous version

                  Toggle commit list
                • Brian Hatchet :speech_balloon: @brianhatchet added 1 commit 6 days ago

                  added 1 commit

                  • 709bb089 - Fixing builds

                  Compare with previous version

                • Brian Hatchet :speech_balloon: @brianhatchet added 1 commit 6 days ago

                  added 1 commit

                  • b9591e71 - One more typo fix

                  Compare with previous version

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

                  approved this merge request

                • Mark Harding
                  Mark Harding @markeharding · 6 days ago
                  Owner

                  Looks good to me. Lets get another approval and we can merge in

                • Marcelo Rivera @eiennohi approved this merge request 6 days ago

                  approved this merge request

                • Brian Hatchet :speech_balloon: @brianhatchet added 7 commits 5 days ago

                  added 7 commits

                  • b9591e71...0d5fd361 - 6 commits from branch master
                  • 3956dba5 - fixing merge conflicts

                  Compare with previous version

                • Brian Hatchet :speech_balloon: @brianhatchet added 3 commits 4 days ago

                  added 3 commits

                  • 3956dba5...ac7bc7cb - 2 commits from branch master
                  • 1b7b3d3d - Merge remote-tracking branch 'origin/master' into feat/disable-comments-526

                  Compare with previous version

                • Emiliano Balbuena @edgebal approved this merge request 4 days ago

                  approved this merge request

                • Mark Harding @markeharding approved this merge request 37 minutes ago

                  approved this merge request

                • Mark Harding @markeharding merged 37 minutes ago

                  merged

                • Mark Harding @markeharding mentioned in commit 749e79e5 37 minutes ago

                  mentioned in commit 749e79e5

                • You're only seeing other activity in the feed. To add a comment, switch to one of the following options.
                Please register or sign in to reply
                Assignee
                Brian Hatchet's avatar Brian Hatchet @brianhatchet
                Assign to
                sprint: Interesting Iguana
                Milestone
                sprint: Interesting Iguana
                Assign milestone
                None
                Time tracking
                No estimate or time spent
                2
                Labels
                MR::Awaiting Review Squad::Green
                Assign labels
                • View project labels
                Lock merge request
                Unlocked
                6
                6 participants
                user avatar
                Marcelo Rivera
                user avatar
                Ben Hayward
                user avatar
                Martin Santangelo
                user avatar
                Brian Hatchet
                user avatar
                Mark Harding
                user avatar
                Emiliano Balbuena
                Reference: minds/front!426

                Revert this merge request

                This will create a new commit in order to revert the existing changes.

                Switch branch
                Cancel
                A new branch will be created in your fork and a new merge request will be started.

                Cherry-pick this merge request

                Switch branch
                Cancel
                A new branch will be created in your fork and a new merge request will be started.