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

Change tagPicker input component to work with references #2

Open
p10e opened this issue Apr 27, 2020 · 0 comments
Open

Change tagPicker input component to work with references #2

p10e opened this issue Apr 27, 2020 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@p10e
Copy link
Collaborator

p10e commented Apr 27, 2020

Right now, the tags multi-select field in ticket documents uses a tagPicker input component to load its tag options dynamically via the tagOption document type. It stores the user selection in an array of strings, which means tags are not directly linked to tag options, and therefore:

  • When a user renames a tag option, tickets' tags arrays do not automatically update
  • It is unnecessarily difficult to query tickets by tag

If we make tags an array of references and adapt tagPicker to work with references instead, the above issues are resolved. It also reduces the confusion around having a tag object and a tagOptions document, leaving only the need for one of them.

Also, this will make the tagPicker more robust in case we want to publish a version of it as a multi-select input plugin.

@p10e p10e added the enhancement New feature or request label Apr 27, 2020
@p10e p10e self-assigned this Apr 27, 2020
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

No branches or pull requests

1 participant