Repository navigation
Conversation
|
|
||
| The `registration_questionnaire` Event Function asks newly registered users for | ||
| the information administrators use to decide on approval. It serves a form at | ||
| `/auth/registration-questionnaire` with these questions: |
There was a problem hiding this comment.
why have the actual questions in the readme file? they will perhaps change in the future. we shouldn't have same info repeated in multiple places, we won't be able to maintain it.
There was a problem hiding this comment.
It won't be maintained manually. This is generated by claude and as I said, there are two skills triggered: update or create tests and update or create docs records if a OI function is created or updated.
So I'd say it's fine in terms of maintenance, but if it's too verbose, we can consider updating the skill to make it less so
| ``` | ||
|
|
||
| Email verification tests cover environment defaults and saved overrides, duration and email header validation, signup sending and pausing, inactivity when deployment settings are missing, email-change revocation, TTL refresh on existing routes, error pages for expired, invalid, and outdated links, resend eligibility, cooldown, and cross-site rejection, and email branding. Account approval notification tests cover Valve defaults and validation, pending-user marking and backfill, approval emails and group assignment from role and SCIM events, existing memberships, group failures retaining the marker, no email for unmarked users, admin approvals, or paused sending, idempotency, inactivity when deployment settings are missing, sign-in link selection, and email content. Gmail and Open WebUI database calls are mocked; no real emails are sent. | ||
| Email verification tests cover environment defaults and saved overrides, duration and email header validation, signup sending and pausing, inactivity when deployment settings are missing, email-change revocation, TTL refresh on existing routes, error pages for expired, invalid, and outdated links, resend eligibility, cooldown, and cross-site rejection, and email branding. Account approval notification tests cover Valve defaults and validation, pending-user marking and backfill, approval emails and group assignment from role and SCIM events, undoing approvals without a questionnaire submission and re-approval after submission, existing memberships, group failures retaining the marker, no email for unmarked users, admin approvals, or paused sending, idempotency, inactivity when deployment settings are missing, sign-in link selection, and email content. Registration questionnaire tests cover the redirect status for each kind of user, form rendering from the service schema, ALTCHA embedding and the `require_altcha` switch, submission payloads and the user-info marker, validation and service rejections that keep entered answers, service failures, refusals for signed-out, non-pending, and already-submitted users, cross-site and oversized POSTs, inactivity, route registration, and Valve validation. Gmail, `whale-auth-tools`, and Open WebUI database calls are mocked; no real emails or requests are sent. |
There was a problem hiding this comment.
I would rather have these descriptions close to the tests themselves because this will get outdated quickly. It's best if we don't have to come to the readme file to make changes after we change/add/remove tests.
- Center status and informational messages consistently. - Clarify that questionnaire answers are required for account review.
- Add repository changelog requirements and an initial `CHANGELOG.md`. - Add the `sync-changelog` skill for recording repository changes. - Condense Open WebUI function documentation guidance and update the Functions README.
Summary
Adds a registration questionnaire for pending users and requires it before an account can be approved.
registration_questionnaire(oi_registration_questionnaire.py)GET/POST /auth/registration-questionnaireto signed-in pending users: organisation, positions, SciLifeLab affiliation, planned use, Slack opt-in.contactEmail.info(scilifelab_questionnaire); one submission per account.GET/POST /auth/registration-questionnaireto signed-in pending users: organisation, positions, SciLifeLab affiliation, planned use, Slack opt-in.contactEmail.info(scilifelab_questionnaire); one submission per account.POST /api/v1/registration-questionnaire/statusreturns{"required": bool}so the Open WebUI fork can redirect pending users to the form.require_altcha,altcha_widget_url. NeedsWHALE_AUTH_URLandWHALE_AUTH_API_TOKEN.require_questionnaireValve (default on). An approval touserwithout a questionnaire submission is undone: the role returns topending, with no group or email. Approving again after submission works normally.Rollout
openllm-chartschange, which provides the settings and the ALTCHA widget.registration_questionnaire, then update the account approval Function. In this order, approvals are not undone before users can submit.🤖 Generated with Claude Code