FIX: Ensure that all query information persists after delete/un-delete operations

FIX: Ensure that all query information persists after delete/un-delete operations

Data Explorer "Created By" Missing - data-explorer - Discourse Meta

diff --git a/assets/javascripts/discourse/models/query.js.es6 b/assets/javascripts/discourse/models/query.js.es6
index 15f1176..67ab705 100644
--- a/assets/javascripts/discourse/models/query.js.es6
+++ b/assets/javascripts/discourse/models/query.js.es6
@@ -72,7 +72,7 @@ const Query = RestModel.extend({
 });
 
 Query.reopenClass({
-  updatePropertyNames: ["name", "description", "sql"]
+  updatePropertyNames: ["name", "description", "sql", "created_by", "created_at", "last_run_at"]
 });
 
 export default Query;
diff --git a/plugin.rb b/plugin.rb
index 8f86bc0..d1ad945 100644
--- a/plugin.rb
+++ b/plugin.rb
@@ -1011,7 +1011,7 @@ SQL
         end
       end
 
-      [:name, :sql, :description].each do |sym|
+      [:name, :sql, :description, :created_by, :created_at, :last_run_at].each do |sym|
         query.send("#{sym}=", hash[sym]) if hash[sym]
       end

GitHub sha: 13ab013d