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

Make Inspection and MissionTask not owned entities #1155

Merged
merged 9 commits into from
Nov 10, 2023

Conversation

aeshub
Copy link
Contributor

@aeshub aeshub commented Nov 9, 2023

As these were owned by MissionRun the only method of updating the status of each of them was to update the entire MissionRun. As this happens in three parallel event handlers these were overwriting eachother.

Closes #1141

@aeshub aeshub added bug Something isn't working improvement Improvement to existing functionality labels Nov 9, 2023
@aeshub aeshub self-assigned this Nov 9, 2023
Copy link

github-actions bot commented Nov 9, 2023

🔔 Migrations changes detected 🔔
📣 Remember to comment "/UpdateDatabase" after review approval for migrations to take effect!

@github-actions github-actions bot added the database-change Will require migration label Nov 9, 2023
@aeshub aeshub force-pushed the 2-ongoing-missions branch from 85631e3 to 2e16f5c Compare November 9, 2023 21:33
@aeshub aeshub force-pushed the 2-ongoing-missions branch 2 times, most recently from 02c1fa4 to 304a45a Compare November 10, 2023 09:09
This means the Inspection object may be accessed directly on the
context and allows us to directly update it without running a full
update of the mission run.
The mission task entity is no longer owned by mission run. This allows
updating mission task directly rather than updating all of the mission
run.
Copy link
Contributor

@Afonso-2403 Afonso-2403 left a comment

Choose a reason for hiding this comment

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

Let's migrate!

@aeshub
Copy link
Contributor Author

aeshub commented Nov 10, 2023

/UpdateDatabase

Copy link

👀 Running migration command... 👀

Copy link

✨ Successfully ran migration command! ✨

@aeshub aeshub merged commit 2b96357 into equinor:main Nov 10, 2023
11 checks passed
@aeshub aeshub deleted the 2-ongoing-missions branch November 10, 2023 09:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working database-change Will require migration improvement Improvement to existing functionality
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Mission status is overwritten when setting to paused
3 participants