Commit Graph

30 Commits

Author SHA1 Message Date
Robin Ward 0c1a9aa4bc FIX: deprecations 2020-07-06 15:25:19 -04:00
Joffrey JAFFEUX 9297885629
FIX: ensures backward compat with previous findRawTemplate (#48)
To my knowledge we don't implement `requirejs.defined` so I rely on the __DISCOURSE_RAW_TEMPLATES constant which has been introduced in the commit where we moved from discourse/lib/raw-template to discourse-common/lib/raw-templates.
2020-05-06 15:20:37 +02:00
Penar Musaraj 277346b097 DEV: Find/replace deprecated decorators 2020-02-19 11:57:59 -05:00
Mark VanLandingham 30fe9289b8 Allow groups to access queries (#36)
* [WIP] group ids saving on new reports

* Add groups to default queries, and added tab connector

* group_ids set to empty array for default queries

* group reports route (in & and) action

* [WIP] created group reports show route/controller

* Find correct query in show route

* Removed empty array for group_ids in query file

* Add report show view, where users can run queries

* Removed unneeded commas from queries.rb

* Allow non-admin group members to access reports

* query-result component dynamic download url based on location

* Removed accidental changes, and corrected tab size

* Group members can add params to queries

* Specs for new QueryController actions

* remove "Inlude query plan" from group reports

* Run prettier

* return and return -> return render

Co-Authored-By: Robin Ward <robin.ward@gmail.com>

* [WIP] changes from review

* Remove weird [-1] group_ids logic, for a simply check for [] in query update action

* Added integration tests for group report access

* Using guardian for securing endpoints, and much improved specs

* Update assets/javascripts/discourse/components/group-reports-nav-item.js.es6

Co-Authored-By: Robin Ward <robin.ward@gmail.com>
2019-09-11 10:09:41 -04:00
Joffrey JAFFEUX b9169ec28e
REFACTOR: old patterns, deprecations and dead code (#35) 2019-07-16 12:46:32 +02:00
Rishabh a285a38e9c FIX: Allow the Data Explorer API to set LIMIT to "ALL"
Fixes a bug that prevented returning unlimited rows.

Example request:
{{base_url}}/admin/plugins/explorer/queries/6/run?api_key={{api_key}}&api_username={{api_username}}&limit=ALL

From the PostgreSQL docs: "LIMIT ALL" is treated as no limit
https://www.postgresql.org/docs/current/static/sql-select.html#SQL-LIMIT
2019-01-23 16:18:06 +05:30
Rishabh a96bfdf6d5 DEV: Remove ESLint warnings 🚨 2019-01-22 17:19:01 +05:30
Rishabh 8720c2cd5c DEV: Replace hardcoded result limit with a module constant 2019-01-21 14:21:53 +05:30
Joffrey JAFFEUX 2b6357f8b4
FIX: ember 3 support 2018-12-16 15:22:23 +01:00
Rishabh Nambiar 9d7db064af run Prettier 2018-10-10 17:31:14 +05:30
Rishabh Nambiar f876cf66f1 Increase result limit from 250 to 1000 2018-09-18 11:24:37 +05:30
Rishabh Nambiar 316923f190 FEATURE: Show the number of results after running a query (limit 250) 2018-09-18 11:15:31 +05:30
Guo Xiang Tan bcdff915dc Make eslint happy. 2017-08-02 18:05:33 +09:00
Robin Ward 4b3e5d547d FIX: Support raw templates in the latest discourse releases 2016-12-27 11:47:50 -05:00
Robin Ward f9e1177981 FIX: Invalid use of controller in a component 2016-11-09 12:49:25 -05:00
Robin Ward 8d72e979a5 FIX: Old Ember idioms 2016-11-09 11:58:18 -05:00
Guo Xiang Tan 414cda5578 FIX: Import `ajax` instead. 2016-10-31 09:12:01 +08:00
Kane York 9956b9833e Add topic,category,group,reltime rendering 2015-09-21 14:43:23 -07:00
Kane York 4b3188c111 Fix rendering of columns named topic_id 2015-09-14 16:00:39 -07:00
Kane York 86a3d16ad4 Deprecations fixes 2015-09-14 15:34:57 -07:00
Kane York 7f96ea5632 Looks like it's working 2015-08-25 21:36:39 -07:00
Kane York e0e7022538 WIP commit 2015-08-25 20:48:19 -07:00
Kane York 658d49393a The new window is not used except by name 2015-08-03 15:28:09 -07:00
Kane York 43756ec8b6 Adjust styling of download results 2015-08-03 15:19:31 -07:00
Kane York 1601f4f269 Add 'download results as CSV' 2015-08-03 15:07:29 -07:00
Kane York 7f644019a8 Add resizing 2015-07-09 13:20:21 -07:00
Kane York d748e0dae5 give instructions in hanging tab 2015-07-09 12:45:02 -07:00
Kane York 71c3b73ef8 FEATURE: 'Download Result' removes 250-row limit 2015-07-09 12:03:25 -07:00
Kane York 88d7fa955a Add HTTPS warning 2015-06-30 21:21:14 -07:00
Kane York c56a40cacd Import the result table and we're live 2015-06-30 15:12:12 -07:00