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 828
    • Issues 828
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • Merge Requests 71
    • Merge Requests 71
  • CI / CD
    • CI / CD
    • Pipelines
    • Jobs
    • Schedules
    • Charts
  • Registry
    • Registry
  • Packages
    • Packages
  • 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
  • !372

Open
Opened 2 days ago by Ben Hayward@benhayward.ben
  • Report abuse
Report abuse

[Sprint/HipsterHedgehog](bug): Stopping banned users from showing in sidebar

Closes https://gitlab.com/minds/engine/issues/381

I also thought the component should have some test coverage.

Check out, review, and merge locally

Step 1. Fetch and check out the branch for this merge request

git fetch https://gitlab.com/benhayward.ben/front.git banned-channels-suggested-sidebar-fix
git checkout -b benhayward.ben/front-banned-channels-suggested-sidebar-fix FETCH_HEAD

Step 2. Review the changes locally

Step 3. Merge the branch and fix any conflicts that come up

git fetch origin
git checkout origin/master
git merge --no-ff benhayward.ben/front-banned-channels-suggested-sidebar-fix

Step 4. Push the result of the merge to GitLab

git push origin master

Note that pushing to GitLab requires write access to this repository.

Tip: You can also checkout merge requests locally by following these guidelines.

Request to merge benhayward.ben:banned-channels-suggested-sidebar-fix into master
The source branch is 1 commit behind the target branch
Open in Web IDE
  • Email patches
  • Plain diff
Pipeline #67510398 passed for 8bf339c7 on benhayward.ben:banned-channels-suggested-sidebar-fix
    Requires approval from Devs. Approved by
    Brian Hatchet
    Brian Hatchet
    Emiliano Balbuena
    Emiliano Balbuena
    Mark Harding
    Mark Harding
    Martin Santangelo
    Martin Santangelo
    Marcelo Rivera
    Marcelo Rivera
    Ready to be merged automatically. Ask someone with write access to this repository to merge this request

    Closes engine#381

    • Discussion 2
    • Commits 1
    • Pipelines 1
    • Changes 2
    0/1 discussion resolved
    • Loading...
    • Brian Hatchet
      Brian Hatchet :speech_balloon: @brianhatchet started a discussion on the diff 4 hours ago
      Last updated by Ben Hayward 1 hour ago
      src/app/modules/suggestions/channel/sidebar.component.ts
      43 43 });
      44 44 for (let suggestion of response.suggestions) {
      45 45 const removed = this.storage.get(`user:suggestion:${suggestion.entity_guid}:removed`);
      46 if (!removed) {
      46 if (!removed && suggestion.banned !== "yes") {
      • Brian Hatchet
        Brian Hatchet :speech_balloon: @brianhatchet · 4 hours ago
        Maintainer

        I keep seeing these "yes" in the code base which makes we wonder why they aren't bools. Not a change you need to make, but I will ask about it, because it feels like we're asking for trouble.

      • Ben Hayward
        Ben Hayward @benhayward.ben · 1 hour ago
        Developer

        Agreed completely but I was just mimicking the value held by an entity already. Would be wary of changing it here incase somewhere else in the codebase it's expecting a string rather than a bool.

        What do you think best?

      Please register or sign in to reply
    • Brian Hatchet :speech_balloon: @brianhatchet approved this merge request 4 hours ago

      approved this merge request

    • 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
    None
    Assign to
    None
    Milestone
    None
    Assign milestone
    None
    Time tracking
    No estimate or time spent
    0
    Labels
    None
    Assign labels
    • View project labels
    Lock merge request
    Unlocked
    6
    6 participants
    user avatar
    Emiliano Balbuena
    user avatar
    Mark Harding
    user avatar
    Martin Santangelo
    user avatar
    Marcelo Rivera
    user avatar
    Ben Hayward
    user avatar
    Brian Hatchet
    Reference: minds/front!372