* 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

* refactor(DB): rollback script
feat(DB): changed users.settings default value
This commit is contained in:
Kraiem Taha Yassine 2024-09-03 15:18:27 +02:00 committed by GitHub
parent 0dbce91c82
commit 966f08e95d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 34 additions and 2 deletions

View file

@ -53,6 +53,14 @@ CREATE TABLE IF NOT EXISTS or_cache.autocomplete_top_values
ALTER TABLE IF EXISTS public.tenants
ADD COLUMN IF NOT EXISTS scope_state smallint NOT NULL DEFAULT 2;
ALTER TABLE IF EXISTS public.users
ALTER COLUMN settings SET DEFAULT '{
"modules": [
"usability-tests",
"feature-flags"
]
}'::jsonb;
COMMIT;
\elif :is_next

View file

@ -143,7 +143,12 @@ CREATE TABLE public.users
spot_jwt_refresh_iat timestamp without time zone NULL DEFAULT NULL,
data jsonb NOT NULL DEFAULT '{}'::jsonb,
weekly_report boolean NOT NULL DEFAULT TRUE,
settings jsonb DEFAULT NULL,
settings jsonb DEFAULT '{
"modules": [
"usability-tests",
"feature-flags"
]
}'::jsonb,
origin text NULL DEFAULT NULL,
role_id integer REFERENCES public.roles (role_id) ON DELETE SET NULL,
internal_id text NULL DEFAULT NULL,

View file

@ -25,6 +25,9 @@ ALTER TABLE IF EXISTS public.users
DROP SCHEMA or_cache CASCADE;
ALTER TABLE IF EXISTS public.tenants
DROP COLUMN IF EXISTS scope_state;
COMMIT;
\elif :is_next

View file

@ -42,6 +42,14 @@ CREATE TABLE IF NOT EXISTS or_cache.autocomplete_top_values
ALTER TABLE IF EXISTS public.tenants
ADD COLUMN IF NOT EXISTS scope_state smallint NOT NULL DEFAULT 2;
ALTER TABLE IF EXISTS public.users
ALTER COLUMN settings SET DEFAULT '{
"modules": [
"usability-tests",
"feature-flags"
]
}'::jsonb;
COMMIT;
\elif :is_next

View file

@ -127,7 +127,12 @@ CREATE TABLE public.users
spot_jwt_refresh_iat timestamp without time zone NULL DEFAULT NULL,
data jsonb NOT NULL DEFAULT '{}'::jsonb,
weekly_report boolean NOT NULL DEFAULT TRUE,
settings jsonb DEFAULT NULL
settings jsonb DEFAULT '{
"modules": [
"usability-tests",
"feature-flags"
]
}'::jsonb
);
CREATE TABLE public.basic_authentication

View file

@ -25,6 +25,9 @@ ALTER TABLE IF EXISTS public.users
DROP SCHEMA or_cache CASCADE;
ALTER TABLE IF EXISTS public.tenants
DROP COLUMN IF EXISTS scope_state;
COMMIT;
\elif :is_next