Closed lokanandaprabhu closed 2 months ago
@lokanandaprabhu: This pull request references SRVKP-6343 which is a valid jira issue.
Warning: The referenced jira issue has an invalid target version for the target branch this PR targets: expected the bug to target either version "4.18." or "openshift-4.18.", but it targets "Pipelines 1.16.0" instead.
[APPROVALNOTIFIER] This PR is APPROVED
This pull-request has been approved by: lokanandaprabhu
The full list of commands accepted by this bot can be found here.
The pull request process is described here
/cc @vikram-raj
/cherry-pick release-v1.15.x
@vikram-raj: once the present PR merges, I will cherry-pick it on top of release-v1.15.x in a new PR and assign it to you.
Fixes: https://issues.redhat.com/browse/SRVKP-6343
Analysis / Root cause:
withDragDropContext
is not exposed to dynamic plugins. In start pipeline form, user can create secret, there again, another HTML5Backend was getting created and this lead to "Cannot have two HTML5 backends at the same time." error.Ideally
DroppableFileInput
andTextColumnField
should be exposed to dynamic plugins which internally uses DND but since these components are not exposed, this change is required to set the context to window.Solution Description:
HTML5Backend
is passed directly asbackend
prop toDndProvider
instead ofmanager
prop and thecontext
is set towindow
Screen shots / Gifs for design review:
----BEFORE---
https://github.com/user-attachments/assets/7b9a2efd-9c97-48d2-835a-7d222e605018
---AFTER----
https://github.com/user-attachments/assets/9b3094bc-7969-459d-ab19-a401e0892faa
Unit test coverage report: NA
Test setup:
NOTE: To test this PR, console PR - https://github.com/openshift/console/pull/14282 to be merged 1st.
Browser conformance: