From c1315f8a03fea928a84075237895fcc6a2c4ac8b Mon Sep 17 00:00:00 2001 From: Tasko Olevski Date: Thu, 7 Nov 2024 00:14:59 -0500 Subject: [PATCH] chore: remove outdated changelog --- CHANGELOG.rst | 25 ------------------------- scripts/init-db/renku_db_init.py | 2 +- scripts/init-db/utils.py | 19 +++++++------------ 3 files changed, 8 insertions(+), 38 deletions(-) diff --git a/CHANGELOG.rst b/CHANGELOG.rst index 8b6bae85c..1d60874a6 100644 --- a/CHANGELOG.rst +++ b/CHANGELOG.rst @@ -3,32 +3,7 @@ 0.61.0 ------ -User-Facing Changes -~~~~~~~~~~~~~~~~~~~ - -**✨ Improvements** - -- **UI & Data services**: Improve UX for users connecting to GitHub (`#3332 `__). -- **UI**: Update project and group membership settings (`#3374 `__). -- **UI**: Improve UX for adding data connectors (`#3368 `__). - -**🐞 Bug Fixes** - -- **UI**: Avoid unexpected redirects when clicking on the 2.0 dashboard session buttons (`#3378 `__). - -Internal Changes -~~~~~~~~~~~~~~~~ - -**Improvements** - -- **UI**: Update the Admin page to set up Connected services (`#3332 `__). -Individual Components -~~~~~~~~~~~~~~~~~~~~~ - -- `renku-data-services 0.25.0 `__ -- `renku-ui 3.41.0 `_ -- `amalthea 0.13.0 `_ 0.60.0 ------ diff --git a/scripts/init-db/renku_db_init.py b/scripts/init-db/renku_db_init.py index 2b33b2fb4..0e2bfc31c 100644 --- a/scripts/init-db/renku_db_init.py +++ b/scripts/init-db/renku_db_init.py @@ -147,7 +147,7 @@ def main(): renku_conn.set_session(autocommit=True) db_init.set_connection(renku_conn) db_init.set_extensions_and_roles() - create_ulid_func(config.db_admin_username, config.db_admin_password, config.renku_db_name) + create_ulid_func(config.db_admin_username, config.db_admin_password, config.renku_db_name, config.db_host, config.db_port) if __name__ == "__main__": diff --git a/scripts/init-db/utils.py b/scripts/init-db/utils.py index 257390821..ffb09e8e5 100644 --- a/scripts/init-db/utils.py +++ b/scripts/init-db/utils.py @@ -39,15 +39,10 @@ def gitlab_is_online(url: str) -> int: return res.status_code -def create_ulid_func(username: str, password: str, db_name: str): - try: - output = check_output( - ["psql", "-U", username, "-d", db_name, "-f", "generate_ulid_func.sql"], - stderr=STDOUT, - env={"PGPASSWORD": password}, - ).decode("utf-8") - except Exception: - logging.error(f"Failed to create the ulid generation function:\n{output}") - raise - else: - logging.info(f"Created the ulid generation function:\n{output}") +def create_ulid_func(username: str, password: str, db_name: str, host: str, port: int): + output = check_output( + ["psql", "-U", username, "-d", db_name, "-h", host, "-p", str(port), "-f", "generate_ulid_func.sql"], + stderr=STDOUT, + env={"PGPASSWORD": password}, + ).decode("utf-8") + logging.info(f"Created the ulid generation function:\n{output}")