Skip to content

web/elements: fix prioritization in form serialization for dotted input-fields - #24987

Merged
BeryJu merged 4 commits into
mainfrom
web/elements/fix-form-specificicty
Aug 11, 2026
Merged

BeryJu merged 4 commits into
mainfrom
web/elements/fix-form-specificicty

Conversation

@BeryJu

@BeryJu BeryJu commented Aug 11, 2026

Copy link
Copy Markdown
Member

closes #24940

due to formatting the diff is big, the actual change is

    Array.from(elements)
        .forEach((element) => {

to

    Array.from(elements)
        .sort((a, b) => {
            // Sort elements by their specificity, the more precise the key (more dots)
            // the later it gets serialized, to ensure it has a higher priority than general
            // fields (such as attributes vs attributes.foo.bar)
            if (!isNamedElement(a) || !isNamedElement(b)) {
                return -1;
            }
            return a.name.split(".").length - b.name.split(".").length;
        })
        .forEach((element) => {

@BeryJu
BeryJu requested a review from a team as a code owner August 11, 2026 11:03
@netlify

netlify Bot commented Aug 11, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for authentik-storybook ready!

Name Link
🔨 Latest commit 7853e63
🔍 Latest deploy log https://app.netlify.com/projects/authentik-storybook/deploys/6a7b33791d44bb0008b7ea78
😎 Deploy Preview https://deploy-preview-24987--authentik-storybook.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@netlify

netlify Bot commented Aug 11, 2026

Copy link
Copy Markdown

✅ Deploy Preview for authentik-docs ready!

Name Link
🔨 Latest commit 13aab87
🔍 Latest deploy log https://app.netlify.com/projects/authentik-docs/deploys/6a7b016f011ec100082c9fd3
😎 Deploy Preview https://deploy-preview-24987--authentik-docs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@codecov

codecov Bot commented Aug 11, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 91.48%. Comparing base (e61d743) to head (7853e63).
⚠️ Report is 8 commits behind head on main.
✅ All tests successful. No failed tests found.

Additional details and impacted files
@@           Coverage Diff           @@
##             main   #24987   +/-   ##
=======================================
  Coverage   91.47%   91.48%           
=======================================
  Files        1148     1149    +1     
  Lines       72323    72389   +66     
  Branches     3875     3875           
=======================================
+ Hits        66156    66223   +67     
+ Misses       6132     6131    -1     
  Partials       35       35           
Flag Coverage Δ
conformance 34.78% <ø> (-0.02%) ⬇️
e2e 39.46% <ø> (-0.02%) ⬇️
integration 31.34% <ø> (-0.02%) ⬇️
rust 38.89% <ø> (ø)
unit 93.12% <ø> (+<0.01%) ⬆️
unit-migrate 93.15% <ø> (+<0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

@github-actions

Copy link
Copy Markdown
Contributor

authentik PR Installation instructions

Instructions for docker-compose

Add the following block to your .env file:

AUTHENTIK_IMAGE=ghcr.io/goauthentik/dev-server
AUTHENTIK_TAG=gh-13aab872abe8fbf8b80a07725bff4559a69c1172
AUTHENTIK_OUTPOSTS__CONTAINER_IMAGE_BASE=ghcr.io/goauthentik/dev-%(type)s:gh-%(build_hash)s

Afterwards, run the upgrade commands from the latest release notes.

Instructions for Kubernetes

Add the following block to your values.yml file:

authentik:
    outposts:
        container_image_base: ghcr.io/goauthentik/dev-%(type)s:gh-%(build_hash)s
global:
    image:
        repository: ghcr.io/goauthentik/dev-server
        tag: gh-13aab872abe8fbf8b80a07725bff4559a69c1172

Afterwards, run the upgrade commands from the latest release notes.

@BeryJu BeryJu added the backport/version-2026.8 Add this label to PRs to backport changes to version-2026.8 label Aug 11, 2026
@netlify

netlify Bot commented Aug 11, 2026

Copy link
Copy Markdown

✅ Deploy Preview for authentik-integrations ready!

Name Link
🔨 Latest commit f163b08
🔍 Latest deploy log https://app.netlify.com/projects/authentik-integrations/deploys/6a7b26c3ebf4bf0008fc276a
😎 Deploy Preview https://deploy-preview-24987--authentik-integrations.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@BeryJu
BeryJu merged commit f52ab52 into main Aug 11, 2026
144 of 146 checks passed
@BeryJu
BeryJu deleted the web/elements/fix-form-specificicty branch August 11, 2026 16:01
@authentik-cherry-pick

Copy link
Copy Markdown
Contributor

🍒 Cherry-pick to version-2026.8 created: #24996

BeryJu added a commit that referenced this pull request Aug 11, 2026
…ut-fields (cherry-pick #24987 to version-2026.8) (#24996)

web/elements: fix prioritization in form serialization for dotted input-fields (#24987)

* web/elements: fix prioritization in form serialization for dotted-input fields



* Tidy.

* Fix import.

* Fix spelling.

---------

Signed-off-by: Jens Langhammer <[email protected]>
Co-authored-by: Jens L. <[email protected]>
Co-authored-by: Teffen Ellis <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport/version-2026.8 Add this label to PRs to backport changes to version-2026.8

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2026.8.0-rc6: User edit – structured Object Attribute input value is silently discarded, overwritten by stale raw Attributes YAML/JSON field

2 participants