-
-
Notifications
You must be signed in to change notification settings - Fork 125
Automatically resolve simple orphaned serials #2276
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
base: main
Are you sure you want to change the base?
Conversation
Build for this pull request: |
else if (opd.HasChanged()) | ||
{ | ||
// If there are no orphaned serials, serials can still be changed automatically | ||
UpdateProject(); |
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.
We could add a TimeoutMessageDialog
here, but I think these "serials" are an implementation detail we don't need to expose to users.
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 kind of disagree - if we manipulate a config/profile then we should at least tell the user about it.
Please see my comment on the original issue #2270
If it is really straight forward, well then everything is fine and MobiFlight should just tell the user:
- We have optimized this profile to use all your connected devices *
Also what about saving the changes? This would pop-up again next time.
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.
What if we can't resolve it? Two Yokes with the same name?
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 kind of disagree - if we manipulate a config/profile then we should at least tell the user about it.
It's just not actionable to the user. They probably just downloaded a profile and want it to work. Note that I didn't touch any of the edge-cases here where assignments could be destructive, only the trivial ones.
Also what about saving the changes? This would pop-up again next time.
There is no popup if everything resolves automatically. Only if there are two devices with the same name or a device that isn't connected.
What if we can't resolve it? Two Yokes with the same name?
If we can't resolve it then the popup will be displayed as usual.
@Nezz thanks for all the effort. A PR shows in the release notes, and also serves as a piece of docs. It is also helpful if there is more "Acceptance criteria" mentioned in the description. Makes it easier to review the code and understand the functional and possibly non-functional requirements that are fulfilled. |
I added some sensible "confirmations" as a starting point. Maybe you have some more ideas. |
Feel free to make changes to the code |
Let's check the boxes that are already fulfilled |
This was suggested in #2270.
The orphaned serials will be resolved automatically if there are only unique device names (e.g. one MCDU, one FCU) in a profile. If this happens successfully the dialog will not be displayed.
Context: I'm one of those people who only uses MobiFlight with off-the-shelf hardware. This makes things easier for people who download profiles from the web and don't make build their own hardware.