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

Avoid duplication of metadata groups while adding new metadata fields #5549

Merged
merged 1 commit into from
Feb 28, 2023

Conversation

BartChris
Copy link
Collaborator

@BartChris BartChris commented Feb 21, 2023

Resolves 5484

As outlined in the issue: existing metadata groups are added twice to the list of metadata elements when new elements are added to the list. This PR addresses this by explicitely removing the metadata groups which have the empty elements filtered out before the existing groups are reconstructed from the tree (including their empty values).

@solth solth requested a review from IkramMaalej February 21, 2023 11:45
@BartChris
Copy link
Collaborator Author

I have no idea why the Selenium tests are failing. They all pass in my local environment.

@BartChris BartChris force-pushed the avoid_duplication_of_metadata_groups branch from 1d0f016 to 97b5e52 Compare February 21, 2023 16:53
@solth
Copy link
Member

solth commented Feb 28, 2023

@BartChris please rebase against current master as your pull request is the next merge candidate.

@BartChris BartChris force-pushed the avoid_duplication_of_metadata_groups branch from 97b5e52 to ae84189 Compare February 28, 2023 15:40
@solth solth merged commit 8a229bb into kitodo:master Feb 28, 2023
@BartChris BartChris deleted the avoid_duplication_of_metadata_groups branch March 10, 2023 17:56
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.

Add metadata group leads to two new metadata groups
3 participants