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

Finalize Schema #4

Open
saranshgrover opened this issue Aug 27, 2020 · 4 comments
Open

Finalize Schema #4

saranshgrover opened this issue Aug 27, 2020 · 4 comments
Labels
documentation Improvements or additions to documentation

Comments

@saranshgrover
Copy link
Member

Currently schema is based off the old AlgDB. We need to add Tags as well as sub-alg sets, and queries to fetch/search by tags.

@saranshgrover saranshgrover added this to the Alpha milestone Aug 27, 2020
@big213
Copy link
Member

big213 commented Aug 27, 2020

Added the tags-related mutations/queries/types in 290dfc3

Feel free to let me know if i missed anything.

For sub-alg sets, should that be a required intermediary between AlgSet and Case? So it would go, AlgSet -> Sub AlgSet -> Case -> Alg?

@big213
Copy link
Member

big213 commented Aug 27, 2020

Added the concept of user roles in 82f0540

ADMIN, MODERATOR, and NORMAL are the 3 roles so far

Admin can update the roles of all users, so they must be extremely trusted

Moderator should have certain abilities to approve stuff

@saranshgrover
Copy link
Member Author

2 comments:

  • Each Alg should probably have a field for all of its "global" tags
  • Since we're using Tags so extensively, I think categorizing them into separate types would be good. So a type field in Tags

@big213
Copy link
Member

big213 commented Aug 27, 2020

@saranshgrover

  • Just to confirm, global tags are separate from the user tags, right? So the UserAlgTagLink would represent a specific user applying a tag to an alg, whereas the global tag would be simply attached to the Alg when it is submitted? Who can add/remove global tags to algs, or can it not be updated at all?
  • What kinds of tag types would there be? Could set it as an enum if it is a fixed and finite set of types.

@coder13 coder13 added the documentation Improvements or additions to documentation label Aug 28, 2020
@coder13 coder13 removed this from the Alpha milestone Aug 31, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

3 participants