-
Notifications
You must be signed in to change notification settings - Fork 1
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
Fix: CAU validation fixes #106
Merged
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
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
Don't track users with GA if we are using Plausible. Besides 1% 10K of gzip payload reduced.
indeed body1 variant was too big used proper variant
Even though we bubble up compact version, if we push down pretty version, the input will understand it as a change of the value, and will repeat the check. In some cases even creating an infinite loop.
Initial message (explaining where to find the CAU) was not shown initially, just the required error 'CAU must be filled'. Now the required error is shown only after the field has been visited.
This was the root of the remaining validation infinite loop. The validator took the pretty value and so formik sent it back to the input which was detected as different and thus validated again. Previous fixes just avoided this on other cases.
This might avoid falling again confusions and errors. They are not all the same value. What we receive from and send to the outside world is a compact value, what we edit in the widget is a pretty value (with spaces and decoration). (pretty and compact is python stdnum library nomenclature)
vokimon
force-pushed
the
FIX_cau_validation_fixes
branch
from
October 29, 2024 10:35
0ce0224
to
39d08dc
Compare
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.
Description
Fix some regressions on CAU validation and ApiValidatedFields (IBAN, CadastralRef) introduced in my last PR, and reverting some old features (pretty printing, initial message, progress indicators) that had been disabled because similar cases, now reviewd and fixed.
Changes
Checklist
Justify any unchecked point:
CHANGES.md
file.Observations
Please, review
How to check the new features
You could deploy locally or use testing since i deployed it in there.
Deploy notes