-
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
Add missionRun counter #1354
Add missionRun counter #1354
Conversation
🔔 Changes in database folder detected 🔔 |
89ab400
to
a7c98f2
Compare
63af91e
to
8a58b12
Compare
🔔 Migrations changes detected 🔔 |
try | ||
{ | ||
|
||
missionRun.MissionRunCount = await context.MissionRuns.CountAsync() + 1; |
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 could create issues if we ever delete a record. We have deleted records at some points when doing migrations
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.
The issue could be that we jump over integers in the queue but the sequence or the order will be intact I think.
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.
If we have missions with indexes: [1, 2, 3, 4] and then we remove the second one, then add a new mission, we'll have missions with indexes: [1, 3, 4, 4]
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.
Good point ! Will fix this.
b487a8e
to
0e0884d
Compare
0e0884d
to
bff8051
Compare
bff8051
to
f5cf865
Compare
f5cf865
to
d0a43f1
Compare
d0a43f1
to
76abbfd
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.
LGTM
/UpdateDatabase |
👀 Running migration command... 👀 |
✨ Successfully ran migration command! ✨ |
#1264