* fix(chalice): fixed Math-operators validation
refactor(chalice): search for sessions that have events for heatmaps

* refactor(chalice): search for sessions that have at least 1 location event for heatmaps

* fix(chalice): fixed Math-operators validation
refactor(chalice): search for sessions that have events for heatmaps

* refactor(chalice): search for sessions that have at least 1 location event for heatmaps

* feat(chalice): autocomplete return top 10 with stats

* fix(chalice): fixed autocomplete top 10 meta-filters

* fix(DB): support previous DB upgrade
This commit is contained in:
Kraiem Taha Yassine 2024-11-19 18:14:06 +01:00 committed by GitHub
parent 88addf6e4a
commit 27f1027ad2
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 30 additions and 0 deletions

View file

@ -1,3 +1,18 @@
-- To fix a skipped version replacement from the previous release
SELECT openreplay_version() = 'v1.19.0-ee'
AND EXISTS (SELECT 1
FROM information_schema.tables
WHERE table_schema = 'spots'
AND table_name = 'tasks') AS valid_previous;
\gset
\if :valid_previous
CREATE OR REPLACE FUNCTION openreplay_version()
RETURNS text AS
$$
SELECT 'v1.20.0-ee'
$$ LANGUAGE sql IMMUTABLE;
\endif
\set previous_version 'v1.20.0-ee'
\set next_version 'v1.21.0-ee'
SELECT openreplay_version() AS current_version,

View file

@ -1,3 +1,18 @@
-- To fix a skipped version replacement from the previous release
SELECT openreplay_version() = 'v1.19.0'
AND EXISTS (SELECT 1
FROM information_schema.tables
WHERE table_schema = 'spots'
AND table_name = 'tasks') AS valid_previous;
\gset
\if :valid_previous
CREATE OR REPLACE FUNCTION openreplay_version()
RETURNS text AS
$$
SELECT 'v1.20.0'
$$ LANGUAGE sql IMMUTABLE;
\endif
\set previous_version 'v1.20.0'
\set next_version 'v1.21.0'
SELECT openreplay_version() AS current_version,