-
Notifications
You must be signed in to change notification settings - Fork 26
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
Showing error messages in variable mapping #5030
base: master
Are you sure you want to change the base?
Showing error messages in variable mapping #5030
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #5030 +/- ##
=======================================
Coverage 96.71% 96.71%
=======================================
Files 770 770
Lines 26489 26489
Branches 3453 3453
=======================================
Hits 25618 25618
Misses 607 607
Partials 264 264 ☔ View full report in Codecov by Sentry. |
481cf6b
to
cd4ae7f
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.
I don't think this is the most elegant code but it would be hypocritical to expect that, given how we work with validation errors in this codebase. A thorough cleanup/rewrite is in order for some time - when we build a dedicated admin interface instead of lumping everything in the django admin.
cd4ae7f
to
d1ed227
Compare
Because the inputs in the variable mapping don't have inline labels, the errorlist placement doesn't have to be compensated.
Normally, when the formRow or a child component receives errors, the 'errors' classname is added. This in turn adds basic "error" styling to the underlying inputs. In situations where multiple inputs are placed in 1 FormRow, and 1 input receives an error, this results in all inputs showing error styling.
d1ed227
to
78dd068
Compare
Ensure that the error messages for the DMN configuration are placed above the inputs
78dd068
to
a6173e8
Compare
Closes #4871
Changes
Showing error messages in the variable mapping for Objects API and DMN.
Checklist
Check off the items that are completed or not relevant.
Impact on features
Release management
I have updated the translations assets (you do NOT need to provide translations)
./bin/makemessages_js.sh
./bin/compilemessages_js.sh
Dockerfile/scripts
./bin
folderCommit hygiene