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

Implement backend support for tag colors #4350

Open
gustavosbarreto opened this issue Nov 22, 2024 · 1 comment
Open

Implement backend support for tag colors #4350

gustavosbarreto opened this issue Nov 22, 2024 · 1 comment
Assignees

Comments

@gustavosbarreto
Copy link
Member

This feature will enable storing and retrieving color information associated with tags. Although there is no UI implementation required at this stage, the backend should be ready to handle color attributes for tags.

Database Changes

  • Add a new field (e.g., color) to the tags schema in the database to store color information.
  • Ensure the field supports common color formats (e.g., HEX).

API Changes

  • Update the API endpoints for creating and editing tags to accept a color attribute.
  • Update the API endpoints for retrieving tags to include the color attribute in the response.

Validation

Validate the color field to ensure it adheres to a valid format (e.g., HEX codes like #FFFFFF).

Backward Compatibility

Ensure existing tags without color information remain functional and default to empty (null value).

Testing

Add unit and integration tests to verify the proper handling of the color attribute in all relevant operations.

@haller33
Copy link
Contributor

Since peers review, there is new directions for the solution required.:

feat: tags collection redesign

  • Add primary key to tags to include tenantID/namespace
  • Make tenant the primary granularity level for the tags collection (has previously are)
  • Implement cascading operations (rename, delete) across all references including the new tags collection
  • Update the reference of the use of tags to use new tags collection as main source
  • Return array of objects instead of previous array of strings on tags default route

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants