-
Notifications
You must be signed in to change notification settings - Fork 18
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
frontend-forms: Make the validation function Behavior -> BehaviorValidation --- blocked on #49 #50
Merged
Conversation
This file contains 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
Ericson2314
changed the base branch from
je-validation-error-param
to
develop
February 28, 2019 00:32
Ericson2314
changed the title
frontend-forms: Make the validation function Dynamic -> Dynamic
frontend-forms: Make the validation function Dynamic -> Dynamic --- blocked on #49
Feb 28, 2019
This is a hack to allow validation to take external state into account. We want that external state to only be something that can be pulled, never something that pushes validation. At least the DynValidation return type promotes merging with other `DynValidation`s.
Ericson2314
force-pushed
the
je-hack-in-external-validation
branch
from
February 28, 2019 00:56
e89876d
to
2c123c9
Compare
Ericson2314
changed the title
frontend-forms: Make the validation function Dynamic -> Dynamic --- blocked on #49
frontend-forms: Make the validation function Dynamic -> DynValidation --- blocked on #49
Feb 28, 2019
This fixes an error where the user can cause validation errors to be displayed more often than they should. It also makes clear to the user though the type that they don't have that power (behaviors cannot push).
Ericson2314
changed the title
frontend-forms: Make the validation function Dynamic -> DynValidation --- blocked on #49
frontend-forms: Make the validation function Behavior -> BehaviorValidation --- blocked on #49
Feb 28, 2019
Useful for adding extra checks
User facing text should be provided by the caller
We need this to leak the original buttom click, so we can gate a new round of validation with it regardless of whether that will end up valid and trigger a response.
3noch
reviewed
Feb 28, 2019
3noch
reviewed
Feb 28, 2019
3noch
reviewed
Feb 28, 2019
A. One looses promptness on external changes, which is also valid, when the whole point was promptness. B. If one fires "revaluate" more often than the input changes, we do want to resample the outside world. E.g. maybe an input becamse *more* valid. Plain behavior did B, What we have now does niether. But "full dynamic" which is then gated does both.
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.
This allows validation to take external state into account. Validation can pull external state, but never be pushed by it, as the validations make clear.