Skip to content
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

Manage the institution specific vetting type hints #290

Merged

Conversation

MKodde
Copy link
Member

@MKodde MKodde commented Jul 28, 2022

An institution can have a translatable vetting type hint. This hint is displayed at the right place in the self service. A new tab was added to the RA app. Here you can choose an institution. The vetting type hint for that institution is then loaded. No formatting additions where added yet. This however is something to add later on (see new story). Users are allowed to remove a vetting type hint by simply clearing the previous entry in the textarea and saving a blank set of translations.

The available translation options follow the locales configured in the parameters.yaml. For now en_GB and nl_NL are configured by default. But adding/removing languages should not be any issue and do not require additional database migrations. As the hints are stored in a JSON blob in the vetting_type_hints schema in Middleware.

See: PR for details on the SS changes.
See: https://www.pivotaltracker.com/story/show/182840207

The data is processed into a command and sent of to middlewares command
pipeline. In order to make the form function more intuitively. We read
the hints for the relevant insittution into the form. This way an user
can modifiy the existing text.
@MKodde MKodde force-pushed the feature/sat-institution-vetting-text branch from d627d10 to 4a848b3 Compare July 28, 2022 06:07
@MKodde MKodde removed the migration label Jul 28, 2022
@MKodde MKodde requested a review from pablothedude July 28, 2022 08:06
MKodde added 3 commits July 28, 2022 12:57
As a means to clear the vetting type hint, we should allow posting an
empty hint in order to remove it.
@MKodde MKodde force-pushed the feature/sat-institution-vetting-text branch from 4a848b3 to 3d0e187 Compare July 28, 2022 10:58
@MKodde MKodde merged commit dca578d into feature/self-asserted-tokens Aug 1, 2022
@MKodde MKodde deleted the feature/sat-institution-vetting-text branch August 1, 2022 07:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants