[Bug]: API actions URL not updating if connected to a datasource, the association doesn't go away.
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
- Create a new application
- Create a new API datasource
- Add url https://mock-api.appsmith.com/users
- Save as Datasource
- Go back to api action and try deleting the URL and add https://google.com
- 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
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.
Thanks @sumitsum. Since this is as per design and not a bug. Hence closing this issue.
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
Related Issue: https://github.com/appsmithorg/appsmith/issues/29533
Related conversation: https://theappsmith.slack.com/archives/C040LHZN03V/p1695189228528679
https://github.com/appsmithorg/appsmith/assets/25542733/2fa20a16-c13c-4526-8f2b-96f2d63b3cf5