fix(x2a): bitbucket RepoUrlPicker wrapper#2768
fix(x2a): bitbucket RepoUrlPicker wrapper#2768mareklibra merged 2 commits intoredhat-developer:mainfrom
Conversation
Missing ChangesetsThe following package(s) are changed by this PR but do not have a changeset:
See CONTRIBUTING.md for more information about how to add changesets. Changed Packages
|
elai-shalev
left a comment
There was a problem hiding this comment.
Looks good considering it's a hack. I would add some tests for the RepoUrlPickerWithBitbucketFix component. Those would likely break once backstage version is updated (if it includes fix) and would signify we need to fix here.
| if (innerProp === 'type') { | ||
| return 'bitbucket'; | ||
| } |
There was a problem hiding this comment.
we assume this part will change / be removed once the bug is resolved, correct? as they may decouple bitbucketCloud and bitbucketServer
| The Owner should be your SCM (Source Code Management) username. The repository name should be a name that already exists in your SCM account. It will be populated by converted Ansible sources and intermediary artifacts. | ||
| type: string | ||
| ui:field: RepoUrlPicker | ||
| ui:field: X2ARepoUrlPicker |
There was a problem hiding this comment.
A brief comment that this is a workaround for BitBucker will be helpful in the future.
|
This is probably the fastest way to get a fix and the only one for RHDH 1.9. Tests for the |
This is a wrapper around RepoUrlPicker that it's a hotfix for the following issue which gives enough context: backstage/backstage#33887 Fix FLPATH-3887 Signed-off-by: Eloy Coto <eloy.coto@acalustra.com>
Signed-off-by: Eloy Coto <eloy.coto@acalustra.com>
|
Code Review by Qodo
|
Review Summary by QodoAdd RepoUrlPicker wrapper to fix Bitbucket type resolution in scaffolder
WalkthroughsDescription• Adds X2ARepoUrlPickerExtension wrapper to fix Bitbucket Cloud/Server type mismatch in Backstage scaffolder • Wraps scmIntegrationsApi to remap bitbucketCloud/bitbucketServer types to bitbucket for proper rendering • Includes comprehensive unit tests for type remapping and integration preservation • Updates templates and app configuration to use new X2ARepoUrlPicker field extension • Adds required dependencies (@backstage/core-app-api, @backstage/integration-react, @backstage/plugin-scaffolder) Diagramflowchart LR
A["Backstage RepoUrlPicker"] -->|type mismatch| B["bitbucketCloud/bitbucketServer"]
C["X2ARepoUrlPickerExtension"] -->|wraps| A
C -->|intercepts| D["scmIntegrationsApi"]
D -->|remaps to| E["bitbucket type"]
E -->|renders| F["BitbucketRepoPicker"]
File Changes1. workspaces/x2a/plugins/x2a/src/index.ts
|
)" This reverts commit d8c241a.
)" This reverts commit d8c241a.
)" This reverts commit d8c241a.



This is a wrapper around RepoUrlPicker that it's a hotfix for the following issue which gives enough context:
backstage/backstage#33887
Fix FLPATH-3887