Commit Graph

261 Commits

Author SHA1 Message Date
jjaffeux 2c11e386f1 DEV: Move to rubocop-discourse. 2020-05-06 18:11:07 +02: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
Neil Lalonde 676dc40031
Update translations 2020-05-04 10:49:51 -04:00
Vinoth Kannan cfe6452d11 SPEC: limit maximum number of rows correctly.
96a8d1862e
2020-02-26 16:00:15 +05:30
Neil Lalonde 69c5423942 Update translations 2020-02-25 10:33:22 -05:00
Vinoth Kannan 96a8d1862e FIX: limit maximum number of CSV rows correctly.
bbea8884db
2020-02-24 10:53:48 +05:30
Vinoth Kannan bbea8884db FIX: `limit` parameter value `ALL` should work for JSON exports.
183bc26763
2020-02-24 10:28:22 +05:30
Vinoth Kannan 183bc26763 DEV: set limit for maximum no of rows in CSV exports. 2020-02-20 23:34:15 +05:30
Penar Musaraj 277346b097 DEV: Find/replace deprecated decorators 2020-02-19 11:57:59 -05:00
Neil Lalonde 150744ab20 Update translations 2020-02-13 15:05:47 -05:00
Joffrey JAFFEUX df9e21911e FIX: makes group selector works with sk2 (#46) 2020-02-10 08:37:20 +01:00
Arpit Jalan 16ea1c55a9 FIX: download CSV feature was not working for group reports 2020-01-21 15:16:15 +05:30
Neil Lalonde aebd8dc6e4 Update translations 2020-01-20 11:21:43 -05:00
Sam Saffron 7e21634987 lint file 2020-01-13 10:43:30 +11:00
Blake Erickson 6707072ef1 FIX: Remove buffered-render reference
Buffered-render has been removed from core, so this change allows us to
keep the same functionality without using the render buffer.
2020-01-11 06:04:14 -07:00
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 86516dadbb DEV: replace "warning" icons with "exclamation-triangle" 2020-01-06 12:52:27 -05:00
Mark VanLandingham d811b0c7a3 FIX: Use i18n for allow groups label (#44) 2020-01-06 12:08:35 +01:00
Neil Lalonde af7cfb2390 Update translations 2019-12-19 12:50:47 -05:00
tshenry 02f4277f3d UX: Improve info popup overflow
Some of the longer variable names were overflowing. This commit is a follow-up to: https://github.com/discourse/discourse-data-explorer/pull/45
2019-12-09 09:02:32 -08:00
tshenry 6393831b0b FEATURE: Additional enums (#45)
Data explorer displays special information about various enums, this flags more fields that we know are enums leading to a clearer UX.
2019-12-09 14:20:34 +11:00
Rafael dos Santos Silva 6f1b246b65 FEATURE: Adds the full HTML of a vote option to poll export 2019-12-05 17:07:09 -03:00
Rafael dos Santos Silva 3ea9a77b27 FEATURE: Add a poll results query 2019-11-22 22:21:22 -03: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 ffe315c4a2 Rubocop redundant return fix 2019-11-14 15:07:58 -05:00
Justin DiRose 48f0e2b982
FIX: Return all groups instead of truncated list (#42) 2019-11-14 12:39:55 -06:00
Neil Lalonde 33322598f9 Update translations 2019-11-06 10:46:40 -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
Joffrey JAFFEUX aa9a3a8ce5
minor code cleaning (#40) 2019-10-16 12:43:35 +02:00
Joffrey JAFFEUX 096ad2d62c
FIX: do not allow to create groups from group selection (#38) 2019-10-16 12:43:23 +02:00
Joffrey JAFFEUX 4196321e41
FIX: ensures group_ids are not "" or nil (#39) 2019-10-16 12:43:10 +02:00
Neil Lalonde c58748474a Update translations 2019-10-10 11:26:02 -04: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
Arpit Jalan 2acab3ba89 FIX: do not raise error if query does not have group_ids 2019-09-13 12:00:29 +05:30
Robin Ward b8c96afe83 FIX: Allow admins to access data explorer if no groups list is present 2019-09-11 15:13:27 -04:00
Joffrey JAFFEUX e9e309e271 minor linting 2019-09-11 10:52:40 -05:00
Joffrey JAFFEUX 8b989b2cf2 linting 2019-09-11 10:38:31 -05:00
Joffrey JAFFEUX a3ae064654 linting 2019-09-11 10:30:39 -05:00
Joffrey JAFFEUX 51a0b9318a DEV: adds prettier/eslint dependencies 2019-09-11 10:30:28 -05:00
romanrizzi 588391cb2f Fix broken spec and linting errors 2019-09-11 11:52:06 -03: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 49771b0f8e adds prettier 2019-07-16 13:15:09 +02:00
Joffrey JAFFEUX b9169ec28e
REFACTOR: old patterns, deprecations and dead code (#35) 2019-07-16 12:46:32 +02:00
Neil Lalonde 1f1afd0d7e Update translations 2019-07-15 14:01:49 -04:00