Remove key:value features of UserTag #1417
Labels
break-me-up
break up for cleaner code separation, discrete tests, and, easier and iterative collaboration
Milestone
This is a complex issue that needs to be broken up into discrete tasks.
The
UserTag
system is nice - and we need it -- but it should work more likeNodeTag
:https://github.com/publiclab/plots2/blob/master/app/models/user_tag.rb
https://github.com/publiclab/plots2/blob/master/app/models/node_tag.rb
NodeTag
linksNodes
toTags
.Tag
stores tag names as strings, and each is unique (whereasNodeTag
links aTag
to manyNodes
).That is,
Tag
has just arbitrary strings as its 'name' -- stored together, likekey:value
-- or for exampleactivity:kite-mapping
.So we'd have to change a bunch of things, mostly in the User Tag controller:
https://github.com/publiclab/plots2/blob/master/app/controllers/user_tags_controller.rb#L23
And in the UserTag model (above). We can look at the tag controller a bit, although that's too complex and we need to simplify it:
https://github.com/publiclab/plots2/blob/master/app/controllers/tag_controller.rb
The text was updated successfully, but these errors were encountered: