Conversation
This was
linked to
issues
Nov 11, 2022
03bcfe7 to
870ba7d
Compare
870ba7d to
b902536
Compare
Closed
Contributor
joseivanlopez
left a comment
There was a problem hiding this comment.
Only minor things. For the UI part ... I did my best to understand it :), but it looks ok. Great work!
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
D-Installer does not perform any pre-installation check. So if you click the "Install" button, it will blindly try to install the system. It does not matter whether you have provided all the required information.
See #285 or #177 as examples.
Solution
This is the first version of a mechanism to report the issues that might block the installation. We might add some additional information to these validation errors in the future (severity, scope, etc.), but we need to start with something simple enough.
The implementation has two parts:
#validatemethod (like Manager#validate or Users#validate).Demo
User and storage checks
demo-d-installer-checks.webm
Multiple errors
When there are multiple errors, they are shown in a pop-over. Of course, in the example below, the second is a testing error. Bear in mind that, by now, this situation should not happen.
TODO
Validation1interfaceInstallButtoncomponent to a separate file