diff --git a/api/chalicelib/core/sourcemaps.py b/api/chalicelib/core/sourcemaps.py index 147304a4e..886198e35 100644 --- a/api/chalicelib/core/sourcemaps.py +++ b/api/chalicelib/core/sourcemaps.py @@ -148,10 +148,7 @@ MAX_COLUMN_OFFSET = 60 def fetch_missed_contexts(frames): source_cache = {} for i in range(len(frames)): - print(">>>>>>>> fetch_missed_contexts exception:") - print(frames[i]) - print("------------------") - if len(frames[i]["context"]) > 0: + if frames[i] and frames[i].get("context") and len(frames[i]["context"]) > 0: continue file_abs_path = frames[i]["frame"]["absPath"] if file_abs_path in source_cache: diff --git a/api/env.default b/api/env.default index 64243ed0b..82419328c 100644 --- a/api/env.default +++ b/api/env.default @@ -49,4 +49,5 @@ SESSION_MOB_PATTERN_E=%(sessionId)s/dom.mobe DEVTOOLS_MOB_PATTERN=%(sessionId)s/devtools.mobs PRESIGNED_URL_EXPIRATION=3600 ASSIST_JWT_EXPIRATION=144000 -ASSIST_JWT_SECRET= \ No newline at end of file +ASSIST_JWT_SECRET= +PYTHONUNBUFFERED=1 \ No newline at end of file diff --git a/ee/scripts/schema/db/init_dbs/postgresql/1.8.2/1.8.2.sql b/ee/scripts/schema/db/init_dbs/postgresql/1.8.2/1.8.2.sql index 9742cd426..a144f3a1d 100644 --- a/ee/scripts/schema/db/init_dbs/postgresql/1.8.2/1.8.2.sql +++ b/ee/scripts/schema/db/init_dbs/postgresql/1.8.2/1.8.2.sql @@ -60,6 +60,7 @@ BEGIN END; $$ LANGUAGE plpgsql; -ALTER TABLE sessions ADD file_key BYTEA NULL; +ALTER TABLE IF EXISTS sessions + ADD COLUMN IF NOT EXISTS file_key BYTEA DEFAULT NULL; COMMIT; \ No newline at end of file diff --git a/ee/scripts/schema/db/init_dbs/postgresql/init_schema.sql b/ee/scripts/schema/db/init_dbs/postgresql/init_schema.sql index a3d403b44..866a0e7d5 100644 --- a/ee/scripts/schema/db/init_dbs/postgresql/init_schema.sql +++ b/ee/scripts/schema/db/init_dbs/postgresql/init_schema.sql @@ -545,11 +545,12 @@ $$ watchdogs_score bigint NOT NULL DEFAULT 0, issue_score bigint NOT NULL DEFAULT 0, issue_types issue_type[] NOT NULL DEFAULT '{}'::issue_type[], - utm_source text NULL DEFAULT NULL, - utm_medium text NULL DEFAULT NULL, - utm_campaign text NULL DEFAULT NULL, - referrer text NULL DEFAULT NULL, - base_referrer text NULL DEFAULT NULL, + utm_source text DEFAULT NULL, + utm_medium text DEFAULT NULL, + utm_campaign text DEFAULT NULL, + referrer text DEFAULT NULL, + base_referrer text DEFAULT NULL, + file_key bytea DEFAULT NULL, metadata_1 text DEFAULT NULL, metadata_2 text DEFAULT NULL, metadata_3 text DEFAULT NULL,