From 1d97ad6e7eff9c913af9e70d39fa92728ee5cd02 Mon Sep 17 00:00:00 2001 From: Rishabh <5862206+rishabhnambiar@users.noreply.github.com> Date: Sun, 18 Nov 2018 01:49:57 +0530 Subject: [PATCH] DEV: Add guidelines for adding default queries --- lib/queries.rb | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lib/queries.rb b/lib/queries.rb index 2ee1cd8..d47b1fa 100644 --- a/lib/queries.rb +++ b/lib/queries.rb @@ -1,6 +1,11 @@ class Queries def self.default + # WARNING: Edit the query hash carefully # For each query, add id, name and description here and add sql below + # Feel free to add new queries at the bottom of the hash in numerical order + # If any query has been run on an instance, it is then saved in the local db + # Locally stored queries are updated from the below data only when they are run again + queries = { "most-common-likers": { "id": -1,