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
锦心andDrenmi 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 <[email protected]>
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