algdb icon indicating copy to clipboard operation
algdb copied to clipboard

Finalize Schema

Open saranshgrover opened this issue 5 years ago • 4 comments

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 avatar Aug 27 '20 14:08 saranshgrover

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

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 avatar Aug 27 '20 15:08 big213

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

big213 avatar Aug 27 '20 16:08 big213

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

saranshgrover avatar Aug 27 '20 18:08 saranshgrover

@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.

big213 avatar Aug 27 '20 21:08 big213