GithubHelp home page GithubHelp logo

reports about antilope HOT 4 OPEN

vincent-peugnet avatar vincent-peugnet commented on July 19, 2024
reports

from antilope.

Comments (4)

vincent-peugnet avatar vincent-peugnet commented on July 19, 2024

Managers should be able to report a validation they find strange or abusive. Especially if they have checked the responsive checkbox.
For example, you're sharing a guitar lesson, an user validate you, but you've never seen her or him... straaannge...

from antilope.

vincent-peugnet avatar vincent-peugnet commented on July 19, 2024

Things that can be reported:

  • sharable
  • validation
  • interest
  • question
  • answer

there could be a parent class report

class Report

id        int
rule      rule_id (int)
comment   text
creation  dateTime
user      user_id (int)

And child classes like ReportSharable

class ReportSharable extends Report

sharable   int

from antilope.

vincent-peugnet avatar vincent-peugnet commented on July 19, 2024

Mmmhh,
I'm thinking again of how should Reports be stored.

I wanted to to a ReportReport entity allowing moderators to report a report 😄

But these would need to allow report ReportSharable, ReportInterest, ReportUserProfile.... etc... so I should create a ReportReportSharable !!! That's horrible.

So I'm wondering if, from the begining, I could have done things differently by using a lot of columns that won't be used at the same time.

class Report V2

id         int
rule       rule_id (int)
comment    text
creation   dateTime
user       user_id (int)

sharable   sharable_id (default: NULL)
interest   interest_id (default: NULL)
validation validation_id (default: NULL)

I can manage to only allow one of thoose parameter to be filled.
But of course that would create many empty columns.

But I like the idea of each report sharing the same ID count.

from antilope.

vincent-peugnet avatar vincent-peugnet commented on July 19, 2024

As said @n-peugnet , it correspond to problems resolved by Doctrine Inheritance.

Maybe the easiest way could be to use the single table inheritance strategy.

from antilope.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.