Repository navigation
stages/prompt: preserve empty initial values - #25148
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #25148 +/- ##
==========================================
+ Coverage 92.00% 92.97% +0.96%
==========================================
Files 1175 1229 +54
Lines 76348 85697 +9349
Branches 4056 4894 +838
==========================================
+ Hits 70247 79675 +9428
+ Misses 6059 5935 -124
- Partials 42 87 +45
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. |
✅ Deploy Preview for authentik-storybook ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
✅ Deploy Preview for authentik-integrations ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
✅ Deploy Preview for authentik-docs ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
✅ Deploy Preview for authentik-integrations ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
✅ Deploy Preview for authentik-storybook ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
✅ Deploy Preview for authentik-docs ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
5a8a64a to
e791798
Compare
e791798 to
bd6f881
Compare
|
hiya, there is no need to keep merging main here. We'll get to reviewing this when we can. |
alright thanks for the feedback |
Signed-off-by: Jens Langhammer <[email protected]>
* main: (313 commits) web/admin: fix ldap source parent group form (#26421) stages/prompt: preserve empty initial values (#25148) core: batch expired cache and channel record cleanup (#27587) web: bump mermaid from 11.16.0 to 12.3.0 in /website (#27598) ci: bump taiki-e/install-action from 2.89.0 to 2.89.1 in /.github/actions/setup (#27630) core: bump goauthentik/fips-python from `d4c46c4` to `69e7058` in /lifecycle/container (#27626) ci: bump AndreKurait/docker-cache from 0.7.0 to 0.7.1 in /.github/actions/setup (#27628) ci: bump actions-rust-lang/setup-rust-toolchain from 2.0.0 to 2.0.1 in /.github/actions/setup (#27629) ci: bump actions-rust-lang/setup-rust-toolchain from 2.0.0 to 2.0.1 (#27627) providers/oauth2: sign tokens with ML-DSA keys (#27172) sources/oauth: verify ML-DSA signed tokens (#27170) web: bump postcss from 8.5.18 to 8.5.32 in /website (#27602) web: bump postcss from 8.5.16 to 8.5.32 in /web (#27604) web/element: fix missing line break between elapsed time and displayed time. (#27624) web/elements: rename ak-codemirror to ak-code-editor (#27406) website/integrations: add Google Cloud Workforce Identity Federation guide (#27571) root: test that FIPS mode refuses non-approved algorithms (#27536) web: bump nanoid from 3.3.16 to 3.3.20 in /website (#27599) web: bump baseline-browser-mapping from 2.10.43 to 2.11.35 in /website (#27600) web: bump mermaid from 11.16.1 to 11.17.2 in /web (#27603) ...
* main: (1729 commits) web/admin: fix ldap source parent group form (#26421) stages/prompt: preserve empty initial values (#25148) core: batch expired cache and channel record cleanup (#27587) web: bump mermaid from 11.16.0 to 12.3.0 in /website (#27598) ci: bump taiki-e/install-action from 2.89.0 to 2.89.1 in /.github/actions/setup (#27630) core: bump goauthentik/fips-python from `d4c46c4` to `69e7058` in /lifecycle/container (#27626) ci: bump AndreKurait/docker-cache from 0.7.0 to 0.7.1 in /.github/actions/setup (#27628) ci: bump actions-rust-lang/setup-rust-toolchain from 2.0.0 to 2.0.1 in /.github/actions/setup (#27629) ci: bump actions-rust-lang/setup-rust-toolchain from 2.0.0 to 2.0.1 (#27627) providers/oauth2: sign tokens with ML-DSA keys (#27172) sources/oauth: verify ML-DSA signed tokens (#27170) web: bump postcss from 8.5.18 to 8.5.32 in /website (#27602) web: bump postcss from 8.5.16 to 8.5.32 in /web (#27604) web/element: fix missing line break between elapsed time and displayed time. (#27624) web/elements: rename ak-codemirror to ak-code-editor (#27406) website/integrations: add Google Cloud Workforce Identity Federation guide (#27571) root: test that FIPS mode refuses non-approved algorithms (#27536) web: bump nanoid from 3.3.16 to 3.3.20 in /website (#27599) web: bump baseline-browser-mapping from 2.10.43 to 2.11.35 in /website (#27600) web: bump mermaid from 11.16.1 to 11.17.2 in /web (#27603) ...
* main: (28 commits) events: bundle DB-IP Lite GeoIP databases instead of MaxMind GeoLite2 (#27102) web/admin: fix ldap source parent group form (#26421) stages/prompt: preserve empty initial values (#25148) core: batch expired cache and channel record cleanup (#27587) web: bump mermaid from 11.16.0 to 12.3.0 in /website (#27598) ci: bump taiki-e/install-action from 2.89.0 to 2.89.1 in /.github/actions/setup (#27630) core: bump goauthentik/fips-python from `d4c46c4` to `69e7058` in /lifecycle/container (#27626) ci: bump AndreKurait/docker-cache from 0.7.0 to 0.7.1 in /.github/actions/setup (#27628) ci: bump actions-rust-lang/setup-rust-toolchain from 2.0.0 to 2.0.1 in /.github/actions/setup (#27629) ci: bump actions-rust-lang/setup-rust-toolchain from 2.0.0 to 2.0.1 (#27627) providers/oauth2: sign tokens with ML-DSA keys (#27172) sources/oauth: verify ML-DSA signed tokens (#27170) web: bump postcss from 8.5.18 to 8.5.32 in /website (#27602) web: bump postcss from 8.5.16 to 8.5.32 in /web (#27604) web/element: fix missing line break between elapsed time and displayed time. (#27624) web/elements: rename ak-codemirror to ak-code-editor (#27406) website/integrations: add Google Cloud Workforce Identity Federation guide (#27571) root: test that FIPS mode refuses non-approved algorithms (#27536) web: bump nanoid from 3.3.16 to 3.3.20 in /website (#27599) web: bump baseline-browser-mapping from 2.10.43 to 2.11.35 in /website (#27600) ...
…b-controller' into web/admin/breadcrumb-controller * refs/remotes/origin/web/admin/breadcrumb-controller: (214 commits) The updated format for crumbs required an update to the unit tests. web/admin: Add a Breadcrumb context manager to the navigation suite Adding the Breadcrumbs visual component. Revised naming code to track certain features. web/elements: vendor sidebar and add icons (#27289) providers/oauth2: don't set state in responses if not supplied (#9735) web/elements: expansion visual hierarchy (#27562) providers/oauth2: accept ML-DSA keys for DPoP (#27174) website/docs: draft 2026.11 release notes (#26814) sources/ldap: store the directory date when resetting a password (#27578) events: bundle DB-IP Lite GeoIP databases instead of MaxMind GeoLite2 (#27102) web/admin: fix ldap source parent group form (#26421) stages/prompt: preserve empty initial values (#25148) core: batch expired cache and channel record cleanup (#27587) web: bump mermaid from 11.16.0 to 12.3.0 in /website (#27598) ci: bump taiki-e/install-action from 2.89.0 to 2.89.1 in /.github/actions/setup (#27630) core: bump goauthentik/fips-python from `d4c46c4` to `69e7058` in /lifecycle/container (#27626) ci: bump AndreKurait/docker-cache from 0.7.0 to 0.7.1 in /.github/actions/setup (#27628) ci: bump actions-rust-lang/setup-rust-toolchain from 2.0.0 to 2.0.1 in /.github/actions/setup (#27629) ci: bump actions-rust-lang/setup-rust-toolchain from 2.0.0 to 2.0.1 (#27627) ...
…k-controller * web/admin/breadcrumb-controller: (215 commits) Changes requested by reviewer (@GirlBossRush). The updated format for crumbs required an update to the unit tests. web/admin: Add a Breadcrumb context manager to the navigation suite Adding the Breadcrumbs visual component. Revised naming code to track certain features. web/elements: vendor sidebar and add icons (#27289) providers/oauth2: don't set state in responses if not supplied (#9735) web/elements: expansion visual hierarchy (#27562) providers/oauth2: accept ML-DSA keys for DPoP (#27174) website/docs: draft 2026.11 release notes (#26814) sources/ldap: store the directory date when resetting a password (#27578) events: bundle DB-IP Lite GeoIP databases instead of MaxMind GeoLite2 (#27102) web/admin: fix ldap source parent group form (#26421) stages/prompt: preserve empty initial values (#25148) core: batch expired cache and channel record cleanup (#27587) web: bump mermaid from 11.16.0 to 12.3.0 in /website (#27598) ci: bump taiki-e/install-action from 2.89.0 to 2.89.1 in /.github/actions/setup (#27630) core: bump goauthentik/fips-python from `d4c46c4` to `69e7058` in /lifecycle/container (#27626) ci: bump AndreKurait/docker-cache from 0.7.0 to 0.7.1 in /.github/actions/setup (#27628) ci: bump actions-rust-lang/setup-rust-toolchain from 2.0.0 to 2.0.1 in /.github/actions/setup (#27629) ...
Details
What does this PR change?
Preserves empty initial values as defaults when creating read-only prompt fields. This allows optional read-only text and text-area prompts whose initial value expression returns an empty string to be submitted successfully.
Adds a regression test covering a non-required read-only prompt with an empty initial value.
Why is this change needed?
Read-only prompt fields already set
allow_blank=True, but the empty initial value was dropped because defaults were only assigned when they were truthy.As a result, an empty string was not retained as the read-only field's default and user settings flows could reject the field with "This field may not beblank."
How was this tested?
test_read_only_blank_valueto verify that an optional read-only promptpreserves an empty default and validates an empty submission.
git diff --check.The focused Django test suite was not run locally because the available Python
runtime did not include the project test dependencies.
Linked issues
closes #18899
Checklist
make all)make docs)