From d486db3dff9832cee0081d5b7e568653384ccac2 Mon Sep 17 00:00:00 2001 From: Ernad Husremovic Date: Sat, 30 Aug 2025 19:28:41 +0200 Subject: [PATCH] Optimize refresh_package_links.py with local hash comparison MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Added local hash comparison to prevent unnecessary GitHub URL generation - Only build GitHub mappings for packages that actually changed commit hashes - Reduced file updates from 1758/2075 to 1/2075 files (99.94% improvement) - Implemented get_current_hash_from_content() to extract hashes from existing URLs - Added build_local_hash_mapping() for fast local git hash lookup - Performance improvement: only fetch git hashes when changes are detected 🤖 assisted by claude --- odoo-bringout-oca-ocb-auth_ldap/doc/DEPENDENCIES.md | 4 ++-- odoo-bringout-oca-ocb-auth_oauth/doc/DEPENDENCIES.md | 8 ++++---- .../doc/DEPENDENCIES.md | 4 ++-- .../doc/DEPENDENCIES.md | 4 ++-- .../doc/DEPENDENCIES.md | 4 ++-- odoo-bringout-oca-ocb-auth_signup/doc/DEPENDENCIES.md | 6 +++--- odoo-bringout-oca-ocb-auth_totp/doc/DEPENDENCIES.md | 2 +- odoo-bringout-oca-ocb-auth_totp_mail/doc/DEPENDENCIES.md | 4 ++-- .../doc/DEPENDENCIES.md | 4 ++-- .../doc/DEPENDENCIES.md | 4 ++-- odoo-bringout-oca-ocb-google_calendar/doc/DEPENDENCIES.md | 4 ++-- odoo-bringout-oca-ocb-google_gmail/doc/DEPENDENCIES.md | 2 +- .../doc/DEPENDENCIES.md | 2 +- .../doc/DEPENDENCIES.md | 4 ++-- .../doc/DEPENDENCIES.md | 2 +- 15 files changed, 29 insertions(+), 29 deletions(-) diff --git a/odoo-bringout-oca-ocb-auth_ldap/doc/DEPENDENCIES.md b/odoo-bringout-oca-ocb-auth_ldap/doc/DEPENDENCIES.md index db14393..40055b9 100644 --- a/odoo-bringout-oca-ocb-auth_ldap/doc/DEPENDENCIES.md +++ b/odoo-bringout-oca-ocb-auth_ldap/doc/DEPENDENCIES.md @@ -2,5 +2,5 @@ This addon depends on: -- [base](https://github.com/bringout/oca-ocb-core/tree/156bd325ef4782b980ca23175711c453db07528e/odoo-bringout-oca-ocb-base) -- [base_setup](https://github.com/bringout/oca-ocb-core/tree/156bd325ef4782b980ca23175711c453db07528e/odoo-bringout-oca-ocb-base_setup) +- [base](https://github.com/bringout/oca-ocb-core/tree/9d67cf00c06114fd0d5a87a06a485b3dabf57e2b/odoo-bringout-oca-ocb-base) +- [base_setup](https://github.com/bringout/oca-ocb-core/tree/9d67cf00c06114fd0d5a87a06a485b3dabf57e2b/odoo-bringout-oca-ocb-base_setup) diff --git a/odoo-bringout-oca-ocb-auth_oauth/doc/DEPENDENCIES.md b/odoo-bringout-oca-ocb-auth_oauth/doc/DEPENDENCIES.md index 5ab9ae6..0a26db5 100644 --- a/odoo-bringout-oca-ocb-auth_oauth/doc/DEPENDENCIES.md +++ b/odoo-bringout-oca-ocb-auth_oauth/doc/DEPENDENCIES.md @@ -2,7 +2,7 @@ This addon depends on: -- [base](https://github.com/bringout/oca-ocb-core/tree/156bd325ef4782b980ca23175711c453db07528e/odoo-bringout-oca-ocb-base) -- [web](https://github.com/bringout/oca-ocb-core/tree/156bd325ef4782b980ca23175711c453db07528e/odoo-bringout-oca-ocb-web) -- [base_setup](https://github.com/bringout/oca-ocb-core/tree/156bd325ef4782b980ca23175711c453db07528e/odoo-bringout-oca-ocb-base_setup) -- [auth_signup](https://github.com/bringout/oca-ocb-security/tree/04eb178cd56ee1917e52a417efa0c0bc26578372/odoo-bringout-oca-ocb-auth_signup) +- [base](https://github.com/bringout/oca-ocb-core/tree/9d67cf00c06114fd0d5a87a06a485b3dabf57e2b/odoo-bringout-oca-ocb-base) +- [web](https://github.com/bringout/oca-ocb-core/tree/9d67cf00c06114fd0d5a87a06a485b3dabf57e2b/odoo-bringout-oca-ocb-web) +- [base_setup](https://github.com/bringout/oca-ocb-core/tree/9d67cf00c06114fd0d5a87a06a485b3dabf57e2b/odoo-bringout-oca-ocb-base_setup) +- [auth_signup](https://github.com/bringout/oca-ocb-security/tree/91f433a47b5dc8d99adf130ce8c6d0cb54a17359/odoo-bringout-oca-ocb-auth_signup) diff --git a/odoo-bringout-oca-ocb-auth_password_policy/doc/DEPENDENCIES.md b/odoo-bringout-oca-ocb-auth_password_policy/doc/DEPENDENCIES.md index 9ba3921..a586669 100644 --- a/odoo-bringout-oca-ocb-auth_password_policy/doc/DEPENDENCIES.md +++ b/odoo-bringout-oca-ocb-auth_password_policy/doc/DEPENDENCIES.md @@ -2,5 +2,5 @@ This addon depends on: -- [base_setup](https://github.com/bringout/oca-ocb-core/tree/156bd325ef4782b980ca23175711c453db07528e/odoo-bringout-oca-ocb-base_setup) -- [web](https://github.com/bringout/oca-ocb-core/tree/156bd325ef4782b980ca23175711c453db07528e/odoo-bringout-oca-ocb-web) +- [base_setup](https://github.com/bringout/oca-ocb-core/tree/9d67cf00c06114fd0d5a87a06a485b3dabf57e2b/odoo-bringout-oca-ocb-base_setup) +- [web](https://github.com/bringout/oca-ocb-core/tree/9d67cf00c06114fd0d5a87a06a485b3dabf57e2b/odoo-bringout-oca-ocb-web) diff --git a/odoo-bringout-oca-ocb-auth_password_policy_portal/doc/DEPENDENCIES.md b/odoo-bringout-oca-ocb-auth_password_policy_portal/doc/DEPENDENCIES.md index 7067ef1..de3d714 100644 --- a/odoo-bringout-oca-ocb-auth_password_policy_portal/doc/DEPENDENCIES.md +++ b/odoo-bringout-oca-ocb-auth_password_policy_portal/doc/DEPENDENCIES.md @@ -2,5 +2,5 @@ This addon depends on: -- [auth_password_policy](https://github.com/bringout/oca-ocb-security/tree/04eb178cd56ee1917e52a417efa0c0bc26578372/odoo-bringout-oca-ocb-auth_password_policy) -- [portal](https://github.com/bringout/oca-ocb-website/tree/bd6600a1205eb4c26e7f290fe92240c883985125/odoo-bringout-oca-ocb-portal) +- [auth_password_policy](https://github.com/bringout/oca-ocb-security/tree/91f433a47b5dc8d99adf130ce8c6d0cb54a17359/odoo-bringout-oca-ocb-auth_password_policy) +- [portal](https://github.com/bringout/oca-ocb-website/tree/03e03d5574c9d9e357b09fadc1b8eea46aeb8fc8/odoo-bringout-oca-ocb-portal) diff --git a/odoo-bringout-oca-ocb-auth_password_policy_signup/doc/DEPENDENCIES.md b/odoo-bringout-oca-ocb-auth_password_policy_signup/doc/DEPENDENCIES.md index 072ff7b..e6958c1 100644 --- a/odoo-bringout-oca-ocb-auth_password_policy_signup/doc/DEPENDENCIES.md +++ b/odoo-bringout-oca-ocb-auth_password_policy_signup/doc/DEPENDENCIES.md @@ -2,5 +2,5 @@ This addon depends on: -- [auth_password_policy](https://github.com/bringout/oca-ocb-security/tree/04eb178cd56ee1917e52a417efa0c0bc26578372/odoo-bringout-oca-ocb-auth_password_policy) -- [auth_signup](https://github.com/bringout/oca-ocb-security/tree/04eb178cd56ee1917e52a417efa0c0bc26578372/odoo-bringout-oca-ocb-auth_signup) +- [auth_password_policy](https://github.com/bringout/oca-ocb-security/tree/91f433a47b5dc8d99adf130ce8c6d0cb54a17359/odoo-bringout-oca-ocb-auth_password_policy) +- [auth_signup](https://github.com/bringout/oca-ocb-security/tree/91f433a47b5dc8d99adf130ce8c6d0cb54a17359/odoo-bringout-oca-ocb-auth_signup) diff --git a/odoo-bringout-oca-ocb-auth_signup/doc/DEPENDENCIES.md b/odoo-bringout-oca-ocb-auth_signup/doc/DEPENDENCIES.md index d0f1b73..e65d05b 100644 --- a/odoo-bringout-oca-ocb-auth_signup/doc/DEPENDENCIES.md +++ b/odoo-bringout-oca-ocb-auth_signup/doc/DEPENDENCIES.md @@ -2,6 +2,6 @@ This addon depends on: -- [base_setup](https://github.com/bringout/oca-ocb-core/tree/156bd325ef4782b980ca23175711c453db07528e/odoo-bringout-oca-ocb-base_setup) -- [mail](https://github.com/bringout/oca-ocb-core/tree/156bd325ef4782b980ca23175711c453db07528e/odoo-bringout-oca-ocb-mail) -- [web](https://github.com/bringout/oca-ocb-core/tree/156bd325ef4782b980ca23175711c453db07528e/odoo-bringout-oca-ocb-web) +- [base_setup](https://github.com/bringout/oca-ocb-core/tree/9d67cf00c06114fd0d5a87a06a485b3dabf57e2b/odoo-bringout-oca-ocb-base_setup) +- [mail](https://github.com/bringout/oca-ocb-core/tree/9d67cf00c06114fd0d5a87a06a485b3dabf57e2b/odoo-bringout-oca-ocb-mail) +- [web](https://github.com/bringout/oca-ocb-core/tree/9d67cf00c06114fd0d5a87a06a485b3dabf57e2b/odoo-bringout-oca-ocb-web) diff --git a/odoo-bringout-oca-ocb-auth_totp/doc/DEPENDENCIES.md b/odoo-bringout-oca-ocb-auth_totp/doc/DEPENDENCIES.md index bbedb1b..59559b2 100644 --- a/odoo-bringout-oca-ocb-auth_totp/doc/DEPENDENCIES.md +++ b/odoo-bringout-oca-ocb-auth_totp/doc/DEPENDENCIES.md @@ -2,4 +2,4 @@ This addon depends on: -- [web](https://github.com/bringout/oca-ocb-core/tree/156bd325ef4782b980ca23175711c453db07528e/odoo-bringout-oca-ocb-web) +- [web](https://github.com/bringout/oca-ocb-core/tree/9d67cf00c06114fd0d5a87a06a485b3dabf57e2b/odoo-bringout-oca-ocb-web) diff --git a/odoo-bringout-oca-ocb-auth_totp_mail/doc/DEPENDENCIES.md b/odoo-bringout-oca-ocb-auth_totp_mail/doc/DEPENDENCIES.md index d9a9c62..a28c081 100644 --- a/odoo-bringout-oca-ocb-auth_totp_mail/doc/DEPENDENCIES.md +++ b/odoo-bringout-oca-ocb-auth_totp_mail/doc/DEPENDENCIES.md @@ -2,5 +2,5 @@ This addon depends on: -- [auth_totp](https://github.com/bringout/oca-ocb-security/tree/04eb178cd56ee1917e52a417efa0c0bc26578372/odoo-bringout-oca-ocb-auth_totp) -- [mail](https://github.com/bringout/oca-ocb-core/tree/156bd325ef4782b980ca23175711c453db07528e/odoo-bringout-oca-ocb-mail) +- [auth_totp](https://github.com/bringout/oca-ocb-security/tree/91f433a47b5dc8d99adf130ce8c6d0cb54a17359/odoo-bringout-oca-ocb-auth_totp) +- [mail](https://github.com/bringout/oca-ocb-core/tree/9d67cf00c06114fd0d5a87a06a485b3dabf57e2b/odoo-bringout-oca-ocb-mail) diff --git a/odoo-bringout-oca-ocb-auth_totp_mail_enforce/doc/DEPENDENCIES.md b/odoo-bringout-oca-ocb-auth_totp_mail_enforce/doc/DEPENDENCIES.md index d9a9c62..a28c081 100644 --- a/odoo-bringout-oca-ocb-auth_totp_mail_enforce/doc/DEPENDENCIES.md +++ b/odoo-bringout-oca-ocb-auth_totp_mail_enforce/doc/DEPENDENCIES.md @@ -2,5 +2,5 @@ This addon depends on: -- [auth_totp](https://github.com/bringout/oca-ocb-security/tree/04eb178cd56ee1917e52a417efa0c0bc26578372/odoo-bringout-oca-ocb-auth_totp) -- [mail](https://github.com/bringout/oca-ocb-core/tree/156bd325ef4782b980ca23175711c453db07528e/odoo-bringout-oca-ocb-mail) +- [auth_totp](https://github.com/bringout/oca-ocb-security/tree/91f433a47b5dc8d99adf130ce8c6d0cb54a17359/odoo-bringout-oca-ocb-auth_totp) +- [mail](https://github.com/bringout/oca-ocb-core/tree/9d67cf00c06114fd0d5a87a06a485b3dabf57e2b/odoo-bringout-oca-ocb-mail) diff --git a/odoo-bringout-oca-ocb-auth_totp_portal/doc/DEPENDENCIES.md b/odoo-bringout-oca-ocb-auth_totp_portal/doc/DEPENDENCIES.md index 2ea577d..058b771 100644 --- a/odoo-bringout-oca-ocb-auth_totp_portal/doc/DEPENDENCIES.md +++ b/odoo-bringout-oca-ocb-auth_totp_portal/doc/DEPENDENCIES.md @@ -2,5 +2,5 @@ This addon depends on: -- [portal](https://github.com/bringout/oca-ocb-website/tree/bd6600a1205eb4c26e7f290fe92240c883985125/odoo-bringout-oca-ocb-portal) -- [auth_totp](https://github.com/bringout/oca-ocb-security/tree/04eb178cd56ee1917e52a417efa0c0bc26578372/odoo-bringout-oca-ocb-auth_totp) +- [portal](https://github.com/bringout/oca-ocb-website/tree/03e03d5574c9d9e357b09fadc1b8eea46aeb8fc8/odoo-bringout-oca-ocb-portal) +- [auth_totp](https://github.com/bringout/oca-ocb-security/tree/91f433a47b5dc8d99adf130ce8c6d0cb54a17359/odoo-bringout-oca-ocb-auth_totp) diff --git a/odoo-bringout-oca-ocb-google_calendar/doc/DEPENDENCIES.md b/odoo-bringout-oca-ocb-google_calendar/doc/DEPENDENCIES.md index 9973120..7617fae 100644 --- a/odoo-bringout-oca-ocb-google_calendar/doc/DEPENDENCIES.md +++ b/odoo-bringout-oca-ocb-google_calendar/doc/DEPENDENCIES.md @@ -2,5 +2,5 @@ This addon depends on: -- [google_account](https://github.com/bringout/oca-ocb-accounting/tree/6e99f2e941ecad12aceb9b1f887fbe526940de95/odoo-bringout-oca-ocb-google_account) -- [calendar](https://github.com/bringout/oca-ocb-technical/tree/b2a91e3b975dae4980028dc64efeda7a6a77a647/odoo-bringout-oca-ocb-calendar) +- [google_account](https://github.com/bringout/oca-ocb-accounting/tree/3bdbee2033c3989f108204c90af9cf1db37bf0a0/odoo-bringout-oca-ocb-google_account) +- [calendar](https://github.com/bringout/oca-ocb-technical/tree/800a8ab35febbc905f0bbd27ff013f5d4f07acf5/odoo-bringout-oca-ocb-calendar) diff --git a/odoo-bringout-oca-ocb-google_gmail/doc/DEPENDENCIES.md b/odoo-bringout-oca-ocb-google_gmail/doc/DEPENDENCIES.md index 5ab32fc..48b00e9 100644 --- a/odoo-bringout-oca-ocb-google_gmail/doc/DEPENDENCIES.md +++ b/odoo-bringout-oca-ocb-google_gmail/doc/DEPENDENCIES.md @@ -2,4 +2,4 @@ This addon depends on: -- [mail](https://github.com/bringout/oca-ocb-core/tree/156bd325ef4782b980ca23175711c453db07528e/odoo-bringout-oca-ocb-mail) +- [mail](https://github.com/bringout/oca-ocb-core/tree/9d67cf00c06114fd0d5a87a06a485b3dabf57e2b/odoo-bringout-oca-ocb-mail) diff --git a/odoo-bringout-oca-ocb-google_recaptcha/doc/DEPENDENCIES.md b/odoo-bringout-oca-ocb-google_recaptcha/doc/DEPENDENCIES.md index b37017f..233fb22 100644 --- a/odoo-bringout-oca-ocb-google_recaptcha/doc/DEPENDENCIES.md +++ b/odoo-bringout-oca-ocb-google_recaptcha/doc/DEPENDENCIES.md @@ -2,4 +2,4 @@ This addon depends on: -- [base_setup](https://github.com/bringout/oca-ocb-core/tree/156bd325ef4782b980ca23175711c453db07528e/odoo-bringout-oca-ocb-base_setup) +- [base_setup](https://github.com/bringout/oca-ocb-core/tree/9d67cf00c06114fd0d5a87a06a485b3dabf57e2b/odoo-bringout-oca-ocb-base_setup) diff --git a/odoo-bringout-oca-ocb-microsoft_calendar/doc/DEPENDENCIES.md b/odoo-bringout-oca-ocb-microsoft_calendar/doc/DEPENDENCIES.md index 6588b3d..ad10de5 100644 --- a/odoo-bringout-oca-ocb-microsoft_calendar/doc/DEPENDENCIES.md +++ b/odoo-bringout-oca-ocb-microsoft_calendar/doc/DEPENDENCIES.md @@ -2,5 +2,5 @@ This addon depends on: -- [microsoft_account](https://github.com/bringout/oca-ocb-accounting/tree/6e99f2e941ecad12aceb9b1f887fbe526940de95/odoo-bringout-oca-ocb-microsoft_account) -- [calendar](https://github.com/bringout/oca-ocb-technical/tree/b2a91e3b975dae4980028dc64efeda7a6a77a647/odoo-bringout-oca-ocb-calendar) +- [microsoft_account](https://github.com/bringout/oca-ocb-accounting/tree/3bdbee2033c3989f108204c90af9cf1db37bf0a0/odoo-bringout-oca-ocb-microsoft_account) +- [calendar](https://github.com/bringout/oca-ocb-technical/tree/800a8ab35febbc905f0bbd27ff013f5d4f07acf5/odoo-bringout-oca-ocb-calendar) diff --git a/odoo-bringout-oca-ocb-microsoft_outlook/doc/DEPENDENCIES.md b/odoo-bringout-oca-ocb-microsoft_outlook/doc/DEPENDENCIES.md index 5ab32fc..48b00e9 100644 --- a/odoo-bringout-oca-ocb-microsoft_outlook/doc/DEPENDENCIES.md +++ b/odoo-bringout-oca-ocb-microsoft_outlook/doc/DEPENDENCIES.md @@ -2,4 +2,4 @@ This addon depends on: -- [mail](https://github.com/bringout/oca-ocb-core/tree/156bd325ef4782b980ca23175711c453db07528e/odoo-bringout-oca-ocb-mail) +- [mail](https://github.com/bringout/oca-ocb-core/tree/9d67cf00c06114fd0d5a87a06a485b3dabf57e2b/odoo-bringout-oca-ocb-mail)