Skip to content

fix(orchestrator-form-widgets): avoid ActiveTextInput crash when fetch:response:value resolves to missing key#3074

Open
lokanandaprabhu wants to merge 1 commit intoredhat-developer:mainfrom
lokanandaprabhu:fix/orchestrator-active-textinput-missing-selector
Open

fix(orchestrator-form-widgets): avoid ActiveTextInput crash when fetch:response:value resolves to missing key#3074
lokanandaprabhu wants to merge 1 commit intoredhat-developer:mainfrom
lokanandaprabhu:fix/orchestrator-active-textinput-missing-selector

Conversation

@lokanandaprabhu
Copy link
Copy Markdown
Member

Hey, I just made a Pull Request!

Fixes: https://redhat.atlassian.net/browse/RHDHBUGS-3110

This fixes a runtime failure path in ActiveTextInput when fetch:response:value (JSONata) resolves to undefined/null — common while editing dynamic selector keys with fetch:retrigger.

Screen.Recording.2026-05-08.at.12.15.43.PM.mov

✔️ Checklist

  • A changeset describing the change and affected packages. (more info)
  • Added or Updated documentation
  • Tests for new functionality and regression tests for bug fixes
  • Screenshots attached (for UI changes)

…safely

Treat null or undefined JSONata results as empty string for ActiveTextInput fetch response values to avoid UI breakage while editing dynamic selector keys, and add tests for applySelectorString strict/lenient behavior.
@rhdh-gh-app
Copy link
Copy Markdown

rhdh-gh-app Bot commented May 8, 2026

Changed Packages

Package Name Package Path Changeset Bump Current Version
@red-hat-developer-hub/backstage-plugin-orchestrator-form-widgets workspaces/orchestrator/plugins/orchestrator-form-widgets patch v1.10.5

@sonarqubecloud
Copy link
Copy Markdown

sonarqubecloud Bot commented May 8, 2026

@codecov
Copy link
Copy Markdown

codecov Bot commented May 8, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 60.94%. Comparing base (acfcb4c) to head (1c76ebc).
✅ All tests successful. No failed tests found.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #3074   +/-   ##
=======================================
  Coverage   60.94%   60.94%           
=======================================
  Files        2067     2067           
  Lines       63931    63933    +2     
  Branches    16599    16601    +2     
=======================================
+ Hits        38965    38967    +2     
+ Misses      24733    24730    -3     
- Partials      233      236    +3     
Flag Coverage Δ *Carryforward flag
adoption-insights 83.58% <ø> (ø) Carriedforward from acfcb4c
ai-integrations 70.03% <ø> (ø) Carriedforward from acfcb4c
app-defaults 69.60% <ø> (ø) Carriedforward from acfcb4c
augment 69.36% <ø> (ø) Carriedforward from acfcb4c
bulk-import 72.44% <ø> (ø) Carriedforward from acfcb4c
cost-management 16.49% <ø> (ø) Carriedforward from acfcb4c
dcm 32.85% <ø> (ø) Carriedforward from acfcb4c
extensions 61.71% <ø> (ø) Carriedforward from acfcb4c
global-floating-action-button 73.75% <ø> (ø) Carriedforward from acfcb4c
global-header 61.68% <ø> (ø) Carriedforward from acfcb4c
homepage 50.84% <ø> (ø) Carriedforward from acfcb4c
konflux 91.01% <ø> (ø) Carriedforward from acfcb4c
lightspeed 69.92% <ø> (ø) Carriedforward from acfcb4c
mcp-integrations 81.59% <ø> (ø) Carriedforward from acfcb4c
orchestrator 34.85% <100.00%> (+0.02%) ⬆️
quickstart 62.64% <ø> (ø) Carriedforward from acfcb4c
sandbox 79.56% <ø> (ø) Carriedforward from acfcb4c
scorecard 83.61% <ø> (ø) Carriedforward from acfcb4c
theme 64.54% <ø> (ø) Carriedforward from acfcb4c
translations 8.49% <ø> (ø) Carriedforward from acfcb4c
x2a 82.09% <ø> (ø) Carriedforward from acfcb4c

*This pull request uses carry forward flags. Click here to find out more.


Continue to review full report in Codecov by Sentry.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update acfcb4c...1c76ebc. Read the comment docs.

🚀 New features to boost your workflow:
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant