From 79fa6f262ba26295df0ce98d063a3522b3084a8c Mon Sep 17 00:00:00 2001 From: Ernad Husremovic Date: Sat, 30 Aug 2025 19:29:47 +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-ventor-outgoing_routing/doc/DEPENDENCIES.md | 6 +++--- .../doc/DEPENDENCIES.md | 8 ++++---- odoo-bringout-ventor-ventor_base/doc/DEPENDENCIES.md | 6 +++--- 3 files changed, 10 insertions(+), 10 deletions(-) diff --git a/odoo-bringout-ventor-outgoing_routing/doc/DEPENDENCIES.md b/odoo-bringout-ventor-outgoing_routing/doc/DEPENDENCIES.md index b024cd1..e575bf8 100644 --- a/odoo-bringout-ventor-outgoing_routing/doc/DEPENDENCIES.md +++ b/odoo-bringout-ventor-outgoing_routing/doc/DEPENDENCIES.md @@ -2,6 +2,6 @@ This addon depends on: -- [sale_management](https://github.com/bringout/oca-ocb-sale/tree/cfc4dbeb59ab3594bd1aa8f3bb16a1ee00557b4d/odoo-bringout-oca-ocb-sale_management) -- [stock_picking_batch](https://github.com/bringout/oca-ocb-warehouse/tree/ffbc26923f1cbb52ea57b79a3bc1781623af2ae9/odoo-bringout-oca-ocb-stock_picking_batch) -- [ventor_base](https://github.com/bringout/ventor/tree/2c3ce1d0bffd6edafe67e0732202290dd88375a0/odoo-bringout-ventor-ventor_base) +- [sale_management](https://github.com/bringout/oca-ocb-sale/tree/5d9b47ce90463a1c61e6fb80db86d42fb811e501/odoo-bringout-oca-ocb-sale_management) +- [stock_picking_batch](https://github.com/bringout/oca-ocb-warehouse/tree/1135de9279731def9c756b5192f8860b5a0e7e59/odoo-bringout-oca-ocb-stock_picking_batch) +- [ventor_base](https://github.com/bringout/ventor/tree/deca37344a36c04c89ae7ddf252d9318ec2d2f3c/odoo-bringout-ventor-ventor_base) diff --git a/odoo-bringout-ventor-product_multiple_barcodes/doc/DEPENDENCIES.md b/odoo-bringout-ventor-product_multiple_barcodes/doc/DEPENDENCIES.md index 1db93b9..aedb5e7 100644 --- a/odoo-bringout-ventor-product_multiple_barcodes/doc/DEPENDENCIES.md +++ b/odoo-bringout-ventor-product_multiple_barcodes/doc/DEPENDENCIES.md @@ -2,7 +2,7 @@ This addon depends on: -- [product](https://github.com/bringout/oca-ocb-sale/tree/cfc4dbeb59ab3594bd1aa8f3bb16a1ee00557b4d/odoo-bringout-oca-ocb-product) -- [sale](https://github.com/bringout/oca-ocb-sale/tree/cfc4dbeb59ab3594bd1aa8f3bb16a1ee00557b4d/odoo-bringout-oca-ocb-sale) -- [purchase](https://github.com/bringout/oca-ocb-core/tree/156bd325ef4782b980ca23175711c453db07528e/odoo-bringout-oca-ocb-purchase) -- [stock](https://github.com/bringout/oca-ocb-warehouse/tree/ffbc26923f1cbb52ea57b79a3bc1781623af2ae9/odoo-bringout-oca-ocb-stock) +- [product](https://github.com/bringout/oca-ocb-sale/tree/5d9b47ce90463a1c61e6fb80db86d42fb811e501/odoo-bringout-oca-ocb-product) +- [sale](https://github.com/bringout/oca-ocb-sale/tree/5d9b47ce90463a1c61e6fb80db86d42fb811e501/odoo-bringout-oca-ocb-sale) +- [purchase](https://github.com/bringout/oca-ocb-core/tree/9d67cf00c06114fd0d5a87a06a485b3dabf57e2b/odoo-bringout-oca-ocb-purchase) +- [stock](https://github.com/bringout/oca-ocb-warehouse/tree/1135de9279731def9c756b5192f8860b5a0e7e59/odoo-bringout-oca-ocb-stock) diff --git a/odoo-bringout-ventor-ventor_base/doc/DEPENDENCIES.md b/odoo-bringout-ventor-ventor_base/doc/DEPENDENCIES.md index 41ab8e7..d73bad2 100644 --- a/odoo-bringout-ventor-ventor_base/doc/DEPENDENCIES.md +++ b/odoo-bringout-ventor-ventor_base/doc/DEPENDENCIES.md @@ -2,6 +2,6 @@ This addon depends on: -- [base](https://github.com/bringout/oca-ocb-core/tree/156bd325ef4782b980ca23175711c453db07528e/odoo-bringout-oca-ocb-base) -- [stock](https://github.com/bringout/oca-ocb-warehouse/tree/ffbc26923f1cbb52ea57b79a3bc1781623af2ae9/odoo-bringout-oca-ocb-stock) -- [stock_picking_batch](https://github.com/bringout/oca-ocb-warehouse/tree/ffbc26923f1cbb52ea57b79a3bc1781623af2ae9/odoo-bringout-oca-ocb-stock_picking_batch) +- [base](https://github.com/bringout/oca-ocb-core/tree/9d67cf00c06114fd0d5a87a06a485b3dabf57e2b/odoo-bringout-oca-ocb-base) +- [stock](https://github.com/bringout/oca-ocb-warehouse/tree/1135de9279731def9c756b5192f8860b5a0e7e59/odoo-bringout-oca-ocb-stock) +- [stock_picking_batch](https://github.com/bringout/oca-ocb-warehouse/tree/1135de9279731def9c756b5192f8860b5a0e7e59/odoo-bringout-oca-ocb-stock_picking_batch)