discourse-data-explorer/spec
David Battersby ee308c637c
FIX: Scheduled PM with Data Explorer Results not sending PM (#250)
This PR fixes 2 issues that were picked up by users for the Scheduled Data Explorer Report automation script and a couple of small improvements to better match the format of manual data explorer query results.

The first issue is that within result_to_markdown the colrender contains null values, and we are currently checking length (previously treated as a packed array but it is actually a sparse array). Therefore we can check if the current index of the array is null rather than checking the size of the array.

The second issue addresses the blank query_params field. When the data explorer script does not require any params to be passed in via the automation script then it will have a nil value, however it should be defaulted to {} within the plugin.

To improve formatting the markdown table for PMs is now aligned to left and where values are substituted (for example user_id becomes username) we then include the id within brackets, for example:
user_id becomes username (user_id)
2023-07-04 14:18:56 +08:00
..
automation FIX: Flaky test fix for Data Explorer Automated PM Feature (#235) 2023-03-27 15:57:33 +08:00
fabricators FEATURE: Allow data explorer query result to be sent as recurring PM (#233) 2023-03-24 16:38:42 +08:00
integration DEV: Update plugin to match latest guidelines (#229) 2023-03-22 23:29:08 +02:00
jobs/scheduled DEV: Update plugin to match latest guidelines (#229) 2023-03-22 23:29:08 +02:00
lib/data_explorer DEV: Update plugin to match latest guidelines (#229) 2023-03-22 23:29:08 +02:00
requests DEV: Remove usages of RateLimiter.clear_all! (#247) 2023-06-15 09:39:08 +10:00
system FIX: ensures explorer is using default values when provided (#240) 2023-04-17 09:06:27 -05:00
tasks DEV: Update plugin to match latest guidelines (#229) 2023-03-22 23:29:08 +02:00
data_explorer_spec.rb DEV: Update plugin to match latest guidelines (#229) 2023-03-22 23:29:08 +02:00
guardian_spec.rb DEV: Update plugin to match latest guidelines (#229) 2023-03-22 23:29:08 +02:00
report_generator_spec.rb FEATURE: Allow data explorer query result to be sent as recurring PM (#233) 2023-03-24 16:38:42 +08:00
result_to_markdown_spec.rb FIX: Scheduled PM with Data Explorer Results not sending PM (#250) 2023-07-04 14:18:56 +08:00