-
Notifications
You must be signed in to change notification settings - Fork 37
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
Fix database entity detached issues on mission update #1085
Conversation
🔔 Changes in database folder detected 🔔 |
bfca331
to
3685da6
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This might be quite hard to do but would it maybe be possible to split away the change which fixes the database entity detached issue into a separate commit? Since currently it’s a bit hard to tell what changes are necessary in order to make sure the right context objects are used, and which changes were made to improve the code readability. No stress if the refactoring and fix are tightly coupled though.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM :)
3685da6
to
f831bb6
Compare
The refactoring done in the second commit is basically the fix. So we wrap the different scoped services into a separate one so that we are not calling multiple different scoped services within the same event handler. So in a sense the second commit although it looks mostly like refactoring is the fix. |
This moves the database calls into a separate action service which means we resolve the database detached entity errors encountered in the OnMissionUpdate event handler.
412968e
to
d08e07c
Compare
d08e07c
to
dd402c5
Compare
No description provided.