-
Notifications
You must be signed in to change notification settings - Fork 21
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(core): new unique-id validator #2134
Conversation
Deployed to https://pr-2134.aam-digital.net/ |
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 would definitely want to keep the validators already built in the form service. This is supposed to be a complete service so that it returns you the full form with everything set up so it can also be used at other places.
What exactly do you mean with the DI validator architecture? Like the refactoring we recently did for the data types?
src/app/core/common-components/entity-form/unique-id-validator/unique-id.service.ts
Outdated
Show resolved
Hide resolved
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.
If I directly press "save" I sometimes still get the conflict update message. It seems like it doesn't wait for the validator. Can we ensure this somehow?
src/app/core/common-components/entity-form/entity-form.service.ts
Outdated
Show resolved
Hide resolved
…void dependency in error-hint component
f54f24f
to
16f400d
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 discovered one more issue on existing records. E.g. when editing the name field of a existing user entity but changing the original name there, it still doesn't allow to save it.
This is consistent with current behavior, enforced by the |
Co-authored-by: snyk-bot <snyk-bot@snyk.io>
…2179) Co-authored-by: snyk-bot <snyk-bot@snyk.io> Co-authored-by: Simon <simon@aam-digital.com>
Co-authored-by: Simon <simon@aam-digital.com>
# Conflicts: # src/app/child-dev-project/children/health-checkup/health-checkup-component/health-checkup.component.html # src/app/child-dev-project/children/health-checkup/health-checkup-component/health-checkup.component.ts # src/app/features/historical-data/historical-data/historical-data.component.ts
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.
General use case works well.
Some other issues that still exist though:
- Pressing cancel clears the input field (unrelated)
- Usernames equality is checked case sensitive which might still create conflicts in some cases (keycloak only saves lower case)
- Existing (unmodified) usernames cannot be saved once form field is dirty
Deployed to https://pr-2134.aam-digital.net/ |
🎉 This PR is included in version 3.30.0-master.3 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
🎉 This PR is included in version 3.30.0 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
to prevent creating duplicate user ids in form
fixes #1557
Visible/Frontend Changes
Architectural/Backend Changes
TODO