Skip to content

  • Projects
  • Groups
  • Snippets
  • Help
  • Sign in / Register
Minds Backend - Engine
Minds Backend - Engine
  • Project overview
  • Repository
  • Issues 294
  • Merge Requests 38
  • CI / CD
  • Security & Compliance
  • Packages
  • Wiki
  • Snippets
  • Members
  • Collapse sidebar
  • Graph
  • Charts
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
  • Minds
  • Minds Backend - EngineMinds Backend - Engine
  • Merge Requests
  • !412

Merged
Opened 5 hours ago by Ben Hayward@benhayward.ben
Report abuse

[Sprint/SillySheep](fix): Failing spam detection on staging causing issues when uploading media #1193

Closes #1193 (closed)

Summary

Following an update to the spam detection system, videos stopped working because the spam detector was expecting an Entity object rather than the Video that our media POST was passing to it. The same applies to an Image object being passed through.

This caused an issue where-in ->getDescription() could not be found - as Video has the description attribute, I added getters and setters into the Video and Image classes.

Testing

Test various upload types, try posting with and without a red flag failing link (e.g. bit.ly).

Edited 4 hours ago by Ben Hayward
Request to merge fix/spam-detection-webm-1193 into master
Pipeline #100399197 passed for 4c9d86d1 on fix/spam-detection-webm-1193
          Merge request approved. Approved by
          Mark Harding
          Mark Harding
          Marcelo Rivera
          Marcelo Rivera
          Olivia Madrid
          Olivia Madrid
          Emiliano Balbuena
          Emiliano Balbuena
          Rami Albatal
          Rami Albatal
          Guy Thouret
          Guy Thouret

          Merged by Mark Harding 43 minutes ago

          The changes were merged into master with 4fb65001

          The source branch has been deleted

          Closed #1193 (closed)

          Pipeline #100407323 waiting for manual action for 4fb65001 on master
                        • Discussion 4
                        • Commits 6
                        • Pipelines 6
                        • Changes 3
                        2/2 threads resolved
                        • Ben Hayward @benhayward.ben added MR::Awaiting Review Squad::Yellow scoped labels 5 hours ago

                          added scoped labels

                        • Ben Hayward @benhayward.ben added MR::Requires Changes scoped label and automatically removed MR::Awaiting Review label 5 hours ago

                          added scoped label and automatically removed label

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

                          added 1 commit

                          • 27039ee4 - Added description getter and setters for images

                          Compare with previous version

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

                          added 1 commit

                          • 4ba8807f - Forgot to switch return type

                          Compare with previous version

                        • Ben Hayward @benhayward.ben changed title from Sprint/SillySheep: Failing spam detection causing issues when uploading webm media #1193 (closed) to Sprint/SillySheep: Failing spam detection on staging causing issues when uploading media #1193 (closed) 4 hours ago

                          changed title from : Failing spam detection media to : Failing spam detection media

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

                          changed the description

                        • Ben Hayward @benhayward.ben added MR::Awaiting Review scoped label and automatically removed MR::Requires Changes label 4 hours ago

                          added scoped label and automatically removed label

                        • Xander Miller @xander-miller approved this merge request 4 hours ago

                          approved this merge request

                        • Xander Miller
                          Xander Miller @xander-miller · 4 hours ago
                          Developer

                          Feels like there is a couple hundred milliseconds of lag at the end of the progress bar just before a image uploads but seems more stable than previously.

                        • Mark Harding
                          Mark Harding @markeharding started a thread on an old version of the diff 1 hour ago
                          Resolved by Ben Hayward 1 hour ago
                        • Mark Harding
                          Mark Harding @markeharding started a thread on an old version of the diff 1 hour ago
                          Resolved by Ben Hayward 1 hour ago
                        • Mark Harding @markeharding added MR::Requires Changes scoped label and automatically removed MR::Awaiting Review label 1 hour ago

                          added scoped label and automatically removed label

                        • Mark Harding
                          Mark Harding @markeharding · 1 hour ago
                          Owner

                          We need to use method_exists on https://gitlab.com/minds/engine/blob/master/Core/Security/Spam.php#L32

                        • Ben Hayward @benhayward.ben added 1 commit 1 hour ago

                          added 1 commit

                          • 9da8447b - Added in method exists check

                          Compare with previous version

                        • Ben Hayward @benhayward.ben resolved all threads 1 hour ago

                          resolved all threads

                        • Ben Hayward @benhayward.ben added 1 commit 1 hour ago

                          added 1 commit

                          • ad7aa06f - Minor fixes

                          Compare with previous version

                        • Ben Hayward @benhayward.ben added 1 commit 1 hour ago

                          added 1 commit

                          • 4c9d86d1 - Added docblock

                          Compare with previous version

                        • Mark Harding @markeharding added Priority::0 - Urgent Regression::Staging Type::Regression scoped labels 50 minutes ago

                          added scoped labels

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

                          approved this merge request

                        • Mark Harding @markeharding added MR::Ready to Merge scoped label and automatically removed MR::Requires Changes label 49 minutes ago

                          added scoped label and automatically removed label

                        • Mark Harding @markeharding mentioned in commit 4fb65001 44 minutes ago

                          mentioned in commit 4fb65001

                        • Mark Harding @markeharding merged 44 minutes ago

                          merged

                        Please register or sign in to reply
                        0 Assignees
                        None
                        None
                        Milestone
                        None
                        Time tracking
                        No estimate or time spent
                        5
                        Labels
                        MR::Ready to Merge Priority::0 - Urgent Regression::Staging Squad::Yellow Type::Regression
                        Lock merge request
                        Unlocked
                        10
                        10 participants
                        user avatar
                        Marcelo Rivera
                        user avatar
                        Olivia Madrid
                        user avatar
                        Emiliano Balbuena
                        user avatar
                        Rami Albatal
                        user avatar
                        Guy Thouret
                        user avatar
                        Martin Santangelo
                        user avatar
                        Brian Hatchet
                        Reference: minds/engine!412