Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: discussion feature #47

Closed
StewartJingga opened this issue Jan 3, 2022 · 1 comment · Fixed by #87
Closed

feat: discussion feature #47

StewartJingga opened this issue Jan 3, 2022 · 1 comment · Fixed by #87
Assignees
Labels
enhancement New feature or request

Comments

@StewartJingga
Copy link
Contributor

Is your feature request related to a problem? Please describe.
I want to create issues on a resource so that other users can see it.

Describe the solution you'd like

  1. CRUD Issue apis for a resource
@StewartJingga StewartJingga added the enhancement New feature or request label Jan 3, 2022
@mabdh mabdh changed the title feat: create Issues on a resource feat: discussion feature Mar 1, 2022
@mabdh
Copy link
Member

mabdh commented Mar 1, 2022

Use cases

Discussion

  • Create a discussion
  • Get a discussion
  • List discussion
  • Update a discussion
  • Upvote discussion (out of scope)
  • Pinning/Unpinning discussions (out of scope)

Discussion Comments

  • List discussion comments
  • Get a discussion comment
  • Create discussion comment
  • Update discussion comment
  • Delete discussion comment
  • Upvote discussion comment (out of scope)

Discussion Labels

  • List labels of a discussion

Users' Discussions

  • List assigned discussion of a user

With use cases mentioned above, we could generalize it into discussions by defining it into multiple types.

Discussion Property

  • Title
  • Body
  • State
  • Assignees (nullable, array of string)
  • Assets (nullable, array of string)
  • Owner (not null)
  • Labels (nullable, array of string)
  • Type (int)

Discussion Types

  • Issues
    • states
      • Unknown: enum 0
      • Open: enum 1
      • Closed: enum 2
  • Q&A
    • states
      • Unknown: enum 0
      • Unanswered: enum 1
      • Answered: enum 2
    • Comments can be marked as an answer (out of scope)
    • Suggest answer (out of scope)
    • Vote best answer (out of scope)
  • Open-ended questions
    • No states

Users discussion

  • Return discussion in user context
  • Owned, assigned

Comments

  • Comment belongs to the discussion
  • Discussion could have multiple comments
  • Comments could have replies which is another comments (out of scope)
  • Reply comment could not be upvoted (out of scope)

@mabdh mabdh self-assigned this Mar 2, 2022
@mabdh mabdh linked a pull request Mar 9, 2022 that will close this issue
4 tasks
@mabdh mabdh closed this as completed in #87 Mar 14, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants