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

chore: Allow annotation revision ids to be null (rebased) #1106

Merged
merged 2 commits into from
Jul 17, 2024

Conversation

MonkeyDo
Copy link
Member

Rebased version of #1105

Also see metabrainz/bookbrainz-data-js#320

For imported entities, we do not keep a history of all modifications.
As a result, editing import_* entities is not tied to any revisions.

This is an issue for annotations, whose last_revision_id column does not currently accept NULL values.

These small changes allow entering a row in the annotationtable with last_revision_id = NULL, and ensure the website does not trip up if the value is missing (it is used to display the last modification time and link to the revision)

Before:
image

After:
image

@MonkeyDo MonkeyDo merged commit b32213d into import-entities Jul 17, 2024
4 checks passed
@MonkeyDo MonkeyDo deleted the import-annotation-id branch July 17, 2024 16:06
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

Successfully merging this pull request may close these issues.

1 participant