From 2a8609fdffc047d157edae083c70978224eb7153 Mon Sep 17 00:00:00 2001 From: Ernad Husremovic Date: Sat, 30 Aug 2025 19:29:46 +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 | 2 +- .../doc/DEPENDENCIES.md | 8 ++++---- .../doc/DEPENDENCIES.md | 2 +- .../doc/DEPENDENCIES.md | 2 +- .../doc/DEPENDENCIES.md | 4 ++-- .../doc/DEPENDENCIES.md | 4 ++-- .../doc/DEPENDENCIES.md | 2 +- .../doc/DEPENDENCIES.md | 2 +- odoo-bringout-odoomates-om_hospital/doc/DEPENDENCIES.md | 8 ++++---- .../doc/DEPENDENCIES.md | 4 ++-- .../doc/DEPENDENCIES.md | 2 +- .../doc/DEPENDENCIES.md | 2 +- 12 files changed, 21 insertions(+), 21 deletions(-) diff --git a/odoo-bringout-odoomates-accounting_pdf_reports/doc/DEPENDENCIES.md b/odoo-bringout-odoomates-accounting_pdf_reports/doc/DEPENDENCIES.md index bbfa912..20334f3 100644 --- a/odoo-bringout-odoomates-accounting_pdf_reports/doc/DEPENDENCIES.md +++ b/odoo-bringout-odoomates-accounting_pdf_reports/doc/DEPENDENCIES.md @@ -2,4 +2,4 @@ This addon depends on: -- [account](https://github.com/bringout/oca-ocb-accounting/tree/6e99f2e941ecad12aceb9b1f887fbe526940de95/odoo-bringout-oca-ocb-account) +- [account](https://github.com/bringout/oca-ocb-accounting/tree/3bdbee2033c3989f108204c90af9cf1db37bf0a0/odoo-bringout-oca-ocb-account) diff --git a/odoo-bringout-odoomates-om_account_accountant/doc/DEPENDENCIES.md b/odoo-bringout-odoomates-om_account_accountant/doc/DEPENDENCIES.md index df20d02..7e956bc 100644 --- a/odoo-bringout-odoomates-om_account_accountant/doc/DEPENDENCIES.md +++ b/odoo-bringout-odoomates-om_account_accountant/doc/DEPENDENCIES.md @@ -2,7 +2,7 @@ This addon depends on: -- [accounting_pdf_reports](https://github.com/bringout/odoomates/tree/b3c37a76929f90acab26294d1b0d4f2014550452/odoo-bringout-odoomates-accounting_pdf_reports) -- [om_account_budget](https://github.com/bringout/odoomates/tree/b3c37a76929f90acab26294d1b0d4f2014550452/odoo-bringout-odoomates-om_account_budget) -- [om_recurring_payments](https://github.com/bringout/odoomates/tree/b3c37a76929f90acab26294d1b0d4f2014550452/odoo-bringout-odoomates-om_recurring_payments) -- [om_account_daily_reports](https://github.com/bringout/odoomates/tree/b3c37a76929f90acab26294d1b0d4f2014550452/odoo-bringout-odoomates-om_account_daily_reports) +- [accounting_pdf_reports](https://github.com/bringout/odoomates/tree/110cb2980faac77eca9fe48aa0fbaf0faab1df26/odoo-bringout-odoomates-accounting_pdf_reports) +- [om_account_budget](https://github.com/bringout/odoomates/tree/110cb2980faac77eca9fe48aa0fbaf0faab1df26/odoo-bringout-odoomates-om_account_budget) +- [om_recurring_payments](https://github.com/bringout/odoomates/tree/110cb2980faac77eca9fe48aa0fbaf0faab1df26/odoo-bringout-odoomates-om_recurring_payments) +- [om_account_daily_reports](https://github.com/bringout/odoomates/tree/110cb2980faac77eca9fe48aa0fbaf0faab1df26/odoo-bringout-odoomates-om_account_daily_reports) diff --git a/odoo-bringout-odoomates-om_account_asset/doc/DEPENDENCIES.md b/odoo-bringout-odoomates-om_account_asset/doc/DEPENDENCIES.md index bbfa912..20334f3 100644 --- a/odoo-bringout-odoomates-om_account_asset/doc/DEPENDENCIES.md +++ b/odoo-bringout-odoomates-om_account_asset/doc/DEPENDENCIES.md @@ -2,4 +2,4 @@ This addon depends on: -- [account](https://github.com/bringout/oca-ocb-accounting/tree/6e99f2e941ecad12aceb9b1f887fbe526940de95/odoo-bringout-oca-ocb-account) +- [account](https://github.com/bringout/oca-ocb-accounting/tree/3bdbee2033c3989f108204c90af9cf1db37bf0a0/odoo-bringout-oca-ocb-account) diff --git a/odoo-bringout-odoomates-om_account_budget/doc/DEPENDENCIES.md b/odoo-bringout-odoomates-om_account_budget/doc/DEPENDENCIES.md index bbfa912..20334f3 100644 --- a/odoo-bringout-odoomates-om_account_budget/doc/DEPENDENCIES.md +++ b/odoo-bringout-odoomates-om_account_budget/doc/DEPENDENCIES.md @@ -2,4 +2,4 @@ This addon depends on: -- [account](https://github.com/bringout/oca-ocb-accounting/tree/6e99f2e941ecad12aceb9b1f887fbe526940de95/odoo-bringout-oca-ocb-account) +- [account](https://github.com/bringout/oca-ocb-accounting/tree/3bdbee2033c3989f108204c90af9cf1db37bf0a0/odoo-bringout-oca-ocb-account) diff --git a/odoo-bringout-odoomates-om_account_daily_reports/doc/DEPENDENCIES.md b/odoo-bringout-odoomates-om_account_daily_reports/doc/DEPENDENCIES.md index b2e6339..e7c19b5 100644 --- a/odoo-bringout-odoomates-om_account_daily_reports/doc/DEPENDENCIES.md +++ b/odoo-bringout-odoomates-om_account_daily_reports/doc/DEPENDENCIES.md @@ -2,5 +2,5 @@ This addon depends on: -- [account](https://github.com/bringout/oca-ocb-accounting/tree/6e99f2e941ecad12aceb9b1f887fbe526940de95/odoo-bringout-oca-ocb-account) -- [accounting_pdf_reports](https://github.com/bringout/odoomates/tree/b3c37a76929f90acab26294d1b0d4f2014550452/odoo-bringout-odoomates-accounting_pdf_reports) +- [account](https://github.com/bringout/oca-ocb-accounting/tree/3bdbee2033c3989f108204c90af9cf1db37bf0a0/odoo-bringout-oca-ocb-account) +- [accounting_pdf_reports](https://github.com/bringout/odoomates/tree/110cb2980faac77eca9fe48aa0fbaf0faab1df26/odoo-bringout-odoomates-accounting_pdf_reports) diff --git a/odoo-bringout-odoomates-om_account_followup/doc/DEPENDENCIES.md b/odoo-bringout-odoomates-om_account_followup/doc/DEPENDENCIES.md index 11e4301..b14bd9c 100644 --- a/odoo-bringout-odoomates-om_account_followup/doc/DEPENDENCIES.md +++ b/odoo-bringout-odoomates-om_account_followup/doc/DEPENDENCIES.md @@ -2,5 +2,5 @@ This addon depends on: -- [account](https://github.com/bringout/oca-ocb-accounting/tree/6e99f2e941ecad12aceb9b1f887fbe526940de95/odoo-bringout-oca-ocb-account) -- [mail](https://github.com/bringout/oca-ocb-core/tree/156bd325ef4782b980ca23175711c453db07528e/odoo-bringout-oca-ocb-mail) +- [account](https://github.com/bringout/oca-ocb-accounting/tree/3bdbee2033c3989f108204c90af9cf1db37bf0a0/odoo-bringout-oca-ocb-account) +- [mail](https://github.com/bringout/oca-ocb-core/tree/9d67cf00c06114fd0d5a87a06a485b3dabf57e2b/odoo-bringout-oca-ocb-mail) diff --git a/odoo-bringout-odoomates-om_data_remove/doc/DEPENDENCIES.md b/odoo-bringout-odoomates-om_data_remove/doc/DEPENDENCIES.md index b5eae4d..f4dc904 100644 --- a/odoo-bringout-odoomates-om_data_remove/doc/DEPENDENCIES.md +++ b/odoo-bringout-odoomates-om_data_remove/doc/DEPENDENCIES.md @@ -2,4 +2,4 @@ This addon depends on: -- [base](https://github.com/bringout/oca-ocb-core/tree/156bd325ef4782b980ca23175711c453db07528e/odoo-bringout-oca-ocb-base) +- [base](https://github.com/bringout/oca-ocb-core/tree/9d67cf00c06114fd0d5a87a06a485b3dabf57e2b/odoo-bringout-oca-ocb-base) diff --git a/odoo-bringout-odoomates-om_fiscal_year/doc/DEPENDENCIES.md b/odoo-bringout-odoomates-om_fiscal_year/doc/DEPENDENCIES.md index b5eae4d..f4dc904 100644 --- a/odoo-bringout-odoomates-om_fiscal_year/doc/DEPENDENCIES.md +++ b/odoo-bringout-odoomates-om_fiscal_year/doc/DEPENDENCIES.md @@ -2,4 +2,4 @@ This addon depends on: -- [base](https://github.com/bringout/oca-ocb-core/tree/156bd325ef4782b980ca23175711c453db07528e/odoo-bringout-oca-ocb-base) +- [base](https://github.com/bringout/oca-ocb-core/tree/9d67cf00c06114fd0d5a87a06a485b3dabf57e2b/odoo-bringout-oca-ocb-base) diff --git a/odoo-bringout-odoomates-om_hospital/doc/DEPENDENCIES.md b/odoo-bringout-odoomates-om_hospital/doc/DEPENDENCIES.md index 84d8551..cf6c7da 100644 --- a/odoo-bringout-odoomates-om_hospital/doc/DEPENDENCIES.md +++ b/odoo-bringout-odoomates-om_hospital/doc/DEPENDENCIES.md @@ -2,7 +2,7 @@ This addon depends on: -- [sale](https://github.com/bringout/oca-ocb-sale/tree/cfc4dbeb59ab3594bd1aa8f3bb16a1ee00557b4d/odoo-bringout-oca-ocb-sale) -- [mail](https://github.com/bringout/oca-ocb-core/tree/156bd325ef4782b980ca23175711c453db07528e/odoo-bringout-oca-ocb-mail) -- [website_slides](https://github.com/bringout/oca-ocb-website/tree/bd6600a1205eb4c26e7f290fe92240c883985125/odoo-bringout-oca-ocb-website_slides) -- [hr](https://github.com/bringout/oca-ocb-hr/tree/7056a6865f6bd273a5c4cfc973b3c7a819ee6af0/odoo-bringout-oca-ocb-hr) +- [sale](https://github.com/bringout/oca-ocb-sale/tree/5d9b47ce90463a1c61e6fb80db86d42fb811e501/odoo-bringout-oca-ocb-sale) +- [mail](https://github.com/bringout/oca-ocb-core/tree/9d67cf00c06114fd0d5a87a06a485b3dabf57e2b/odoo-bringout-oca-ocb-mail) +- [website_slides](https://github.com/bringout/oca-ocb-website/tree/03e03d5574c9d9e357b09fadc1b8eea46aeb8fc8/odoo-bringout-oca-ocb-website_slides) +- [hr](https://github.com/bringout/oca-ocb-hr/tree/7fb3fb6283239c624dcbacc56df725f7a52d28aa/odoo-bringout-oca-ocb-hr) diff --git a/odoo-bringout-odoomates-om_mass_confirm_cancel/doc/DEPENDENCIES.md b/odoo-bringout-odoomates-om_mass_confirm_cancel/doc/DEPENDENCIES.md index ef405a8..397f88d 100644 --- a/odoo-bringout-odoomates-om_mass_confirm_cancel/doc/DEPENDENCIES.md +++ b/odoo-bringout-odoomates-om_mass_confirm_cancel/doc/DEPENDENCIES.md @@ -2,5 +2,5 @@ This addon depends on: -- [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) +- [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) diff --git a/odoo-bringout-odoomates-om_recurring_payments/doc/DEPENDENCIES.md b/odoo-bringout-odoomates-om_recurring_payments/doc/DEPENDENCIES.md index bbfa912..20334f3 100644 --- a/odoo-bringout-odoomates-om_recurring_payments/doc/DEPENDENCIES.md +++ b/odoo-bringout-odoomates-om_recurring_payments/doc/DEPENDENCIES.md @@ -2,4 +2,4 @@ This addon depends on: -- [account](https://github.com/bringout/oca-ocb-accounting/tree/6e99f2e941ecad12aceb9b1f887fbe526940de95/odoo-bringout-oca-ocb-account) +- [account](https://github.com/bringout/oca-ocb-accounting/tree/3bdbee2033c3989f108204c90af9cf1db37bf0a0/odoo-bringout-oca-ocb-account) diff --git a/odoo-bringout-odoomates-task_check_list/doc/DEPENDENCIES.md b/odoo-bringout-odoomates-task_check_list/doc/DEPENDENCIES.md index 269a5c8..dc87b58 100644 --- a/odoo-bringout-odoomates-task_check_list/doc/DEPENDENCIES.md +++ b/odoo-bringout-odoomates-task_check_list/doc/DEPENDENCIES.md @@ -2,4 +2,4 @@ This addon depends on: -- [project](https://github.com/bringout/oca-ocb-project/tree/7a956d96b89e1461e088e858c00a4cf1d573f5fb/odoo-bringout-oca-ocb-project) +- [project](https://github.com/bringout/oca-ocb-project/tree/0112fcb0c9766c2d5bf735c19a409b3524c53336/odoo-bringout-oca-ocb-project)