Skip to content

OSS Conductor UI V2#852

Merged
ajlai-orkes merged 10 commits intomainfrom
feature/oss-ui-v2
Mar 12, 2026
Merged

OSS Conductor UI V2#852
ajlai-orkes merged 10 commits intomainfrom
feature/oss-ui-v2

Conversation

@ajlai-orkes
Copy link
Copy Markdown
Contributor

Pull Request type

  • Bugfix
  • Feature
  • Refactoring (no functional changes, no api changes)
  • Build related changes
  • WHOSUSING.md
  • Other (please describe):

NOTE: Please remember to run ./gradlew spotlessApply to fix any format violations.

Changes in this PR

Updated conductor-ui v2

Comment thread .github/workflows/ui-next-ci.yml Fixed
Comment thread ui-next/src/growthbook/plugins.ts Fixed
Comment thread ui-next/src/pages/definition/errorInspector/state/helpers.ts Fixed
// Remove <map value> markers
.replace(/<map value>/g, "")
// Clean up any double brackets that might have been created
.replace(/\]\[/g, "][")

Check warning

Code scanning / CodeQL

Replacement of a substring with itself Medium

This replaces '][' with itself.

Copilot Autofix

AI about 2 months ago

In general, to fix this kind of problem you either (1) correct the replacement so it transforms the string as actually intended, or (2) remove the replacement entirely if no transformation is needed. Here, there is no evidence of a different intended form of "]["; the comment says “Clean up any double brackets that might have been created,” but the code already operates on well-formed bracket syntax, and there’s no prior step that would introduce a malformed alternative representation of "][" to normalize. The safest fix that preserves existing functionality is to drop the no-op replacement call.

Concretely, in ui-next/src/pages/definition/errorInspector/state/helpers.ts, within jakatraPathToPropertyPath, remove the .replace(/\]\[/g, "][") call and its preceding comment. This eliminates the redundant operation and the CodeQL finding without altering the resulting string for any input, because the step was previously a pure no-op.

Suggested changeset 1
ui-next/src/pages/definition/errorInspector/state/helpers.ts

Autofix patch

Autofix patch
Run the following command in your local git repository to apply this patch
cat << 'EOF' | git apply
diff --git a/ui-next/src/pages/definition/errorInspector/state/helpers.ts b/ui-next/src/pages/definition/errorInspector/state/helpers.ts
--- a/ui-next/src/pages/definition/errorInspector/state/helpers.ts
+++ b/ui-next/src/pages/definition/errorInspector/state/helpers.ts
@@ -190,8 +190,6 @@
       .replace(/<list element>/g, "")
       // Remove <map value> markers
       .replace(/<map value>/g, "")
-      // Clean up any double brackets that might have been created
-      .replace(/\]\[/g, "][")
       // Remove any dots that appear right before a bracket
       .replace(/\.\[/g, "[")
   );
EOF
@@ -190,8 +190,6 @@
.replace(/<list element>/g, "")
// Remove <map value> markers
.replace(/<map value>/g, "")
// Clean up any double brackets that might have been created
.replace(/\]\[/g, "][")
// Remove any dots that appear right before a bracket
.replace(/\.\[/g, "[")
);
Copilot is powered by AI and may make mistakes. Always verify output.
@ajlai-orkes ajlai-orkes reopened this Mar 12, 2026
@ajlai-orkes ajlai-orkes merged commit 4275ae9 into main Mar 12, 2026
10 checks passed
@ajlai-orkes ajlai-orkes deleted the feature/oss-ui-v2 branch March 17, 2026 19:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants