Remove legacy tags_list
field
#704
Labels
💻 aspect: code
Concerns the software code in the repository
🧰 goal: internal improvement
Improvement that benefits maintainers, not users
🟨 priority: medium
Not blocking but should be addressed soon
🧱 stack: api
Related to the Django API
🏁 status: ready for work
Ready for work
Milestone
Problem
The media models use an unnecessary legacy
tags_list
field.Description
When the machine-generated
tags
were added, the data model for them changed fromsimple array of stringsa list of ForeignKeys to a separate ImageTags table to an array of objects with properties such asprovider
andaccuracy
(only for machine-generated tags). Thetags_list
property was deprecated, but not removed from the database: cc-archive/cccatalog-api#182We should remove it.
Alternatives
We could also convert all tags to use simple string array since we are not really using machine-generated tags. But I think we will want to use them in the future, and removing them now to re-add later is an unnecessary complication.
Additional context
Implementation
The text was updated successfully, but these errors were encountered: