mirror of
https://github.com/xbgmsharp/postgsail.git
synced 2025-09-17 19:27:49 +00:00
Update grafana cron, Add keycloak provisioning to sync vessel_id as user attributs
This commit is contained in:
@@ -388,6 +388,8 @@ BEGIN
|
|||||||
-- Gather user settings
|
-- Gather user settings
|
||||||
user_settings := get_user_settings_from_vesselid_fn(data_rec.vessel_id::TEXT);
|
user_settings := get_user_settings_from_vesselid_fn(data_rec.vessel_id::TEXT);
|
||||||
RAISE DEBUG '-> DEBUG cron_process_grafana_fn get_user_settings_from_vesselid_fn [%]', user_settings;
|
RAISE DEBUG '-> DEBUG cron_process_grafana_fn get_user_settings_from_vesselid_fn [%]', user_settings;
|
||||||
|
-- add user in keycloak
|
||||||
|
PERFORM keycloak_auth_py_fn(data_rec.vessel_id, user_settings, app_settings);
|
||||||
-- Send notification
|
-- Send notification
|
||||||
PERFORM send_notification_fn('grafana'::TEXT, user_settings::JSONB);
|
PERFORM send_notification_fn('grafana'::TEXT, user_settings::JSONB);
|
||||||
-- update process_queue entry as processed
|
-- update process_queue entry as processed
|
||||||
|
Reference in New Issue
Block a user