appsmith icon indicating copy to clipboard operation
appsmith copied to clipboard

[Bug]: API actions URL not updating if connected to a datasource, the association doesn't go away.

Open NilanshBansal opened this issue 1 year ago • 5 comments

Is there an existing issue for this?

  • [X] I have searched the existing issues

Description

On updating the API action url connected to a datasource, it shows changed but on refreshing the page, it goes back to the old URL. The association to the datasource doesn't go away even on updating. Ref: https://theappsmith.slack.com/archives/C040LHZN03V/p1704429009634409

Steps To Reproduce

  1. Create a new application
  2. Create a new API datasource
  3. Add url https://mock-api.appsmith.com/users
  4. Save as Datasource
  5. Go back to api action and try deleting the URL and add https://google.com
  6. The URL changes for the moment but on refreshing the page it changes back to the old url.

Public Sample App

No response

Environment

Production

Severity

Medium (Frustrating UX)

Issue video log

No response

Version

Appsmith v1.19.0-SNAPSHOT

NilanshBansal avatar Apr 01 '24 09:04 NilanshBansal

Hi Nilansh, this may be as per design as well - i.e. the way API URL is built - it may pick the URL from the datasource because the query was created on this datasource. Deleting the URL from the action config does not change this association i.e. to which dataosource the query is related to - this is as per design.

sumitsum avatar Apr 18 '24 09:04 sumitsum

Thanks @sumitsum. Since this is as per design and not a bug. Hence closing this issue.

NilanshBansal avatar Apr 18 '24 09:04 NilanshBansal

There should be a way to disconnect an API from the datasource and delete it. Ref: https://theappsmith.slack.com/archives/CGBPVEJ5C/p1715742694031449

https://github.com/appsmithorg/appsmith/assets/25542733/f523b0a7-3e35-4504-87a0-7d57e943a5a4

NilanshBansal avatar May 17 '24 09:05 NilanshBansal

Related Issue: https://github.com/appsmithorg/appsmith/issues/29533

NilanshBansal avatar May 17 '24 09:05 NilanshBansal

Related conversation: https://theappsmith.slack.com/archives/C040LHZN03V/p1695189228528679

https://github.com/appsmithorg/appsmith/assets/25542733/2fa20a16-c13c-4526-8f2b-96f2d63b3cf5

NilanshBansal avatar May 17 '24 09:05 NilanshBansal