From 6f539e353581f20c400ba8a52c164984dd7afb49 Mon Sep 17 00:00:00 2001 From: Soline Date: Wed, 23 Aug 2023 12:21:45 -0400 Subject: [PATCH] Disable(/Hide) account self-association from the settings page --- clockwork_web/templates/settings.html | 20 +++++++++++--------- slurm_state/mongo_update.py | 7 +++++-- 2 files changed, 16 insertions(+), 11 deletions(-) diff --git a/clockwork_web/templates/settings.html b/clockwork_web/templates/settings.html index 62dc0dd8..54b575cb 100644 --- a/clockwork_web/templates/settings.html +++ b/clockwork_web/templates/settings.html @@ -103,6 +103,7 @@

{{ gettext("User settings %(mila_email_username)s", mila_email_username=mila
+
diff --git a/slurm_state/mongo_update.py b/slurm_state/mongo_update.py index 3ca3943f..926b828c 100644 --- a/slurm_state/mongo_update.py +++ b/slurm_state/mongo_update.py @@ -374,9 +374,10 @@ def get_jobs_updates_and_insertions( ) # -- Account association -- # - L_users_updates = associate_account(LD_sacct) + # L_users_updates = associate_account(LD_sacct) - return (L_updates_to_do, L_users_updates, L_data_for_dump_file) + # return (L_updates_to_do, L_users_updates, L_data_for_dump_file) + return (L_updates_to_do, [], L_data_for_dump_file) def get_nodes_updates(I_clockwork_nodes): @@ -428,6 +429,7 @@ def get_nodes_updates(I_clockwork_nodes): return (L_updates_to_do, L_data_for_dump_file) +""" def associate_account(LD_sacct_jobs): L_user_updates = [] for D_job in LD_sacct_jobs: @@ -499,6 +501,7 @@ def associate_account(LD_sacct_jobs): ) return L_user_updates +""" def main_read_users_and_update_collection(