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

[TASK] Make glossary sync more tolerant of outdated IDs #173

Merged
merged 2 commits into from
Apr 28, 2023

Conversation

koehnlein
Copy link
Contributor

If one glossary UUID is outdated for any reason, the complete sync fails with an exception.

Bildschirmfoto vom 2023-03-24 11-30-22

This PR replaces catches the exception and adds a flash message instead. So the further processing still will happen and the new glossary (or even multiple glossaries) can be updated/recreated correctly.

Bildschirmfoto vom 2023-03-24 11-42-52

@calien666 calien666 self-requested a review April 28, 2023 15:36
koehnlein and others added 2 commits April 28, 2023 17:36
As the method deleteGlossary is called both in backend and CLI context,
the Exception should be thrown in CLI context, but generate a
FlashMessage in backend context.
Copy link
Member

@calien666 calien666 left a comment

Choose a reason for hiding this comment

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

Changed the behaviour to not run in issues using method in CLI context.

Thanks for your contribution.

@calien666 calien666 merged commit ecc2d3d into web-vision:master Apr 28, 2023
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