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

Preserve imported annotation on approval & Add SeriesImport model #321

Merged
merged 5 commits into from
Aug 6, 2024

Conversation

kellnerd
Copy link
Contributor

@kellnerd kellnerd commented Jul 17, 2024

Follow up to #320.

Now that I could actually test creating imports with annotations after the schema change, I found two issues with the "Approve" action which have to be fixed in the ORM.
First we have to avoid losing the annotation and then we can also set the annotation's latest revision now that the entity gets its first revision.

In order to get annotations (and the entity pages/routes in general) working for all types of imported entities, a couple of additional changes were necessary, the biggest being the addition of the missing SeriesImport model.

@kellnerd kellnerd changed the title Import annotation Preserve imported annotation on approval and set revision Jul 17, 2024
Approving an Edition Group import failed previously:
> error: select "data_id" from "bookbrainz"."editiongroup_import_header" where "import_id" = $1 - relation "bookbrainz.editiongroup_import_header" does not exist
@kellnerd kellnerd changed the title Preserve imported annotation on approval and set revision Preserve imported annotation on approval & Add SeriesImport model Jul 24, 2024
Copy link
Member

@MonkeyDo MonkeyDo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested working 👍

@MonkeyDo MonkeyDo merged commit d555ccf into metabrainz:master Aug 6, 2024
2 checks passed
@kellnerd kellnerd deleted the import-annotation branch August 12, 2024 10:29
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.

2 participants