Data Explorer "Created By" Missing

Just spotted this and I think it may be a bug but thought I’d run it passed you all first.

I created a new query, then after a couple of tweaks chose to delete it, from within the query editor view itself.

Whilst still in this view I then rewrote it and saved it. The summary of queries now shows this;

It would seem if you choose to delete the query whilst in the editor but then go on to create and save, the “Created By” data is lost, presumably deleted from the first saved query but then not added back from the session?

Hope this helps :slight_smile:

4 Likes

I tested this, very nice find! :ok_hand:

Whenever we “undelete” a query, we lose the created_by, created_at and the last_run_at info that existed earlier. Will have a fix ready soon.

4 Likes

Hey Rishabh,

Great news on the fix and thank you in advance. :slight_smile:

4 Likes

No problem, this should fixed by:

https://github.com/discourse/discourse-data-explorer/commit/13ab013df20fb32d77eb481130be287794e45cac

Thanks for reporting @RobMeade :+1:

3 Likes

Fantastic, thank you Rishabh, and you are, of course, very welcome :slight_smile:

1 Like