-
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
Mission run refactor #864
Mission run refactor #864
Conversation
🔔 Changes in database folder detected 🔔 |
In this PR the Area attribute is currently nullable whilst the AssetCode value is used instead. In the future AssetCode should be removed in favour of Area, which contains the AssetCode, but populating the Area values is left for another PR. |
4989468
to
eb445d8
Compare
{ | ||
[Key] | ||
[DatabaseGenerated(DatabaseGeneratedOption.Identity)] | ||
public string Id { get; set; } | ||
|
||
[MaxLength(200)] | ||
public int? EchoMissionId { get; set; } | ||
public string? MissionId { get; set; } |
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.
public string? MissionId { get; set; } | |
public MissionDefinition MissionDefinition { get; set; } |
I don't think this should be optional, please correct me if I'm wrong. Also if we are pointing to the ID it makes more sense to point straight to the model.
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.
In addition, I think this field will be breaking for all old missions in the database.
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.
You could set the MissionDefinition
as optional for now such that this does not break compatability with old missions and then create an issue which is to add a MissionDefinition
for all old missions such that this one may be made required.
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.
I also think it would be nice to include MissionDefinition here. See this comment for why I have not yet implemented it: #864 (comment)
9348cbe
to
54782ac
Compare
54782ac
to
5a7eb15
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 :)
Requests have been addressed while reviewer is on holiday
/UpdateDatabase |
⛔ Cannot update database until the Pull Request is approved! ⛔ |
/UpdateDatabase |
⛔ Cannot update database until the Pull Request is approved! ⛔ |
/UpdateDatabase |
⛔ Cannot update database until the Pull Request is approved! ⛔ |
Merged branch in another PR |
No description provided.