Giter Club home page Giter Club logo

Comments (2)

MichaelSlatteryDev avatar MichaelSlatteryDev commented on June 15, 2024

@Xazin taking a look at this now. Is there any documentation about what each model needs to do? I can try to make some educated guesses about what we'll need but it would probably be better to get more information first.

Based on the naming I'm going to guess this is the structure:

  • Forum
    • ForumPermissions
    • Thread
      • Post
        • PostInfo
          • UserInfo
        • LastPostInfo
      • Poll

I'm not sure what ThreadPrefixes is or where ReportedPosts should go. Can you clear some of this up for me and let me know if I'm on the right track?

from collaction_api.

Xazin avatar Xazin commented on June 15, 2024

In #documentation on Alack there should be some help with this, there is also a diagram with all the properties.

Relationships:

 ONE FORUM TO MANY FORUMS
 ONE FORUM TO MANY FORUM PERMISSIONS
 ONE FORUM TO MANY THREADS
 ONE THREAD TO MANY POSTS
 ONE POLL TO ONE THREAD
 MANY THREAD PREFIXES TO MANY FORUM

As I am on the phone, sorry if the below is not super clear.

A forum can contain many forums. A forum can be a category, that contains forums. However a forum that is not a category can still contain other forums, these would be sub-forums.

Some examples:

  • General Board
    • News
    • Feedback
      • Rejected
      • Accepted

The above are all forums. And now if we want to look at why each forum can have many permissions, it is because they have a need to differentiate permissions per role (group of users).

Same example with permissions:

  • General Board (No one can post or make threads in this "category")
    • News (Only admins can make threads, but everyone can make posts. Polls as well, admins can create, all can vote)
    • Feedback (Everyone can post threads and posts, everyone can create polls and vote)
      • Rejected (No one can create threads and posts - Readonly "archive")
      • Accepted (Same as rejected)

It's a bit of a shallow example, because permissions also define who can edit their own posts, and who can delete their own posts etc.

As for thread prefixes, they are only allowed in specific forums, and only specific groups can use them in those forums.

The above example again:

  • General Board
    • News [Announcement]
    • Feedback & Suggestions [Suggestion] [Feedback] [Criticism]
      • Rejected [Rejected] [Suggestion] [Feedback]
      • Accepted [Accepted] [Suggestion] [Feedback]

Bit a bad example, but it should make the outline a bit clearer.

from collaction_api.

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.