Skip to content

Commit

Permalink
fix: feedback filter (#700)
Browse files Browse the repository at this point in the history
  • Loading branch information
hughcrt authored Jan 10, 2025
1 parent 3405766 commit e6b46ce
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/db/0056.sql
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
drop index if exists run_input_idx;
drop index if exists run_output_idx;
drop index if exists run_error_idx;
drop table log;
drop table if exists log;
create extension if not exists btree_gin;
create index run_project_id_input_idx on run using gin (project_id, ((input)::text) gin_trgm_ops);
create index run_project_id_output_idx on run using gin (project_id, ((output)::text) gin_trgm_ops);
4 changes: 3 additions & 1 deletion packages/shared/checks/serialize.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,9 @@ function deserializeParamValue(
switch (filterParam.type) {
case "select":
if (filterParam.multiple) {
return value.split(",").map(decodeURIComponent);
return value
.split(",")
.map((v) => decodeURIComponent(decodeURIComponent(v)));
} else {
return decodeURIComponent(value);
}
Expand Down

0 comments on commit e6b46ce

Please sign in to comment.