feat(QTDI-2862): Add watch() attribute to @FixedSchema#1255
Closed
thboileau wants to merge 1 commit into
Closed
Conversation
Add a new optional watch() attribute to @FixedSchema that accepts parameter path strings (same dot-notation as @updatable#parameters()). When set, ComponentSchemaEnricher emits the comma-joined paths under the metadata key tcomp::ui::schema::fixed::watch so Studio can trigger an automatic schema refresh when a watched parameter changes. When watch() is empty (default), the key is not emitted, preserving full backward compatibility. Closes QTDI-2862 Co-Authored-By: AI Tool <ai@noreply>
Contributor
Author
Scope & Design Review — QTDI-2862Verdict: ✅ No findings — implementation matches spec exactly. Scope check
Design check
Compliance check
Generated by GitHub Copilot agent — 2026-07-17 |
|
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.

0 New Issues
0 Fixed Issues
0 Accepted Issues
Requirements
Why this PR is needed?
QTDI-2862 — The
@FixedSchemaannotation currently offers no way to tell Studio which configuration parameters should trigger an automatic schema refresh. Without this, Studio cannot know when the fixed schema may have changed (e.g. when the user selects a different dataset or changes a connection URL), and the schema is never refreshed dynamically.What does this PR add (design/code thoughts)?
Adds a new optional
watch()attribute to@FixedSchemaaccepting parameter path strings in the same dot-notation as@Updatable#parameters().component-api—FixedSchema.java: newString[] watch() default {}attribute with Javadoc.component-runtime-manager—ComponentSchemaEnricher.java: new constantFIXED_SCHEMA_WATCH_META_PREFIX = "tcomp::ui::schema::fixed::watch". Whenwatch()is non-empty, the enricher emits the comma-joined paths under this key. When empty (default), the key is not emitted — full backward compatibility.ComponentSchemaEnricherTest.java: 3 new unit tests covering single path, multiple paths (comma-joined), and emptywatch()(key absent).studio-schema.adoc: documents all three@FixedSchemaattributes in a reference table.Studio-side wiring (
ElementParameterCreator+IValueChangedListener) is out of scope for this PR and will be handled in a follow-up ticket in the Studio repository.AI generated code
https://internal.qlik.dev/general/ways-of-working/code-reviews/#guidelines-for-ai-generated-code