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

Support series imports & Fix edition imports #1109

Merged
merged 17 commits into from
Aug 6, 2024

Conversation

kellnerd
Copy link
Contributor

@kellnerd kellnerd commented Jul 24, 2024

On top of #1107 (diff: kellnerd/bookbrainz-site@import-annotation...import-series)

Adds the missing routes, pages and data transformation functions for imported series.
Since imported entities can't have relationships yet, we have to handle the case that a series has no defined items (which wasn't necessary for regular series).
And I forgot to add the item entity type to the SQL view in one of my previous PRs.


Since the necessary changes to make editing and approval of edition imports work are very minor, I have included these here as well.

kellnerd added 13 commits July 17, 2024 18:38
TODO: The annotation still gets lost when the form is submitted.
Loading of an edition group import into the entity editor and
`/imports/edition-group` routes were not working or being used.
This requires a BBID which imports do not have (yet):
> error: select distinct "bookbrainz"."edition".* from "bookbrainz"."edition" where "master" = $1 and "bookbrainz"."edition"."edition_group_bbid" in ($2) - invalid input syntax for type uuid: "190"
You may have to drop existing views manually because of a PG limitation.
The rule to disallow trailing commas often forces you to pointlessly
touch neighboring lines when you add or remove items.

If we want to enforce consistent dangling commas, we should rather force
them to always be present. But since our whole codebase follows this
rule, it would be better to have a grace period to gradually add commas.
@kellnerd kellnerd changed the title Support series imports Support series imports & Fix edition imports Jul 25, 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.

Looks good 👍

I manually added a fake series import row to test it, works fine 🚀

@MonkeyDo MonkeyDo merged commit cda2a9a into metabrainz:import-entities Aug 6, 2024
4 checks passed
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