From 846a76fd4481817312d04dbc363203087a77734d Mon Sep 17 00:00:00 2001 From: Ernad Husremovic Date: Sat, 30 Aug 2025 19:28:37 +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-spreadsheet/doc/DEPENDENCIES.md | 4 ++-- .../doc/DEPENDENCIES.md | 2 +- .../doc/DEPENDENCIES.md | 4 ++-- .../doc/DEPENDENCIES.md | 4 ++-- .../doc/DEPENDENCIES.md | 4 ++-- .../doc/DEPENDENCIES.md | 4 ++-- 6 files changed, 11 insertions(+), 11 deletions(-) diff --git a/odoo-bringout-oca-ocb-spreadsheet/doc/DEPENDENCIES.md b/odoo-bringout-oca-ocb-spreadsheet/doc/DEPENDENCIES.md index b881e93..f950829 100644 --- a/odoo-bringout-oca-ocb-spreadsheet/doc/DEPENDENCIES.md +++ b/odoo-bringout-oca-ocb-spreadsheet/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-spreadsheet_dashboard/doc/DEPENDENCIES.md b/odoo-bringout-oca-ocb-spreadsheet_dashboard/doc/DEPENDENCIES.md index 985cf17..21cffe2 100644 --- a/odoo-bringout-oca-ocb-spreadsheet_dashboard/doc/DEPENDENCIES.md +++ b/odoo-bringout-oca-ocb-spreadsheet_dashboard/doc/DEPENDENCIES.md @@ -2,4 +2,4 @@ This addon depends on: -- [spreadsheet](https://github.com/bringout/oca-ocb-report/tree/ce2bf32eaa55516e65721b59ff06b13f701b1c57/odoo-bringout-oca-ocb-spreadsheet) +- [spreadsheet](https://github.com/bringout/oca-ocb-report/tree/4e577cd23c66a8737b2d352e51d5971560b07cfd/odoo-bringout-oca-ocb-spreadsheet) diff --git a/odoo-bringout-oca-ocb-spreadsheet_dashboard_hr_expense/doc/DEPENDENCIES.md b/odoo-bringout-oca-ocb-spreadsheet_dashboard_hr_expense/doc/DEPENDENCIES.md index 574bc14..17106b5 100644 --- a/odoo-bringout-oca-ocb-spreadsheet_dashboard_hr_expense/doc/DEPENDENCIES.md +++ b/odoo-bringout-oca-ocb-spreadsheet_dashboard_hr_expense/doc/DEPENDENCIES.md @@ -2,5 +2,5 @@ This addon depends on: -- [spreadsheet_dashboard](https://github.com/bringout/oca-ocb-report/tree/ce2bf32eaa55516e65721b59ff06b13f701b1c57/odoo-bringout-oca-ocb-spreadsheet_dashboard) -- [hr_expense](https://github.com/bringout/oca-ocb-hr/tree/7056a6865f6bd273a5c4cfc973b3c7a819ee6af0/odoo-bringout-oca-ocb-hr_expense) +- [spreadsheet_dashboard](https://github.com/bringout/oca-ocb-report/tree/4e577cd23c66a8737b2d352e51d5971560b07cfd/odoo-bringout-oca-ocb-spreadsheet_dashboard) +- [hr_expense](https://github.com/bringout/oca-ocb-hr/tree/7fb3fb6283239c624dcbacc56df725f7a52d28aa/odoo-bringout-oca-ocb-hr_expense) diff --git a/odoo-bringout-oca-ocb-spreadsheet_dashboard_hr_timesheet/doc/DEPENDENCIES.md b/odoo-bringout-oca-ocb-spreadsheet_dashboard_hr_timesheet/doc/DEPENDENCIES.md index 5a92918..1660997 100644 --- a/odoo-bringout-oca-ocb-spreadsheet_dashboard_hr_timesheet/doc/DEPENDENCIES.md +++ b/odoo-bringout-oca-ocb-spreadsheet_dashboard_hr_timesheet/doc/DEPENDENCIES.md @@ -2,5 +2,5 @@ This addon depends on: -- [spreadsheet_dashboard](https://github.com/bringout/oca-ocb-report/tree/ce2bf32eaa55516e65721b59ff06b13f701b1c57/odoo-bringout-oca-ocb-spreadsheet_dashboard) -- [hr_timesheet](https://github.com/bringout/oca-ocb-hr/tree/7056a6865f6bd273a5c4cfc973b3c7a819ee6af0/odoo-bringout-oca-ocb-hr_timesheet) +- [spreadsheet_dashboard](https://github.com/bringout/oca-ocb-report/tree/4e577cd23c66a8737b2d352e51d5971560b07cfd/odoo-bringout-oca-ocb-spreadsheet_dashboard) +- [hr_timesheet](https://github.com/bringout/oca-ocb-hr/tree/7fb3fb6283239c624dcbacc56df725f7a52d28aa/odoo-bringout-oca-ocb-hr_timesheet) diff --git a/odoo-bringout-oca-ocb-spreadsheet_dashboard_pos_hr/doc/DEPENDENCIES.md b/odoo-bringout-oca-ocb-spreadsheet_dashboard_pos_hr/doc/DEPENDENCIES.md index f772383..f37affd 100644 --- a/odoo-bringout-oca-ocb-spreadsheet_dashboard_pos_hr/doc/DEPENDENCIES.md +++ b/odoo-bringout-oca-ocb-spreadsheet_dashboard_pos_hr/doc/DEPENDENCIES.md @@ -2,5 +2,5 @@ This addon depends on: -- [spreadsheet_dashboard](https://github.com/bringout/oca-ocb-report/tree/ce2bf32eaa55516e65721b59ff06b13f701b1c57/odoo-bringout-oca-ocb-spreadsheet_dashboard) -- [pos_hr](https://github.com/bringout/oca-ocb-pos/tree/43438b61b980930dd57e71874c1df4d4191ce2b2/odoo-bringout-oca-ocb-pos_hr) +- [spreadsheet_dashboard](https://github.com/bringout/oca-ocb-report/tree/4e577cd23c66a8737b2d352e51d5971560b07cfd/odoo-bringout-oca-ocb-spreadsheet_dashboard) +- [pos_hr](https://github.com/bringout/oca-ocb-pos/tree/2b77197682cf9de4bb1e5d713ad5a0e56cd6db2a/odoo-bringout-oca-ocb-pos_hr) diff --git a/odoo-bringout-oca-ocb-spreadsheet_dashboard_purchase/doc/DEPENDENCIES.md b/odoo-bringout-oca-ocb-spreadsheet_dashboard_purchase/doc/DEPENDENCIES.md index a96808c..06d6a45 100644 --- a/odoo-bringout-oca-ocb-spreadsheet_dashboard_purchase/doc/DEPENDENCIES.md +++ b/odoo-bringout-oca-ocb-spreadsheet_dashboard_purchase/doc/DEPENDENCIES.md @@ -2,5 +2,5 @@ This addon depends on: -- [spreadsheet_dashboard](https://github.com/bringout/oca-ocb-report/tree/ce2bf32eaa55516e65721b59ff06b13f701b1c57/odoo-bringout-oca-ocb-spreadsheet_dashboard) -- [purchase](https://github.com/bringout/oca-ocb-core/tree/156bd325ef4782b980ca23175711c453db07528e/odoo-bringout-oca-ocb-purchase) +- [spreadsheet_dashboard](https://github.com/bringout/oca-ocb-report/tree/4e577cd23c66a8737b2d352e51d5971560b07cfd/odoo-bringout-oca-ocb-spreadsheet_dashboard) +- [purchase](https://github.com/bringout/oca-ocb-core/tree/9d67cf00c06114fd0d5a87a06a485b3dabf57e2b/odoo-bringout-oca-ocb-purchase)