Skip to content

Fix importing of custom entry types with duplicate fields#11132

Merged
Siedlerchr merged 6 commits into
mainfrom
fixImportCustomEntryTypes
Apr 3, 2024
Merged

Fix importing of custom entry types with duplicate fields#11132
Siedlerchr merged 6 commits into
mainfrom
fixImportCustomEntryTypes

Conversation

@Siedlerchr

@Siedlerchr Siedlerchr commented Apr 2, 2024

Copy link
Copy Markdown
Member

Fixes #11127

This is a fix for the exception introduced in #11013 (review)

The main culprit is that we did not do a migration to remove duplicate fields

Mandatory checks

  • Change in CHANGELOG.md described in a way that is understandable for the average user (if applicable)
  • Tests created for changes (if applicable)
  • Manually tested changed features in running JabRef (always required)
  • Screenshots added in PR description (for UI changes)
  • Checked developer's documentation: Is the information available and up to date? If not, I outlined it in this pull request.
  • Checked documentation: Is the information available and up to date? If not, I created an issue at https://github.com/JabRef/user-documentation/issues or, even better, I submitted a pull request to the documentation repository.

@Siedlerchr Siedlerchr requested a review from koppor April 2, 2024 19:22
@Siedlerchr Siedlerchr added the status: ready-for-review Pull Requests that are ready to be reviewed by the maintainers label Apr 2, 2024
koppor
koppor previously approved these changes Apr 2, 2024
@koppor

koppor commented Apr 2, 2024

Copy link
Copy Markdown
Member

Nice find!

Review comment was #11013 (review)

What we overlooked is the entry type customization by users. There should be no crash of JabRef when there is an inconsistent configuration.

@github-actions

github-actions Bot commented Apr 2, 2024

Copy link
Copy Markdown
Contributor

The build for this PR is no longer available. Please visit https://builds.jabref.org/main/ for the latest build.

@Siedlerchr Siedlerchr enabled auto-merge April 3, 2024 14:30
@Siedlerchr Siedlerchr disabled auto-merge April 3, 2024 14:31
@Siedlerchr Siedlerchr merged commit e08de39 into main Apr 3, 2024
@Siedlerchr Siedlerchr deleted the fixImportCustomEntryTypes branch April 3, 2024 14:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

status: ready-for-review Pull Requests that are ready to be reviewed by the maintainers

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Custom entry types might crash JabRef on start

2 participants