From 6d2de194fb6942c53f4c2858f1e032ed076bdb65 Mon Sep 17 00:00:00 2001 From: Ernad Husremovic Date: Sat, 30 Aug 2025 19:28:46 +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-fleet/doc/DEPENDENCIES.md | 4 ++-- odoo-bringout-oca-ocb-gamification/doc/DEPENDENCIES.md | 4 ++-- odoo-bringout-oca-ocb-lunch/doc/DEPENDENCIES.md | 2 +- odoo-bringout-oca-ocb-maintenance/doc/DEPENDENCIES.md | 2 +- odoo-bringout-oca-ocb-membership/doc/DEPENDENCIES.md | 2 +- 5 files changed, 7 insertions(+), 7 deletions(-) diff --git a/odoo-bringout-oca-ocb-fleet/doc/DEPENDENCIES.md b/odoo-bringout-oca-ocb-fleet/doc/DEPENDENCIES.md index bc9e4bd..ea159bf 100644 --- a/odoo-bringout-oca-ocb-fleet/doc/DEPENDENCIES.md +++ b/odoo-bringout-oca-ocb-fleet/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) -- [mail](https://github.com/bringout/oca-ocb-core/tree/156bd325ef4782b980ca23175711c453db07528e/odoo-bringout-oca-ocb-mail) +- [base](https://github.com/bringout/oca-ocb-core/tree/9d67cf00c06114fd0d5a87a06a485b3dabf57e2b/odoo-bringout-oca-ocb-base) +- [mail](https://github.com/bringout/oca-ocb-core/tree/9d67cf00c06114fd0d5a87a06a485b3dabf57e2b/odoo-bringout-oca-ocb-mail) diff --git a/odoo-bringout-oca-ocb-gamification/doc/DEPENDENCIES.md b/odoo-bringout-oca-ocb-gamification/doc/DEPENDENCIES.md index 0a3c526..651787f 100644 --- a/odoo-bringout-oca-ocb-gamification/doc/DEPENDENCIES.md +++ b/odoo-bringout-oca-ocb-gamification/doc/DEPENDENCIES.md @@ -2,5 +2,5 @@ This addon depends on: -- [mail](https://github.com/bringout/oca-ocb-core/tree/156bd325ef4782b980ca23175711c453db07528e/odoo-bringout-oca-ocb-mail) -- [web_kanban_gauge](https://github.com/bringout/oca-ocb-web/tree/00a6994d033e4c605f58b875d71530d9614d9bab/odoo-bringout-oca-ocb-web_kanban_gauge) +- [mail](https://github.com/bringout/oca-ocb-core/tree/9d67cf00c06114fd0d5a87a06a485b3dabf57e2b/odoo-bringout-oca-ocb-mail) +- [web_kanban_gauge](https://github.com/bringout/oca-ocb-web/tree/573c5dd25aad276b803e5238d2bca395e0599023/odoo-bringout-oca-ocb-web_kanban_gauge) diff --git a/odoo-bringout-oca-ocb-lunch/doc/DEPENDENCIES.md b/odoo-bringout-oca-ocb-lunch/doc/DEPENDENCIES.md index 5ab32fc..48b00e9 100644 --- a/odoo-bringout-oca-ocb-lunch/doc/DEPENDENCIES.md +++ b/odoo-bringout-oca-ocb-lunch/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-maintenance/doc/DEPENDENCIES.md b/odoo-bringout-oca-ocb-maintenance/doc/DEPENDENCIES.md index 5ab32fc..48b00e9 100644 --- a/odoo-bringout-oca-ocb-maintenance/doc/DEPENDENCIES.md +++ b/odoo-bringout-oca-ocb-maintenance/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-membership/doc/DEPENDENCIES.md b/odoo-bringout-oca-ocb-membership/doc/DEPENDENCIES.md index bbfa912..20334f3 100644 --- a/odoo-bringout-oca-ocb-membership/doc/DEPENDENCIES.md +++ b/odoo-bringout-oca-ocb-membership/doc/DEPENDENCIES.md @@ -2,4 +2,4 @@ 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)