From b02abf5667ee77c7bb75f0fc96a520d6c1f80ec6 Mon Sep 17 00:00:00 2001 From: Ernad Husremovic Date: Sat, 30 Aug 2025 19:28:49 +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-web_editor/doc/DEPENDENCIES.md | 4 ++-- odoo-bringout-oca-ocb-web_kanban_gauge/doc/DEPENDENCIES.md | 2 +- odoo-bringout-oca-ocb-web_tour/doc/DEPENDENCIES.md | 2 +- odoo-bringout-oca-ocb-web_unsplash/doc/DEPENDENCIES.md | 4 ++-- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/odoo-bringout-oca-ocb-web_editor/doc/DEPENDENCIES.md b/odoo-bringout-oca-ocb-web_editor/doc/DEPENDENCIES.md index b881e93..f950829 100644 --- a/odoo-bringout-oca-ocb-web_editor/doc/DEPENDENCIES.md +++ b/odoo-bringout-oca-ocb-web_editor/doc/DEPENDENCIES.md @@ -2,5 +2,5 @@ This addon depends on: -- [bus](https://github.com/bringout/oca-ocb-core/tree/156bd325ef4782b980ca23175711c453db07528e/odoo-bringout-oca-ocb-bus) -- [web](https://github.com/bringout/oca-ocb-core/tree/156bd325ef4782b980ca23175711c453db07528e/odoo-bringout-oca-ocb-web) +- [bus](https://github.com/bringout/oca-ocb-core/tree/9d67cf00c06114fd0d5a87a06a485b3dabf57e2b/odoo-bringout-oca-ocb-bus) +- [web](https://github.com/bringout/oca-ocb-core/tree/9d67cf00c06114fd0d5a87a06a485b3dabf57e2b/odoo-bringout-oca-ocb-web) diff --git a/odoo-bringout-oca-ocb-web_kanban_gauge/doc/DEPENDENCIES.md b/odoo-bringout-oca-ocb-web_kanban_gauge/doc/DEPENDENCIES.md index bbedb1b..59559b2 100644 --- a/odoo-bringout-oca-ocb-web_kanban_gauge/doc/DEPENDENCIES.md +++ b/odoo-bringout-oca-ocb-web_kanban_gauge/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-web_tour/doc/DEPENDENCIES.md b/odoo-bringout-oca-ocb-web_tour/doc/DEPENDENCIES.md index bbedb1b..59559b2 100644 --- a/odoo-bringout-oca-ocb-web_tour/doc/DEPENDENCIES.md +++ b/odoo-bringout-oca-ocb-web_tour/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-web_unsplash/doc/DEPENDENCIES.md b/odoo-bringout-oca-ocb-web_unsplash/doc/DEPENDENCIES.md index 9d3a490..089403e 100644 --- a/odoo-bringout-oca-ocb-web_unsplash/doc/DEPENDENCIES.md +++ b/odoo-bringout-oca-ocb-web_unsplash/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_editor](https://github.com/bringout/oca-ocb-web/tree/00a6994d033e4c605f58b875d71530d9614d9bab/odoo-bringout-oca-ocb-web_editor) +- [base_setup](https://github.com/bringout/oca-ocb-core/tree/9d67cf00c06114fd0d5a87a06a485b3dabf57e2b/odoo-bringout-oca-ocb-base_setup) +- [web_editor](https://github.com/bringout/oca-ocb-web/tree/573c5dd25aad276b803e5238d2bca395e0599023/odoo-bringout-oca-ocb-web_editor)