Repository navigation
fix(question): apply the extra settings the server adjusted - #4077
Closed
AndyScherzinger wants to merge 1 commit into
Closed
AndyScherzinger wants to merge 1 commit into
AndyScherzinger wants to merge 1 commit into
Conversation
1 task done
When the server adjusts the extra settings of a question on update, it reports this in the header X-Forms-Adjusted, and the editor loads the question again to show the stored settings. The editor only applied them when the settings it had sent were still the current ones, and it compared them by identity: the debounced save sends a copy of the settings, so the comparison never held and the adjusted settings were dropped. Narrowing a linear scale kept the removed jumps in the editor, and the next save sent them again. Apply the loaded settings unless newer changes are pending or queued. Assisted-by: ClaudeCode:claude-opus-5-5 Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
AndyScherzinger
force-pushed
the
fix/question-adjusted-extra-settings
branch
from
December 3, 2026 12:17
93ae727 to
02c9655
Compare
Member
Author
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What it solves
When the server adjusts the extra settings of a question on save, it says so in the
X-Forms-Adjustedresponse header, and the editor loads the question again. The editor then threw the loaded settings away. It only applied them when the settings it had sent were still the current ones, and it checked that by object identity. The debounced save always sends a copy, so the check never passed.What you can see: narrow a linear scale from 1–5 to 1–4 while value 5 has a jump. The server removes that jump, but the editor keeps it. Widen the scale back to 5, and the editor saves the removed jump again.
What changed
The editor now applies the loaded settings unless newer changes are still waiting to be saved.
How to test
The new e2e test
Narrowing a linear scale drops the jumps of the removed values in the editor as wellinplaywright/e2e/jumps.spec.tscovers this. It fails onmainand passes with the fix (checked on Nextcloud 35).The same commit is part of #4076, which needs the editor to apply adjusted settings for the media kind detected by the server.
🤖 AI (if applicable)