1
0
mirror of synced 2026-05-22 22:13:19 +00:00

149 Commits

Author SHA1 Message Date
Discourse Translator Bot ca9f0e07cb Update translations (#373) 2025-05-07 15:17:34 +02:00
Discourse Translator Bot eee99d01e2 Update translations (#370) 2025-04-28 13:42:06 +02:00
David Battersby 08a01b23fe FEATURE: add option to send individual report PM to group members (#369)
This change adds an option to the Schedule a PM with Data Explorer results script, which when selected will send individual PMs to each group member selected in the Send to User, Group or Email field.

When this field is not checked, the functionality for groups will work as it did before (ie. send a single PM to the group).
2025-04-18 15:50:57 +04:00
Discourse Translator Bot 6dc695cced Update translations (#357) 2025-02-11 16:42:59 +01:00
Gary Pendergast d726c4889e DEV: Split the Query Listing and Query Editing code (#356)
The code for listing all of the defined queries is mixed together with the code for editing a single query. Notably, this results in large amounts of unnecessary data being loaded for the list view, which causes substantial rendering slowdowns.

To address this issue, we now only load the necessary data for the list view, and load the full data when it's actually needed (any endpoint that returns a single query). The primary changes that achieve this are:

- Create a new `QueryDetailsSerializer` serialiser, which includes all of the query info, and change the existing `QuerySerializer` serialiser to only include the necessary attributes of each query for generating a list of them all.
- Split the monolith `/plugins/explorer` route into `/plugins/explorer` for showing just the list of queries, and `/plugins/explorer/queries/:query_id`, for showing/editing/running a specific query.
2025-02-10 14:54:01 +11:00
Discourse Translator Bot bda0c29e7a Update translations (#352) 2025-01-31 10:48:32 +01:00
Discourse Translator Bot 7209f26af1 Update translations (#351) 2025-01-21 15:55:20 +01:00
Discourse Translator Bot d961589f97 Update translations (#348) 2024-12-18 15:19:32 +01:00
Discourse Translator Bot 593da9223e Update translations (#347) 2024-12-10 20:16:29 +01:00
Joffrey JAFFEUX 504f46ba11 UX: clarify the need for authorized extension (#346)
When checking `attach_csv` in the `Schedule a PM with Data Explorer results`
 automation script, `csv` has to be added to the list of authorized extensions in the site settings. This will now raise an error if it's not the case.
2024-12-10 11:02:49 +01:00
Discourse Translator Bot 04edc3776e Update translations (#342) 2024-12-04 11:59:18 +01:00
Discourse Translator Bot 88f18b8acd Update translations (#332) 2024-10-16 17:51:57 +09:00
Martin Brennan da1c99ec2d FEATURE: Add script to post report results in a topic regularly (#328)
This script is similar to the existing one that schedules
report results to to be sent to a PM on a regular basis,
but instead takes a topic ID and posts to that. This way
people can have report results sent to a public topic regularly
too and not have to deal with PM recipients and so on.
2024-10-10 16:09:09 +10:00
Discourse Translator Bot 3f96352a43 Update translations (#320) 2024-09-02 18:00:01 +02:00
锦心 cbae98f6ed FEATURE: Allows CSV file result to be attached in automated PMs (#318)
This commit adds an optional setting that allows to attach query results
in CSV format as a file to PMs sent by Data Explorer's automation
scripts.

meta topic: https://meta.discourse.org/t/turn-data-explorer-query-results-into-csv-to-attach-to-discourse-automated-emails/267529

Co-authored-by: Drenmi <drenmi@gmail.com>
2024-08-27 11:41:12 +08:00
锦心 68760cd3a5 UX: Rewrite date/time param-input using FormKit (#316)
This commit changes the date/time input (including `date`, `time`, and
`datetime` types) to the date/time input provided by FormKit.
2024-08-22 23:24:12 +08:00
Discourse Translator Bot b6c45800b3 Update translations (#311) 2024-08-20 17:54:06 +02:00
锦心 5080ce9b1f UX: Rewrite param-input using FormKit (#307)
What does this PR do?
=====================

This PR refactors param-input to use FormKit. FormKit is a structured
form tool in the core. After the rewrite, we will be able to get semantic 
parameter error prompts, etc.

meta link: https://meta.discourse.org/t/wishlist-param-dropdown-for-data-explorer-query/253883/28?u=lhc_fl
2024-08-20 09:42:50 +08:00
Discourse Translator Bot 6425462b15 Update translations (#305) 2024-08-13 16:31:20 +02:00
Discourse Translator Bot 2d0dc39767 Update translations (#300) 2024-07-31 00:14:15 +02:00
Discourse Translator Bot f9299d8ee1 Update translations (#293) 2024-05-31 12:27:21 +02:00
Discourse Translator Bot f214591721 Update translations (#287) 2024-04-23 16:22:23 +02:00
Natalie Tay b9d875cc3e FEATURE: Add ability to skip sending the PM if there are no results (#286) 2024-04-18 21:40:28 +08:00
Discourse Translator Bot ebe71a7a13 Update translations (#278) 2024-01-30 17:03:30 +01:00
Discourse Translator Bot 208ee6af55 Update translations (#277) 2024-01-23 18:29:29 +01:00
Discourse Translator Bot ff67fb485f Update translations (#264) 2023-11-07 21:31:53 +01:00
Martin Brennan 5776aa7fc9 FEATURE: Add JSON result type component (#260)
If a column is payload or contains _payload it will be assumed
it has JSON data in it, then we will show the truncated JSON in the
result column with a button to show the full-screen formatted
JSON using our full-screen code viewer. We also do the same if
the column is the `json` postgres data type.
2023-11-02 09:50:05 +10:00
Discourse Translator Bot 06193f27ef Update translations (#258) 2023-08-29 15:50:46 +02:00
Discourse Translator Bot 119b1d8cc7 Update translations (#257) 2023-08-23 09:29:34 +02:00
David Taylor 7bf6c7d3a3 DEV: Fix Zeitwerk reloading error (#249)
Using `.append` can lead to a 'two routes with the same name' error

Reproduced via

```
rails runner 'Rails.application.reloader.reload!'
```
2023-06-16 13:38:56 +01:00
Discourse Translator Bot f99b3af7ed Update translations (#242) 2023-04-25 17:21:59 +02:00
Discourse Translator Bot b565d70dd5 Update translations (#237) 2023-04-05 09:13:13 +02:00
David Battersby 705753216c FEATURE: Allow data explorer query result to be sent as recurring PM (#233)
This feature enables admins to create reports automatically based on a recurring schedule.

It introduces a new automation script that includes the new email_group_user field added to discourse-automation, along with a query_id and query_params to pass in parameters to the existing data explorer query.

The output of the report will be sent via pm (as a markdown table) to the recipients entered within the automation script.

The automation (supports individual users, email addresses and groups).
2023-03-24 16:38:42 +08:00
Bianca Nenciu 206d937a78 DEV: Update plugin to match latest guidelines (#229)
This commit updates the plugin to the latest guidelines, as shown in
discourse-plugin-skeleton, which involves moving a lot of the code to
dedicated files, use proper namespaces, use the autoloader as much as
possible, etc.
2023-03-22 23:29:08 +02:00
Discourse Translator Bot d7a1b255fb Update translations (#225) 2023-02-21 17:12:04 +01:00
Discourse Translator Bot c4d715b7c2 Update translations (#224) 2023-02-15 10:50:54 +01:00
Discourse Translator Bot f51bc050a2 Update translations (#217) 2023-01-18 11:42:21 +01:00
Discourse Translator Bot 2b2e351331 Update translations (#214) 2023-01-10 20:54:37 +01:00
Isaac Janzen 4d26cf78f0 DEV: Upgrade admin-plugins-explorer to Octane (#209)
- Drop `explorer-container` and move its logic to `admin-plugin-explorer` container
- Convert resizing of the query edit pane from jquery -> draggable modifier
2023-01-05 09:27:10 -06:00
Discourse Translator Bot 467b6c8a91 Update translations (#193) 2022-11-29 15:36:46 +01:00
Discourse Translator Bot 8a1bdb5759 Update translations (#181) 2022-06-21 15:27:08 +02:00
Jarek Radosz 07e009e862 DEV: Update linting setup and fix issues (#179) 2022-06-17 15:01:34 +02:00
Discourse Translator Bot 2c6cde8eea Update translations (#163) 2022-02-15 15:10:05 +01:00
Discourse Translator Bot 4ecbca8fe3 Update translations (#162) 2022-02-08 14:13:10 +01:00
Discourse Translator Bot 4813615488 Update translations (#159) 2022-02-01 16:15:13 +01:00
Discourse Translator Bot 45f1a04ca5 Update translations (#158) 2022-01-25 14:27:01 +01:00
Gerhard Schlager b6dadcae54 Update client.en.yml (#156) 2022-01-24 16:02:42 +01:00
Osama Sayegh ea66bcdc75 FEATURE: Add an API scope for running queries (#154) 2022-01-21 07:15:04 +03:00
Martin Brennan 70b973ea9a FEATURE: Move query limit to hidden site setting (#153)
Previously the `QUERY_RESULT_DEFAULT_LIMIT` const was used
to limit the number of query results. This commit adds the
`data_explorer_query_result_limit` site setting which defaults
to 1000 and has a max of 10000 which matches the const
`QUERY_RESULT_MAX_LIMIT`.
2022-01-19 12:27:21 +10:00
Discourse Translator Bot 8aca7767e2 Update translations (#152) 2022-01-18 14:41:37 +01:00