Commit Graph

112 Commits

Author SHA1 Message Date
Blake Erickson d2ac25857f FIX: Remove component file
This file is no longer necessary.

Follow up to: 45fbba08fc
2020-01-10 18:34:24 -07:00
Blake Erickson 45fbba08fc DEV: Remove buffered render code
The render buffer code is being removed from core, so we need to remove
it's usage from this plugin. This change is a refactor only and should
not break any functionality.
2020-01-10 16:20:40 -07:00
Penar Musaraj f1d463ecb0 DEV: Respect radix rule in eslint-config-discourse 1.0.6 2019-11-18 10:08:15 -05:00
Penar Musaraj e8e32e27e0 Fix Prettier 2019-10-28 21:34:08 -04:00
Mark VanLandingham 960c126cc9 Remove unused variables in shart-report 2019-10-28 16:13:43 -05:00
Mark VanLandingham 446e6bf29c
FEATURE: Popup to copy shareable links to reports (#41)
* FEATURE: Popup to copy shareable links to reports

* Only show created_at if it is non-empty

* remove unneeded dependencies in share-report

* Use Discourse.BaseUrl and i18n some text
2019-10-28 14:32:09 -05:00
Mark VanLandingham 7193d11ee6 FIX: ability to import an exported query (#37) 2019-09-17 16:20:33 +10:00
Joffrey JAFFEUX 844f96d146 FIX: ensures user has groups 2019-09-16 11:35:45 -07: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 677722d676 FIX: prevents egression mutating read only object 2019-07-25 07:50:31 +02:00
Joffrey JAFFEUX 8f0bd298b1 fixes prettier 2019-07-16 13:15:27 +02:00
Joffrey JAFFEUX b9169ec28e
REFACTOR: old patterns, deprecations and dead code (#35) 2019-07-16 12:46:32 +02:00
Penar Musaraj 300c862244 Fix eslint 2019-06-14 12:29:06 -04:00
Sam Saffron 29862defaa FEATURE: add support for _url to link to a url
This new feature means that if you name a column `xyz_url` then the return
value will be treated as a URL.

If you would like to name the link use the format `name,https://cnn.com`
2019-05-13 14:44:51 +10:00
Osama Sayegh 859021bb3c
UX: make SQL editor resizable (#33) 2019-04-07 09:05:43 +03:00
Rishabh 0ed53f7c5e DEV: Remove debug statement in explorer-container.js 2019-02-05 16:42:07 +05:30
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
Penar Musaraj 061322e53a Finalize FA5 fixes 2018-11-15 11:12:32 -05: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 d82109b00b FIX: Adds back removed component 2017-05-11 12:45:15 -04:00
Robin Ward 4b3e5d547d FIX: Support raw templates in the latest discourse releases 2016-12-27 11:47:50 -05:00
Robin Ward 91815c9f00 FIX: Remove Deprecated Views 2016-12-01 13:54:21 -05:00
Robin Ward 0d62ad73d4 FIX: Don't have CPs perform sets 2016-11-24 15:31:05 -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
Robin Ward 37fe36778b FIX: Deprecated debounce function 2016-02-17 17:17:43 -05:00
Arpit Jalan 34af6a5d54 FIX: group name can have dash and capital letters 2015-11-19 13:30:33 +05:30
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 fb42dc483c Add denormalized column info 2015-07-28 11:18:22 -07:00
Kane York ea1d38da57 Add foreign key info, column comment support 2015-07-28 09:59:26 -07:00
Kane York d79f667a9b Use this.site.categories 2015-07-15 16:16:07 -07:00
Kane York 6a61f694ee Fix float type checks 2015-07-15 12:23:56 -07:00
Kane York 45c2636ea0 Fix boolean parameters 2015-07-15 11:00:31 -07:00
Kane York 5b11bbec68 Finish group/category validation, add user lists 2015-07-14 16:49:23 -07:00
Kane York 0672e99da2 Work on new parameter model 2015-07-14 16:01:38 -07:00
Kane York 198c64d86a Don't show the ace editor right away, wait for edit pencil to be clicked 2015-07-14 10:34:23 -07:00
Kane York c7a947542e Allow expanding/collapsing the schema view 2015-07-14 09:44:42 -07:00
Kane York 2bbe69d67e Include enum values in schema 2015-07-09 15:46:19 -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 dad55e085b Restyling of data explorer 2015-07-08 16:46:36 -07:00
Kane York 6ac463290e Add DB schema view beside query editor 2015-07-08 13:45:13 -07:00
Kane York 88d7fa955a Add HTTPS warning 2015-06-30 21:21:14 -07:00
Kane York 1ea74847ae Display errors, convert integers 2015-06-30 19:51:38 -07:00
Kane York c56a40cacd Import the result table and we're live 2015-06-30 15:12:12 -07:00
Kane York 01b38207d9 Start work on JS side 2015-06-25 13:26:31 -07:00
Kane York 174e6d6ecc Initial commit as a clone of discourse-tagging 2015-06-25 09:25:15 -07:00