-
-
Notifications
You must be signed in to change notification settings - Fork 128
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
Broken submission tags #690
Comments
I think we should check the database to see if any of these submission tags exist, and if none do, then we should remove the feature altogether |
They could be present in the database as one could still post tags, but it just wasn't synced and displayed correctly — and the response message was always 400 😂 |
Ha. This is HHI production:
I think OCHA is going to have to do better for us to keep this feature. When you say "it just wasn't synced and displayed correctly", was it possible for people to see the tags they'd assigned to submissions at all? If they had no way of accessing them, then they might as well have not existed. |
My experience with the buggy nature of the tags:
Looking at that list of tags you shared, I can see that several of them are from me testing the production endpoint. |
The
/labels
endpoint expects theadd_tags_to_instance
method to returnTrue
orFalse
to update the response status, but the method returns nothing:kobocat/onadata/apps/api/viewsets/data_viewset.py
Lines 555 to 557 in 78133d5
kobocat/onadata/apps/api/tools.py
Lines 125 to 137 in 78133d5
The
add_tags_to_instance
method should also callinstance.parsed_instance.save()
afterinstance.save()
to update Mongo and therefore have the API and exports handle the tags correctly.Tests for the labels endpoint should also be added.
The text was updated successfully, but these errors were encountered: