Commit Graph

239 Commits

Author SHA1 Message Date
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
Neil Lalonde 11ead5b034 Update translations 2019-06-17 13:57:46 -04:00
Penar Musaraj ed2e0b8c13 Run Prettier 2019-06-14 13:27:41 -04:00
Penar Musaraj 300c862244 Fix eslint 2019-06-14 12:29:06 -04:00
Neil Lalonde bb38940ee4 Update translations 2019-06-10 10:39:37 -04:00
Neil Lalonde 9e5a252e39 Update translations 2019-05-30 11:31:55 -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
Guo Xiang Tan 817a233cef Add frozen string literal comment to files. 2019-05-13 10:42:48 +08:00
Rishabh b83eefd9b8 FEATURE: Re-add the assigned-topics-report query
The assigned-topics-report query was added in 5f3bcab2
but was mistakenly removed by c8ca1e14. I've just re-added it.
2019-05-07 19:21:45 +05:30
Rishabh 3b47c9a597 DEV: make Rubocop happy 2019-05-07 19:16:23 +05:30
Simon Cossar c8ca1e1426 Add a default query for showing the number of replies created by members of a given group (#34) 2019-05-07 18:58:10 +05:30
Sam Saffron 5f3bcab2f8 FEATURE: add query to list all assigned topics
This lists all the topics assigned to all users ordered by user / topic id
2019-04-15 16:11:05 +10:00
Osama Sayegh 859021bb3c
UX: make SQL editor resizable (#33) 2019-04-07 09:05:43 +03:00
Neil Lalonde 83a2c96fe4 Update translations 2019-04-05 10:15:17 -04:00
Robin Ward 53ec9262a8 FIX: Support new Reviewable API if present 2019-03-13 11:14:01 -04:00
Neil Lalonde 7a1cd31f71 Update translations 2019-03-04 10:18:12 -05:00
Maja Komel 538dc6030f Add a default query for a list of topics user is watching/tracking/muted 2019-03-04 14:43:27 +01:00
Rishabh 0ed53f7c5e DEV: Remove debug statement in explorer-container.js 2019-02-05 16:42:07 +05:30
Rishabh 6a69daf39a UX: Clean up button styles for query pages
- Add a "play" glyph for the Run & SaveRun buttons
- ensure that there's only one primary button on the page i.e. Run
- Remove btn-danger from discard button
- remove redundant button class from create button
- Improve redundant copy by removing the word "Query"
2019-02-05 14:21:52 +05:30
Neil Lalonde 297aefcd47 Update translations 2019-01-31 16:44:02 -05:00
Rishabh 13ab013df2 FIX: Ensure that all query information persists after delete/un-delete operations
https://meta.discourse.org/t/data-explorer-created-by-missing/107195
2019-01-28 12:30:17 +05:30
Rishabh a3c9cd7363 FIX: Don't send extra_data when exporting results to JSON
The extra data is needed to render avatars and user metadata when rendering results in the browser,
we can skip this data for JSON exports to reduce bloat
2019-01-24 12:46:02 +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