ToolJet icon indicating copy to clipboard operation
ToolJet copied to clipboard

[datasource]: RestApi definition is lost when data source is updated

Open shivangT opened this issue 2 years ago • 0 comments

What is the expected behavior?

If we add a restApi data source and create a query with params, type, and other details then adding the data source should not make the initial query settings disappear.

What is the current behavior?

If we add a restApi data source and create a query with params, type, and other details then adding the data source again makes the initial query settings disappear.

How to reproduce the issue?

  1. Visit the link and create a new application.
  2. On the left-hand side, click on "Sources" and then add a new data source as the rest API with details required.
  3. Once added, add a new query in the query panel at the bottom.
  4. Now set the query with a type of call, params, and headers
  5. Once done click on create the query.
  6. Now again follow step 2 and change "Authentication type"
  7. Now the original query created will be lost a post-last step
  8. Refer to the screen recording below to recreate the issue

Screenshots or Screencast

https://drive.google.com/file/d/1RvqM8C0zGHYZsiWbi8CVP363wsULmbt7/view?usp=sharing

shivangT avatar Sep 14 '22 13:09 shivangT