Draft: Add UI for updating o11y settings records
What does this MR do and why?
This adds the UI for updating the o11y_service_settings records in the database.
References
Database
Insert
INSERT INTO "observability_group_o11y_settings" ("group_id", "o11y_service_url", "o11y_service_user_email", "o11y_service_password", "o11y_service_post_message_encryption_key", "created_at", "updated_at")
VALUES (22, 'http://localhost:8080/', 'ddux@gitlab.com', '{"p":"IqBul1jV34RfErM=","h":{"iv":"4iGVBgs2fkiXqWB2","at":"vqjHPWZ4DJ0N92eB6bFnSQ==","i":"Njc0OQ=="}}', '{"p":"+KPCxw7/wwyFthbIT2bdLSAy/z1hwIl+Wcjpki6bp4Sc6BFayVk9/bHuVqDsVnB8qKHHbV57","h":{"iv":"lNtHI0KsFKc+CzPB","at":"D3TH7IxsiqLKwrTII2DC6Q==","i":"Njc0OQ=="}}', '2025-07-17 20:22:59.405840', '2025-07-17 20:22:59.405840')
RETURNING
"id";
Query plan: https://console.postgres.ai/gitlab/gitlab-production-main/sessions/41630/commands/127795
Update
UPDATE
"observability_group_o11y_settings"
SET
"o11y_service_user_email" = 'ddux+updated@gitlab.com',
"updated_at" = '2025-07-17 20:24:09.426583'
WHERE
"observability_group_o11y_settings"."id" = 5;
Query plan: https://console.postgres.ai/gitlab/gitlab-production-main/sessions/41630/commands/127797 There are no records for this table in the database yet. Since this is accessing by the primary key ID, it should be ok. Please let me know if I can do anything to provide more data for this.
Delete
DELETE FROM "observability_group_o11y_settings"
WHERE "observability_group_o11y_settings"."id" = 1
Query plan: https://console.postgres.ai/gitlab/gitlab-production-main/sessions/41630/commands/127796 There are no records for this table in the database yet. Since this is accessing by the primary key ID, it should be ok. Please let me know if I can do anything to provide more data for this.
Screenshots or screen recordings
Before | After |
---|---|
![]() |
![]() |
After the settings have been set, this page looks like this:
How to set up and validate locally
MR acceptance checklist
Evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.