From 4694b2a7718eea6743646f61d172cd8cd8c0896b Mon Sep 17 00:00:00 2001 From: Ernad Husremovic Date: Sat, 30 Aug 2025 19:28:43 +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-barcodes/doc/DEPENDENCIES.md | 2 +- .../doc/DEPENDENCIES.md | 4 ++-- odoo-bringout-oca-ocb-calendar/doc/DEPENDENCIES.md | 4 ++-- odoo-bringout-oca-ocb-contacts/doc/DEPENDENCIES.md | 4 ++-- odoo-bringout-oca-ocb-iap/doc/DEPENDENCIES.md | 4 ++-- odoo-bringout-oca-ocb-iap_crm/doc/DEPENDENCIES.md | 4 ++-- odoo-bringout-oca-ocb-iap_mail/doc/DEPENDENCIES.md | 4 ++-- odoo-bringout-oca-ocb-note/doc/DEPENDENCIES.md | 2 +- 8 files changed, 14 insertions(+), 14 deletions(-) diff --git a/odoo-bringout-oca-ocb-barcodes/doc/DEPENDENCIES.md b/odoo-bringout-oca-ocb-barcodes/doc/DEPENDENCIES.md index bbedb1b..59559b2 100644 --- a/odoo-bringout-oca-ocb-barcodes/doc/DEPENDENCIES.md +++ b/odoo-bringout-oca-ocb-barcodes/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-barcodes_gs1_nomenclature/doc/DEPENDENCIES.md b/odoo-bringout-oca-ocb-barcodes_gs1_nomenclature/doc/DEPENDENCIES.md index 1e34cf2..bf4ab63 100644 --- a/odoo-bringout-oca-ocb-barcodes_gs1_nomenclature/doc/DEPENDENCIES.md +++ b/odoo-bringout-oca-ocb-barcodes_gs1_nomenclature/doc/DEPENDENCIES.md @@ -2,5 +2,5 @@ This addon depends on: -- [barcodes](https://github.com/bringout/oca-ocb-technical/tree/b2a91e3b975dae4980028dc64efeda7a6a77a647/odoo-bringout-oca-ocb-barcodes) -- [uom](https://github.com/bringout/oca-ocb-core/tree/156bd325ef4782b980ca23175711c453db07528e/odoo-bringout-oca-ocb-uom) +- [barcodes](https://github.com/bringout/oca-ocb-technical/tree/800a8ab35febbc905f0bbd27ff013f5d4f07acf5/odoo-bringout-oca-ocb-barcodes) +- [uom](https://github.com/bringout/oca-ocb-core/tree/9d67cf00c06114fd0d5a87a06a485b3dabf57e2b/odoo-bringout-oca-ocb-uom) diff --git a/odoo-bringout-oca-ocb-calendar/doc/DEPENDENCIES.md b/odoo-bringout-oca-ocb-calendar/doc/DEPENDENCIES.md index bc9e4bd..ea159bf 100644 --- a/odoo-bringout-oca-ocb-calendar/doc/DEPENDENCIES.md +++ b/odoo-bringout-oca-ocb-calendar/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-contacts/doc/DEPENDENCIES.md b/odoo-bringout-oca-ocb-contacts/doc/DEPENDENCIES.md index bc9e4bd..ea159bf 100644 --- a/odoo-bringout-oca-ocb-contacts/doc/DEPENDENCIES.md +++ b/odoo-bringout-oca-ocb-contacts/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-iap/doc/DEPENDENCIES.md b/odoo-bringout-oca-ocb-iap/doc/DEPENDENCIES.md index 5b5fcf2..fdab447 100644 --- a/odoo-bringout-oca-ocb-iap/doc/DEPENDENCIES.md +++ b/odoo-bringout-oca-ocb-iap/doc/DEPENDENCIES.md @@ -2,5 +2,5 @@ This addon depends on: -- [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) +- [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) diff --git a/odoo-bringout-oca-ocb-iap_crm/doc/DEPENDENCIES.md b/odoo-bringout-oca-ocb-iap_crm/doc/DEPENDENCIES.md index 20477c2..5bbe9d0 100644 --- a/odoo-bringout-oca-ocb-iap_crm/doc/DEPENDENCIES.md +++ b/odoo-bringout-oca-ocb-iap_crm/doc/DEPENDENCIES.md @@ -2,5 +2,5 @@ This addon depends on: -- [crm](https://github.com/bringout/oca-ocb-crm/tree/f57c024d38b5558f0e9ad32b1e05486b4c39cc36/odoo-bringout-oca-ocb-crm) -- [iap_mail](https://github.com/bringout/oca-ocb-technical/tree/b2a91e3b975dae4980028dc64efeda7a6a77a647/odoo-bringout-oca-ocb-iap_mail) +- [crm](https://github.com/bringout/oca-ocb-crm/tree/e1a65339b7c7a28040a72ff2de3a7891f54e21c9/odoo-bringout-oca-ocb-crm) +- [iap_mail](https://github.com/bringout/oca-ocb-technical/tree/800a8ab35febbc905f0bbd27ff013f5d4f07acf5/odoo-bringout-oca-ocb-iap_mail) diff --git a/odoo-bringout-oca-ocb-iap_mail/doc/DEPENDENCIES.md b/odoo-bringout-oca-ocb-iap_mail/doc/DEPENDENCIES.md index 1bfc84b..e0d083d 100644 --- a/odoo-bringout-oca-ocb-iap_mail/doc/DEPENDENCIES.md +++ b/odoo-bringout-oca-ocb-iap_mail/doc/DEPENDENCIES.md @@ -2,5 +2,5 @@ This addon depends on: -- [iap](https://github.com/bringout/oca-ocb-technical/tree/b2a91e3b975dae4980028dc64efeda7a6a77a647/odoo-bringout-oca-ocb-iap) -- [mail](https://github.com/bringout/oca-ocb-core/tree/156bd325ef4782b980ca23175711c453db07528e/odoo-bringout-oca-ocb-mail) +- [iap](https://github.com/bringout/oca-ocb-technical/tree/800a8ab35febbc905f0bbd27ff013f5d4f07acf5/odoo-bringout-oca-ocb-iap) +- [mail](https://github.com/bringout/oca-ocb-core/tree/9d67cf00c06114fd0d5a87a06a485b3dabf57e2b/odoo-bringout-oca-ocb-mail) diff --git a/odoo-bringout-oca-ocb-note/doc/DEPENDENCIES.md b/odoo-bringout-oca-ocb-note/doc/DEPENDENCIES.md index 5ab32fc..48b00e9 100644 --- a/odoo-bringout-oca-ocb-note/doc/DEPENDENCIES.md +++ b/odoo-bringout-oca-ocb-note/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)