From c42e326277183f2f00a74e72411a653fd86f73b4 Mon Sep 17 00:00:00 2001 From: Ernad Husremovic Date: Sat, 30 Aug 2025 19:28:36 +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 --- .../doc/DEPENDENCIES.md | 18 +++++++++--------- .../doc/DEPENDENCIES.md | 4 ++-- .../doc/DEPENDENCIES.md | 4 ++-- .../doc/DEPENDENCIES.md | 4 ++-- .../doc/DEPENDENCIES.md | 4 ++-- .../doc/DEPENDENCIES.md | 4 ++-- 6 files changed, 19 insertions(+), 19 deletions(-) diff --git a/odoo-bringout-oca-ocb-project/doc/DEPENDENCIES.md b/odoo-bringout-oca-ocb-project/doc/DEPENDENCIES.md index 11927c3..fdf3974 100644 --- a/odoo-bringout-oca-ocb-project/doc/DEPENDENCIES.md +++ b/odoo-bringout-oca-ocb-project/doc/DEPENDENCIES.md @@ -2,12 +2,12 @@ This addon depends on: -- [analytic](https://github.com/bringout/oca-ocb-core/tree/156bd325ef4782b980ca23175711c453db07528e/odoo-bringout-oca-ocb-analytic) -- [base_setup](https://github.com/bringout/oca-ocb-core/tree/156bd325ef4782b980ca23175711c453db07528e/odoo-bringout-oca-ocb-base_setup) -- [mail](https://github.com/bringout/oca-ocb-core/tree/156bd325ef4782b980ca23175711c453db07528e/odoo-bringout-oca-ocb-mail) -- [portal](https://github.com/bringout/oca-ocb-website/tree/bd6600a1205eb4c26e7f290fe92240c883985125/odoo-bringout-oca-ocb-portal) -- [rating](https://github.com/bringout/oca-ocb-core/tree/156bd325ef4782b980ca23175711c453db07528e/odoo-bringout-oca-ocb-rating) -- [resource](https://github.com/bringout/oca-ocb-core/tree/156bd325ef4782b980ca23175711c453db07528e/odoo-bringout-oca-ocb-resource) -- [web](https://github.com/bringout/oca-ocb-core/tree/156bd325ef4782b980ca23175711c453db07528e/odoo-bringout-oca-ocb-web) -- [web_tour](https://github.com/bringout/oca-ocb-web/tree/00a6994d033e4c605f58b875d71530d9614d9bab/odoo-bringout-oca-ocb-web_tour) -- [digest](https://github.com/bringout/oca-ocb-core/tree/156bd325ef4782b980ca23175711c453db07528e/odoo-bringout-oca-ocb-digest) +- [analytic](https://github.com/bringout/oca-ocb-core/tree/9d67cf00c06114fd0d5a87a06a485b3dabf57e2b/odoo-bringout-oca-ocb-analytic) +- [base_setup](https://github.com/bringout/oca-ocb-core/tree/9d67cf00c06114fd0d5a87a06a485b3dabf57e2b/odoo-bringout-oca-ocb-base_setup) +- [mail](https://github.com/bringout/oca-ocb-core/tree/9d67cf00c06114fd0d5a87a06a485b3dabf57e2b/odoo-bringout-oca-ocb-mail) +- [portal](https://github.com/bringout/oca-ocb-website/tree/03e03d5574c9d9e357b09fadc1b8eea46aeb8fc8/odoo-bringout-oca-ocb-portal) +- [rating](https://github.com/bringout/oca-ocb-core/tree/9d67cf00c06114fd0d5a87a06a485b3dabf57e2b/odoo-bringout-oca-ocb-rating) +- [resource](https://github.com/bringout/oca-ocb-core/tree/9d67cf00c06114fd0d5a87a06a485b3dabf57e2b/odoo-bringout-oca-ocb-resource) +- [web](https://github.com/bringout/oca-ocb-core/tree/9d67cf00c06114fd0d5a87a06a485b3dabf57e2b/odoo-bringout-oca-ocb-web) +- [web_tour](https://github.com/bringout/oca-ocb-web/tree/573c5dd25aad276b803e5238d2bca395e0599023/odoo-bringout-oca-ocb-web_tour) +- [digest](https://github.com/bringout/oca-ocb-core/tree/9d67cf00c06114fd0d5a87a06a485b3dabf57e2b/odoo-bringout-oca-ocb-digest) diff --git a/odoo-bringout-oca-ocb-project_hr_expense/doc/DEPENDENCIES.md b/odoo-bringout-oca-ocb-project_hr_expense/doc/DEPENDENCIES.md index 1b789fa..f7e522f 100644 --- a/odoo-bringout-oca-ocb-project_hr_expense/doc/DEPENDENCIES.md +++ b/odoo-bringout-oca-ocb-project_hr_expense/doc/DEPENDENCIES.md @@ -2,5 +2,5 @@ This addon depends on: -- [project](https://github.com/bringout/oca-ocb-project/tree/7a956d96b89e1461e088e858c00a4cf1d573f5fb/odoo-bringout-oca-ocb-project) -- [hr_expense](https://github.com/bringout/oca-ocb-hr/tree/7056a6865f6bd273a5c4cfc973b3c7a819ee6af0/odoo-bringout-oca-ocb-hr_expense) +- [project](https://github.com/bringout/oca-ocb-project/tree/0112fcb0c9766c2d5bf735c19a409b3524c53336/odoo-bringout-oca-ocb-project) +- [hr_expense](https://github.com/bringout/oca-ocb-hr/tree/7fb3fb6283239c624dcbacc56df725f7a52d28aa/odoo-bringout-oca-ocb-hr_expense) diff --git a/odoo-bringout-oca-ocb-project_mail_plugin/doc/DEPENDENCIES.md b/odoo-bringout-oca-ocb-project_mail_plugin/doc/DEPENDENCIES.md index 809fce6..6c38f13 100644 --- a/odoo-bringout-oca-ocb-project_mail_plugin/doc/DEPENDENCIES.md +++ b/odoo-bringout-oca-ocb-project_mail_plugin/doc/DEPENDENCIES.md @@ -2,5 +2,5 @@ This addon depends on: -- [project](https://github.com/bringout/oca-ocb-project/tree/7a956d96b89e1461e088e858c00a4cf1d573f5fb/odoo-bringout-oca-ocb-project) -- [mail_plugin](https://github.com/bringout/oca-ocb-core/tree/156bd325ef4782b980ca23175711c453db07528e/odoo-bringout-oca-ocb-mail_plugin) +- [project](https://github.com/bringout/oca-ocb-project/tree/0112fcb0c9766c2d5bf735c19a409b3524c53336/odoo-bringout-oca-ocb-project) +- [mail_plugin](https://github.com/bringout/oca-ocb-core/tree/9d67cf00c06114fd0d5a87a06a485b3dabf57e2b/odoo-bringout-oca-ocb-mail_plugin) diff --git a/odoo-bringout-oca-ocb-project_mrp/doc/DEPENDENCIES.md b/odoo-bringout-oca-ocb-project_mrp/doc/DEPENDENCIES.md index b7150a6..073fe55 100644 --- a/odoo-bringout-oca-ocb-project_mrp/doc/DEPENDENCIES.md +++ b/odoo-bringout-oca-ocb-project_mrp/doc/DEPENDENCIES.md @@ -2,5 +2,5 @@ This addon depends on: -- [mrp_account](https://github.com/bringout/oca-ocb-accounting/tree/6e99f2e941ecad12aceb9b1f887fbe526940de95/odoo-bringout-oca-ocb-mrp_account) -- [project](https://github.com/bringout/oca-ocb-project/tree/7a956d96b89e1461e088e858c00a4cf1d573f5fb/odoo-bringout-oca-ocb-project) +- [mrp_account](https://github.com/bringout/oca-ocb-accounting/tree/3bdbee2033c3989f108204c90af9cf1db37bf0a0/odoo-bringout-oca-ocb-mrp_account) +- [project](https://github.com/bringout/oca-ocb-project/tree/0112fcb0c9766c2d5bf735c19a409b3524c53336/odoo-bringout-oca-ocb-project) diff --git a/odoo-bringout-oca-ocb-project_purchase/doc/DEPENDENCIES.md b/odoo-bringout-oca-ocb-project_purchase/doc/DEPENDENCIES.md index 6ac34bd..199f102 100644 --- a/odoo-bringout-oca-ocb-project_purchase/doc/DEPENDENCIES.md +++ b/odoo-bringout-oca-ocb-project_purchase/doc/DEPENDENCIES.md @@ -2,5 +2,5 @@ This addon depends on: -- [purchase](https://github.com/bringout/oca-ocb-core/tree/156bd325ef4782b980ca23175711c453db07528e/odoo-bringout-oca-ocb-purchase) -- [project](https://github.com/bringout/oca-ocb-project/tree/7a956d96b89e1461e088e858c00a4cf1d573f5fb/odoo-bringout-oca-ocb-project) +- [purchase](https://github.com/bringout/oca-ocb-core/tree/9d67cf00c06114fd0d5a87a06a485b3dabf57e2b/odoo-bringout-oca-ocb-purchase) +- [project](https://github.com/bringout/oca-ocb-project/tree/0112fcb0c9766c2d5bf735c19a409b3524c53336/odoo-bringout-oca-ocb-project) diff --git a/odoo-bringout-oca-ocb-project_timesheet_holidays/doc/DEPENDENCIES.md b/odoo-bringout-oca-ocb-project_timesheet_holidays/doc/DEPENDENCIES.md index 37d9562..13f116e 100644 --- a/odoo-bringout-oca-ocb-project_timesheet_holidays/doc/DEPENDENCIES.md +++ b/odoo-bringout-oca-ocb-project_timesheet_holidays/doc/DEPENDENCIES.md @@ -2,5 +2,5 @@ This addon depends on: -- [hr_timesheet](https://github.com/bringout/oca-ocb-hr/tree/7056a6865f6bd273a5c4cfc973b3c7a819ee6af0/odoo-bringout-oca-ocb-hr_timesheet) -- [hr_holidays](https://github.com/bringout/oca-ocb-hr/tree/7056a6865f6bd273a5c4cfc973b3c7a819ee6af0/odoo-bringout-oca-ocb-hr_holidays) +- [hr_timesheet](https://github.com/bringout/oca-ocb-hr/tree/7fb3fb6283239c624dcbacc56df725f7a52d28aa/odoo-bringout-oca-ocb-hr_timesheet) +- [hr_holidays](https://github.com/bringout/oca-ocb-hr/tree/7fb3fb6283239c624dcbacc56df725f7a52d28aa/odoo-bringout-oca-ocb-hr_holidays)