112 Commits

Author SHA1 Message Date
Jarek Radosz
07e009e862
DEV: Update linting setup and fix issues (#179) 2022-06-17 15:01:34 +02:00
Frank
45b6e7eb4f
FEATURE: Bookmarkable QueryGroups. (#177)
Adds the ability for non-Admin users to bookmark Queries from inside Group > Reports > Query view.
2022-06-14 23:07:02 +08:00
Gerhard Schlager
65a112c8d2
FIX: Edit button shouldn't be visible for seeded queries (#174) 2022-05-17 18:05:05 +02:00
Martin Brennan
50e9242d61
FIX: Use new properties for pick-files-button (#167)
Companion commit to core discourse/discourse#16375
2022-04-06 12:48:02 +10:00
Guhyoun Nam
286b5b5fe7
FEATURE: Add Data Explorer Params to the URL on run (#128)
Co-authored-by: Mark VanLandingham <markvanlan@gmail.com>
2021-09-14 10:10:16 -05:00
Penar Musaraj
0c9005513a
UX: Fix button alignment following core changes (#137) 2021-09-14 09:44:32 -04:00
Andrei Prigorshnev
4a98cc8af8
FEATURE: get rid of the import a query modal (#127)
This is the new version of #126. Now the pick-files-button moved to core. To import a query into Data Explorer, you need to push the button and then deal with the import modal. Instead, we want just to be triggering a system file picker directly. This PR makes it happen.
2021-08-20 14:26:48 +04:00
Jarek Radosz
cf2735162a
DEV: Fix template linting issues (#124)
* Update test
* Remove the empty line in table
2021-07-05 23:15:57 +02:00
David Taylor
4354e1b766
DEV: Resolve some template linting issues (#123)
Some larger issues still remain, but this is a good first step
2021-07-02 16:35:50 +01:00
Andrei Prigorshnev
814ec14636
FIX: add missing string (#121) 2021-07-02 14:22:40 +04:00
Mark VanLandingham
f3b2011ae1
FIX: Translation of column headers in query table (#122) 2021-07-01 08:58:45 -05:00
Andrei Prigorshnev
782dc09d96
UX: Add a help modal dialog (#109) 2021-04-15 19:17:07 +04:00
David Taylor
216dff3ed9
DEV: Improve logic for showing/hiding the reports tab in group screens (#107)
Previously this was adding an extra AJAX request to check if the group had any queries available. Now a boolean is included in the group serializer, so there is no need for the extra request.

Removing this ajax request will also stop other plugin JS integration tests from failing when the data-explorer plugin is installed.

This commit also fixes the HTML markup of the tab, so that it doesn't have a <ul> nested inside the existing <ul>. Also adds an icon for good measure.
2021-04-08 17:47:44 +01:00
Osama Sayegh
8ef3fa38d6
Revert "Revert "DEV: Migrate from {{user-selector}} to {{email-group-user-chooser}} (#94)" (#102)" (#103)
Follow-up to https://github.com/discourse/discourse-data-explorer/pull/102. This is essentially a revert of that PR, the only difference is that the `.discourse-compatibility` file now pins the plugin to 60ffd4bc4d for sites ≤ `2.7.0.beta3`.
2021-03-06 20:16:49 +03:00
Osama Sayegh
60ffd4bc4d
Revert "DEV: Migrate from {{user-selector}} to {{email-group-user-chooser}} (#94)" (#102)
The reverted commit pinned the plugin version on stable because the changes in that commit aren't compatible with stable. However, the version that we pinned the plugin to has a bug on stable and 50e62d84e8 fixes that bug. So we need to temporarily revert 5e24556b24 to unpin the plugin and I'll create another PR to undo this revert and re-pin the plugin version to this commit for sites on stable.

Meta topic: https://meta.discourse.org/t/data-explorer-editing-broken-on-stable/181274/11?u=osama.
2021-03-06 14:48:58 +03:00
Andrew Prigorshnev
4f33c22344
FEATURE: Add a graph report to query results (#93) 2021-02-18 12:06:22 +01:00
Kris
3151fde1e7
UX: allow horizontal overflow scroll, fix button (#95) 2021-02-18 10:36:37 +01:00
Osama Sayegh
5e24556b24
DEV: Migrate from {{user-selector}} to {{email-group-user-chooser}} (#94) 2021-02-16 13:37:30 +03:00
Andrew Prigorshnev
9d86b8b653
FIX: Show badge names in query results (#92)
* FIX: Show badge names in query results
2021-02-12 10:01:16 +01:00
Rishabh
fe420931ba
FIX: Use updated routes to link user profiles (#60)
FIX links to user profiles from the old route `/users/` to the new route `/u/`.
2020-08-18 11:31:05 +02:00
AndreaHabib
8bdfd845db
UI: Fixed missing text above query list for sorting (#58)
* changed directory-toggle to table-header-toggle which fixed the issue
2020-08-11 12:17:36 -05:00
tshenry
f04422244d
FIX: missing default params group reports (#50) 2020-06-05 09:56:53 -07:00
tshenry
0dcaa990b4
UX: minor share report popup improvements (#49) 2020-06-03 16:39:12 -07:00
Joffrey JAFFEUX
df9e21911e FIX: makes group selector works with sk2 (#46) 2020-02-10 08:37:20 +01: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
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
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
096ad2d62c
FIX: do not allow to create groups from group selection (#38) 2019-10-16 12:43:23 +02: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
b9169ec28e
REFACTOR: old patterns, deprecations and dead code (#35) 2019-07-16 12:46:32 +02: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
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
Rishabh
f1b33cc64e UX: Make the 'or' text in json-file-uploader smaller than the modal title 2019-01-09 15:24:06 +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
Penar Musaraj
d05fb698d6 FA5 icon fix 2018-11-08 11:37:23 -05:00
Rishabh
344f6e357d
FEATURE: Replace combo-box with search filter (#28)
* FEATURE: Replace combo-box with search filter
* Delete unused listname property and css fixes
* Use ES6 syntax and `@computed` decorator
2018-11-02 18:11:20 +05:30
Rishabh Nambiar
9dcba5c6e7 FEATURE: Allow clickable post titles in Data Explorer result view using post_id 2018-10-23 16:17:46 +05:30
Rishabh
b352e747c7
FEATURE: Ship default queries with the Data Explorer
Load default queries from queries.rb and save when run.
Each time a query is run, it picks up changes from queries.rb.
2018-10-10 16:59:13 +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
Rishabh Nambiar
68059b540e UX: Style improvements in query edit & result view 2018-09-12 18:58:54 +05:30
Rishabh Nambiar
1ea20132a0 FIX: Remove an unnecessary Handlebars condition 2018-09-12 14:53:29 +05:30
Rishabh Nambiar
dc91b7d0cd FIX: Remove useless no_query_hook text and move create & import buttons to top right 2018-09-07 16:06:23 +05:30
Kris
6904e516ae Removing br tags so an empty description doesn't add space 2018-09-05 13:33:06 -04:00
Kris
a8742f4c64 UX: Minor style improvements and consistency 2018-09-04 14:53:12 -04:00
Rishabh Nambiar
a518ac58fc FIX: Restrict clickable area to the size of heading-toggle 2018-09-04 21:52:44 +05:30