-
Notifications
You must be signed in to change notification settings - Fork 43
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
Add support to notes being customised #782
base: develop
Are you sure you want to change the base?
Conversation
185b3d4
to
e8a18f5
Compare
Perhaps we can put an if statement in the email template (adminHandleRequest.ftl) so that notes are only shown if the content is not empty.
|
…V/iam into issue-759-registration-ui
Quality Gate passedIssues Measures |
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 started the review and mainly the big change suggested is to use an implementation of the RequestValidatorService instead of adding the validation logic into the DefaultRegistrationRequestService. I know I'm a bit annoying but I'd prefer to keep things separated, having something similar already done for CERN purposes.
...gin-service/src/main/java/it/infn/mw/iam/registration/DefaultRegistrationRequestService.java
Show resolved
Hide resolved
iam-login-service/src/main/java/it/infn/mw/iam/registration/RegistrationRequestService.java
Outdated
Show resolved
Hide resolved
...gin-service/src/main/java/it/infn/mw/iam/registration/DefaultRegistrationRequestService.java
Outdated
Show resolved
Hide resolved
@@ -154,6 +154,9 @@ iam: | |||
oidc-issuer: ${IAM_REGISTRATION_OIDC_ISSUER:https://example.org} | |||
saml-entity-id: ${IAM_REGISTRATION_SAML_ENTITY_ID:urn:example} | |||
add-nickname-as-attribute: ${IAM_ADD_NICKNAME_AS_ATTRIBUTE:false} | |||
fields: | |||
notes: | |||
field-behaviour: ${IAM_REGISTRATION_NOTES_FIELD_BEHAVIOUR:mandatory} |
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 we add this env variable we should add also the others: IAM_REGISTRATION_GIVEN_NAME_BEHAVIOUR, etc. I think we can avoid adding these lines and keep the default value as MANDATORY on this line https://github.com/indigo-iam/iam/pull/782/files#diff-eb3a40a655172a85a4ebaccf2dba240d9b4f294761e61a5631af9892aa95a49fR206
...in-service/src/test/java/it/infn/mw/iam/test/registration/RegistrationUnprivilegedTests.java
Outdated
Show resolved
Hide resolved
Quality Gate passedIssues Measures |
iam-login-service/src/main/webapp/resources/iam/apps/registration/registration.controller.js
Show resolved
Hide resolved
Note that recently this check https://github.com/Sae126V/iam/blob/issue-759-registration-ui/iam-login-service/src/main/java/it/infn/mw/iam/registration/RegistrationRequestDto.java#L97 has been added for the Notes field and I saw it is already merged in this PR. I think this check should be removed otherwise the behavior of the optional or hidden Notes field does not work as it should. |
d5ca98d
to
3cfb3c2
Compare
76b9335
to
2bd3e72
Compare
- Fix an issue with cern profile doing notes sanity check
16bb419
to
57b878d
Compare
Quality Gate passedIssues Measures |
No description provided.