discourse-data-explorer/lib
锦心 760667d744
FIX: Param should be displayed when the default value is invalid (#313)
What's the problem?
===================

TL;DR: When the user enters an incorrect default value, its
corresponding param-input will disappear

When creating a parameter from SQL, we perform cast_to_ruby, which means
that if the default value given by the user is invalid, the entire
parameter will not be added to the param_list of the query.
This behavior is very confusing, and users will not understand why an
incorrect initial value will cause the param-input to disappear.

What's the fix?
================

The cast_to_ruby process is canceled in create_from_sql, so that
param-input with incorrect default value will still be displayed.
We have a simple validation process on the front end, which is enough to
prompt whether some default inputs are incorrect.
2024-08-21 12:03:11 +08:00
..
discourse_data_explorer FIX: Param should be displayed when the default value is invalid (#313) 2024-08-21 12:03:11 +08:00
tasks DEV: Update plugin to match latest guidelines (#229) 2023-03-22 23:29:08 +02:00
report_generator.rb FEATURE: Add ability to skip sending the PM if there are no results (#286) 2024-04-18 21:40:28 +08:00
result_to_markdown.rb FIX: Scheduled PM with Data Explorer Results not sending PM (#250) 2023-07-04 14:18:56 +08:00