Variables get deleted when updating a query

In some cases the variables in a query get deleted when updating the query, forcing the user to add all of them again. This is very annoying as errors can then happen easily.

1 Like

Hello @Zierau,

I apologize for this issue, it looks like we have an existing ticket for this but I will tag on this post and keep you updated on any news I get from the engineering team.

Do you have any screenshots of your query and which variables are getting deleted when updating it?

1 Like

I will try to take some the next time I encounter the issue. But unfortunately usually I only notice after I update the query, that the variable values for deleted.

1 Like

Ok thanks for letting me know.

Apologies again for the issue, keep us posted on what we can do to reproduce this bug so we can better inform our engineers on the situation and work on a fix if possible!

1 Like

This happens to me as well, whenever I'm introducing a new variable to my existing GraphQL query.

1 Like

@sf_tech_bro Ah that is not suppose to happen.

Could you give me some more details? Are you self hosted or on the cloud?

If you could share a screen recording that would be great for me to relay this to our engineering team to see what we can do.

Also I would recommend for all issues related to queries not saving properly, if you could inspect via browser tools to see if the update/fetch/save query requests are going through or if they are failing/timing out that would be very helpful for figuring out where the breakdown is and why the work is disappearing :pray:

1 Like

Hello ; I have exactly the same issue (cloud) and it's very painful as my queries have around dozens of variables that I need to add manually. Could you please help us out?

1 Like

@bchino Let me see what I can do to help!

Are all the queries the same resource?

Which resource query is causing the issues? Are they graphQL queries like sf_tech_bro is experiencing this issue with?

Can you share a video or screenshot of the behavior?

1 Like

For all users on cloud, the query save event will appear in your browsers inspector under the Network tab.

If you share the query ID of one of these "bad saves" that is deleting variables, we can look it up in our logs to see if we can figure out what is happening.

A common issue with Retool apps having progress reset/erased is when users have multiple browser tabs open viewing the same app. As the 'old' tab can send in save events which will get the app out of sync as it will think you are still working on the older version of the query that does not have the variable and override the true save(the one containing the vars you added).

1 Like

Are these in line variables created with const or Retool variables?

Are you using the SQL or GUI mode when this is occuring?

1 Like

As you can see on the gif below, the issue kicks in when inserting a new query element.

ezgif-1-cff486ce73

3 Likes

@bchino Thank you so much for sharing that video!

I was able to reproduce the bug, sending straight to our engineers right now :saluting_face:

Very odd, our appologies.

On my testing, after starting a new line and hitting tab, the variables disappear as soon as i start typing. However, when I stop typing and press delete several time, the variables appear again! They are missing the values but they keys seem to be saved in the query state and repopulate the key name :confused:

1 Like

Thanks @Jack_T ; appreciate it

2 Likes

Hello @bchino!

Hope your day is going well. I just got work that this ticket was marked as done.

It should be finalized and added into our next stable release shortly :crossed_fingers:

1 Like