From e7c2a1eae628566d74d4a8499ec5193b2b990ccd Mon Sep 17 00:00:00 2001 From: Ernad Husremovic Date: Sat, 30 Aug 2025 19:28:09 +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 --- .../doc/DEPENDENCIES.md | 2 +- odoo-bringout-oca-dms-dms/doc/DEPENDENCIES.md | 8 ++++---- odoo-bringout-oca-dms-hr_dms_field/doc/DEPENDENCIES.md | 2 +- .../doc/DEPENDENCIES.md | 2 +- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/odoo-bringout-oca-dms-account_dms_field/doc/DEPENDENCIES.md b/odoo-bringout-oca-dms-account_dms_field/doc/DEPENDENCIES.md index e380a46..55ae773 100644 --- a/odoo-bringout-oca-dms-account_dms_field/doc/DEPENDENCIES.md +++ b/odoo-bringout-oca-dms-account_dms_field/doc/DEPENDENCIES.md @@ -2,5 +2,5 @@ This addon depends on: -- [account](https://github.com/bringout/oca-ocb-accounting/tree/6e99f2e941ecad12aceb9b1f887fbe526940de95/odoo-bringout-oca-ocb-account) +- [account](https://github.com/bringout/oca-ocb-accounting/tree/3bdbee2033c3989f108204c90af9cf1db37bf0a0/odoo-bringout-oca-ocb-account) - [dms_field](https://github.com/bringout/oca-technical) diff --git a/odoo-bringout-oca-dms-dms/doc/DEPENDENCIES.md b/odoo-bringout-oca-dms-dms/doc/DEPENDENCIES.md index 703924c..c9693e9 100644 --- a/odoo-bringout-oca-dms-dms/doc/DEPENDENCIES.md +++ b/odoo-bringout-oca-dms-dms/doc/DEPENDENCIES.md @@ -2,7 +2,7 @@ This addon depends on: -- [mail](https://github.com/bringout/oca-ocb-core/tree/156bd325ef4782b980ca23175711c453db07528e/odoo-bringout-oca-ocb-mail) -- [http_routing](https://github.com/bringout/oca-ocb-core/tree/156bd325ef4782b980ca23175711c453db07528e/odoo-bringout-oca-ocb-http_routing) -- [portal](https://github.com/bringout/oca-ocb-website/tree/bd6600a1205eb4c26e7f290fe92240c883985125/odoo-bringout-oca-ocb-portal) -- [base](https://github.com/bringout/oca-ocb-core/tree/156bd325ef4782b980ca23175711c453db07528e/odoo-bringout-oca-ocb-base) +- [mail](https://github.com/bringout/oca-ocb-core/tree/9d67cf00c06114fd0d5a87a06a485b3dabf57e2b/odoo-bringout-oca-ocb-mail) +- [http_routing](https://github.com/bringout/oca-ocb-core/tree/9d67cf00c06114fd0d5a87a06a485b3dabf57e2b/odoo-bringout-oca-ocb-http_routing) +- [portal](https://github.com/bringout/oca-ocb-website/tree/03e03d5574c9d9e357b09fadc1b8eea46aeb8fc8/odoo-bringout-oca-ocb-portal) +- [base](https://github.com/bringout/oca-ocb-core/tree/9d67cf00c06114fd0d5a87a06a485b3dabf57e2b/odoo-bringout-oca-ocb-base) diff --git a/odoo-bringout-oca-dms-hr_dms_field/doc/DEPENDENCIES.md b/odoo-bringout-oca-dms-hr_dms_field/doc/DEPENDENCIES.md index 6bda7a3..a021c7c 100644 --- a/odoo-bringout-oca-dms-hr_dms_field/doc/DEPENDENCIES.md +++ b/odoo-bringout-oca-dms-hr_dms_field/doc/DEPENDENCIES.md @@ -2,5 +2,5 @@ This addon depends on: -- [hr](https://github.com/bringout/oca-ocb-hr/tree/7056a6865f6bd273a5c4cfc973b3c7a819ee6af0/odoo-bringout-oca-ocb-hr) +- [hr](https://github.com/bringout/oca-ocb-hr/tree/7fb3fb6283239c624dcbacc56df725f7a52d28aa/odoo-bringout-oca-ocb-hr) - [dms_field](https://github.com/bringout/oca-technical) diff --git a/odoo-bringout-oca-dms-web_editor_media_dialog_dms/doc/DEPENDENCIES.md b/odoo-bringout-oca-dms-web_editor_media_dialog_dms/doc/DEPENDENCIES.md index 58ffc01..b6a4e03 100644 --- a/odoo-bringout-oca-dms-web_editor_media_dialog_dms/doc/DEPENDENCIES.md +++ b/odoo-bringout-oca-dms-web_editor_media_dialog_dms/doc/DEPENDENCIES.md @@ -3,4 +3,4 @@ This addon depends on: - [dms](https://github.com/bringout/oca-technical) -- [web_editor](https://github.com/bringout/oca-ocb-web/tree/00a6994d033e4c605f58b875d71530d9614d9bab/odoo-bringout-oca-ocb-web_editor) +- [web_editor](https://github.com/bringout/oca-ocb-web/tree/573c5dd25aad276b803e5238d2bca395e0599023/odoo-bringout-oca-ocb-web_editor)