mirror of
https://github.com/umami-software/umami.git
synced 2026-02-10 23:57:12 +01:00
Update insights report parameters. Added contains logic.
This commit is contained in:
parent
d59477deb5
commit
5daad2726e
15 changed files with 280 additions and 190 deletions
|
|
@ -69,6 +69,8 @@ function mapFilter(column: string, filter: string, name: string, type: string =
|
|||
return `${column} != {${name}:${type}}`;
|
||||
case OPERATORS.contains:
|
||||
return `positionCaseInsensitive(${column}, {${name}:${type}}) > 0`;
|
||||
case OPERATORS.doesNotContain:
|
||||
return `positionCaseInsensitive(${column}, {${name}:${type}}) = 0`;
|
||||
default:
|
||||
return '';
|
||||
}
|
||||
|
|
|
|||
|
|
@ -100,6 +100,8 @@ function mapFilter(column: string, filter: string, name: string, type = 'varchar
|
|||
return `${column} != {{${name}::${type}}}`;
|
||||
case OPERATORS.contains:
|
||||
return `${column} like {{${name}::${type}}}`;
|
||||
case OPERATORS.doesNotContain:
|
||||
return `${column} not like {{${name}::${type}}}`;
|
||||
default:
|
||||
return '';
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue