-
Notifications
You must be signed in to change notification settings - Fork 45
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
editoast: endpoints to retrieve stdcm payloads
Signed-off-by: hamz2a <atrari.hamza@gmail.com>
- Loading branch information
Showing
23 changed files
with
1,265 additions
and
380 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 1 addition & 0 deletions
1
editoast/migrations/2025-01-07-163822_index_stdcm_log_trace_id/down.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
DROP INDEX IF EXISTS stdcm_logs_trace_id; |
1 change: 1 addition & 0 deletions
1
editoast/migrations/2025-01-07-163822_index_stdcm_log_trace_id/up.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
CREATE INDEX IF NOT EXISTS stdcm_logs_trace_id ON stdcm_logs (trace_id); |
5 changes: 5 additions & 0 deletions
5
editoast/migrations/2025-01-14-154647_make_stdcm_log_trace_id_nullable/down.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
UPDATE stdcm_logs | ||
SET trace_id = REPLACE(gen_random_uuid()::text, '-', '') | ||
WHERE trace_id IS NULL; | ||
|
||
ALTER TABLE stdcm_logs ALTER COLUMN trace_id SET NOT NULL; |
1 change: 1 addition & 0 deletions
1
editoast/migrations/2025-01-14-154647_make_stdcm_log_trace_id_nullable/up.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
ALTER TABLE stdcm_logs ALTER COLUMN trace_id DROP NOT NULL; |
Oops, something went wrong.