appsmithorg / appsmith

Platform to build admin panels, internal tools, and dashboards. Integrates with 25+ databases and any API.
https://www.appsmith.com
Apache License 2.0
34.61k stars 3.73k forks source link

[Bug]: Datasources were duplicated during fork/import #24685

Open pranavkanade opened 1 year ago

pranavkanade commented 1 year ago

Is there an existing issue for this?

Description

The user was trying to connect to git. When that did not work, they tried to import/fork the app in different workspaces and noticed that the data sources were duplicated. Moreover, exported app json showed different datasource binding compared to the App UI

Steps To Reproduce

More context - https://theappsmith.slack.com/archives/C0341RERY4R/p1686592539141759

Public Sample App

No response

Environment

Production

Issue video log

No response

Version

Latest

acreacico commented 1 year ago

We face the same issue. When forking the app from Dev workspace to Prod, it asks to introduce the credentials and duplicates the connection.

ame-appsmith commented 3 months ago

When forking an app to a workspace that already has a datasource with the same name and type, the datasource gets duplicated. However, when exporting the app and importing it to this workspace, it works as expected - the datasource does not get duplicated and the APIs are tied to the existing datasource. More details in this ticket.

geekyme-fsmk commented 3 months ago

Encountered this issue on v1.28

riteshkew commented 1 month ago

Still exists on latest version v1.41