Skip to content

Conversation

@polasudo
Copy link

@polasudo polasudo commented Jan 2, 2026

Fixes RHIDP-11204

This PR fixes TypeScript compilation errors in the orchestrator plugins:

  1. Fix incorrect import paths:

    • Change '@backstage/types/index' to '@backstage/types' in 7 files
  2. Add missing type declarations:

    • Add '@types/js-yaml' to devDependencies in orchestrator-common
    • Add '@types/js-yaml' to devDependencies in scaffolder-backend-module-orchestrator
  3. Add missing devDependencies for frontend plugin:

    • Add 'react', 'react-dom', 'react-router-dom' to orchestrator devDependencies (required for dynamic plugin export to resolve peer dependencies)

Hey, I just made a Pull Request!

✔️ 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)

@rhdh-gh-app
Copy link

rhdh-gh-app bot commented Jan 2, 2026

Missing Changesets

The following package(s) are changed by this PR but do not have a changeset:

  • @red-hat-developer-hub/backstage-plugin-orchestrator-form-react
  • @red-hat-developer-hub/backstage-plugin-orchestrator-form-widgets

See CONTRIBUTING.md for more information about how to add changesets.

Changed Packages

Package Name Package Path Changeset Bump Current Version
@red-hat-developer-hub/backstage-plugin-orchestrator-common workspaces/orchestrator/plugins/orchestrator-common patch v3.3.0
@red-hat-developer-hub/backstage-plugin-orchestrator-form-react workspaces/orchestrator/plugins/orchestrator-form-react none v2.4.0
@red-hat-developer-hub/backstage-plugin-orchestrator-form-widgets workspaces/orchestrator/plugins/orchestrator-form-widgets none v1.5.0
@red-hat-developer-hub/backstage-plugin-orchestrator workspaces/orchestrator/plugins/orchestrator patch v5.3.0
@red-hat-developer-hub/backstage-plugin-scaffolder-backend-module-orchestrator workspaces/orchestrator/plugins/scaffolder-backend-module-orchestrator patch v1.3.0

Fixes RHIDP-11204

This PR fixes TypeScript compilation errors in the orchestrator plugins:

1. Fix incorrect import paths:
   - Change '@backstage/types/index' to '@backstage/types' in 7 files

2. Add missing type declarations:
   - Add '@types/js-yaml' to devDependencies in orchestrator-common
   - Add '@types/js-yaml' to devDependencies in scaffolder-backend-module-orchestrator

3. Add missing devDependencies for frontend plugin:
   - Add 'react', 'react-dom', 'react-router-dom' to orchestrator devDependencies
     (required for dynamic plugin export to resolve peer dependencies)

Files modified:
- plugins/orchestrator-common/package.json
- plugins/orchestrator/package.json
- plugins/scaffolder-backend-module-orchestrator/package.json
- plugins/orchestrator-form-react/src/components/AuthRequester.tsx
- plugins/orchestrator-form-widgets/src/uiPropTypes.ts
- plugins/orchestrator-form-widgets/src/utils/evaluateTemplate.test.ts
- plugins/orchestrator-form-widgets/src/utils/useFetch.ts
- plugins/orchestrator-form-widgets/src/utils/useFetchAndEvaluate.ts
- plugins/orchestrator/src/utils/deepSearchObject.ts
- plugins/scaffolder-backend-module-orchestrator/src/actions/getWorkflowParams.ts
@polasudo polasudo force-pushed the fix/orchestrator-tsc-errors-RHIDP-11204 branch from 63405dc to f394152 Compare January 2, 2026 15:47
@sonarqubecloud
Copy link

sonarqubecloud bot commented Jan 2, 2026

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