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
    • Cycle Analytics
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Charts
    • Locked Files
  • Issues 799
    • Issues 799
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • Merge Requests 50
    • Merge Requests 50
  • 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
  • !316

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

WIP: [Sprint/FunnyFrog](bug): Fixed bugs with reminds not respecting NSFW state of a post

Closing minds#428

Take the below code.

let object = { nsfw : [1, 2, 3, 4] };
let res = [ 1, 2, 4 ].filter(nsfw => { return object.nsfw.indexOf(nsfw) > -1}).length;
console.log(res); 

It should output the integer 3. Unfortunately for some reason, when considering reminds it does not, it outputs 0.

Given the input parameters seem the same, I'm thinking that it is some strange quirk of Javascript, or an issue with types. I got some strange behavior trying to Array.from(object.nsfw) so perhaps it needs casting.

Resuming tomorrow.

Edited 10 hours ago by Ben Hayward

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 nsfw-broken-for-reminds-#428
git checkout -b benhayward.ben/front-nsfw-broken-for-reminds-#428 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-nsfw-broken-for-reminds-#428

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:nsfw-broken-for-reminds-#428 into master
The source branch is 41 commits behind the target branch
Open in Web IDE
  • Email patches
  • Plain diff
Pipeline #62694871 passed for d05de6c4 on benhayward.ben:nsfw-broken-for-reminds-#428
    Requires 2 more approvals from Devs.
    Marcelo Rivera
    Marcelo Rivera
    Emiliano Balbuena
    Emiliano Balbuena
    Martin Santangelo
    Martin Santangelo
    Brian Hatchet
    Brian Hatchet
    Mark Harding
    Mark Harding
    This is a Work in Progress
    Allows commits from members who can merge to the target branch

    Closes minds#428

    Deletes source branch

    You can merge this merge request manually using the
    • Discussion 0
    • Commits 1
    • Pipelines 2
    • Changes 1
    • Loading...
    • Ben Hayward @benhayward.ben changed the description 11 hours ago

      changed the description

    • Ben Hayward @benhayward.ben marked as a Work In Progress 11 hours ago

      marked as a Work In Progress

    • Ben Hayward @benhayward.ben changed the description 11 hours ago

      changed the description

    • Ben Hayward @benhayward.ben changed the description 3 times within 2 minutes 10 hours ago

      changed the description 3 times within 2 minutes

    • Ben Hayward @benhayward.ben added 1 commit 10 hours ago

      added 1 commit

      • d05de6c4 - casted the array

      Compare with previous version

    • 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
    Marcelo Rivera
    user avatar
    Emiliano Balbuena
    user avatar
    Martin Santangelo
    user avatar
    Brian Hatchet
    user avatar
    Mark Harding
    user avatar
    Ben Hayward
    Reference: minds/front!316