Closed cblanken closed 3 months ago
Well, this is a dumb oversight somehow. When I go into the UI and delete the term tags, the data in the association table isn't cleared out:
sqlite> select * from tags;
sqlite>
sqlite> select * from wordtags;
1|1
1|2
Have to check further, thank you for catching it @cblanken .
Hm, this is odd. I added a test to verify that deleting the TermTag
entity also deletes the association record in the wordtags
table, and that test passed.
The "delete" button on the Term Tag listing calls lute/termtag/routes.py
delete
route, which does the same thing as the test: gets an item by its id, and deletes and commits it. The test is deleting it, the route is not.
I've added this test to the develop
branch in b9083320b
Fixed (with a hack) in develop
.
Launched in 3.5.1.
Description
The Term Import function fails when trying to import terms after deleting all the tags with the
Update Exiting Terms
checkbox enabled.To Reproduce
Steps to reproduce the behavior, e.g.:
Update Existing Terms
checkbox enabled.Term Import File
out100.csv
Screenshots
Top level error
Full Stack Trace