From 2f1044820c479424d29d94df389360b1d9dee871 Mon Sep 17 00:00:00 2001 From: Penar Musaraj Date: Tue, 12 Mar 2024 12:06:01 -0400 Subject: [PATCH] FEATURE: Add group_list parameter type (#283) This allows admins to select multiple groups from a dropdown list and filter results using that parameter. --- .../discourse/components/param-input.hbs | 10 +++++ .../discourse/components/param-input.js | 11 +++++ assets/javascripts/discourse/models/query.js | 2 + lib/discourse_data_explorer/parameter.rb | 4 ++ spec/system/explorer_spec.rb | 43 ++++++++++++++++--- 5 files changed, 65 insertions(+), 5 deletions(-) diff --git a/assets/javascripts/discourse/components/param-input.hbs b/assets/javascripts/discourse/components/param-input.hbs index f67cd3f..6b1553e 100644 --- a/assets/javascripts/discourse/components/param-input.hbs +++ b/assets/javascripts/discourse/components/param-input.hbs @@ -46,6 +46,16 @@ /> {{@info.identifier}} + {{else if (eq this.type "group_list")}} + + {{@info.identifier}} + {{else if (eq this.type "user_list")}}