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

https://meta.discourse.org/t/data-explorer-created-by-missing/107195
This commit is contained in:
Rishabh 2019-01-28 12:30:17 +05:30
parent a3c9cd7363
commit 13ab013df2
2 changed files with 2 additions and 2 deletions

View File

@ -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;

View File

@ -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