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

Deleting users leaves annotations orphaned #188

Open
albertocottica opened this issue Sep 7, 2020 · 1 comment
Open

Deleting users leaves annotations orphaned #188

albertocottica opened this issue Sep 7, 2020 · 1 comment
Assignees
Labels

Comments

@albertocottica
Copy link
Member

For example this.

Maybe it would be better to valorize the field anyway, with some kind of fallback value? For example deleted_user. Saves scripts breaking, having to add a lot of catch instructions, etc. This is more of a general hygiene question.

@albertocottica
Copy link
Member Author

In general, using the APIs with Python script is quite an unpleasant experience because the format of the responses to calls is so uneven. Maybe this is a problem that should be solved by the programmer, I don't know. But the problem is there.

Also, it accelerates bitrot. Any changes in the database (like the deletion of a user who authored annotations) risks introducing new variants in the format of the API response: in this case, some annotations now have a null value for creator_id`. So, a script that used to work when the data were complete in that sense now breaks.

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

No branches or pull requests

2 participants