From cadac273935b3b48b861e87519679b7e8f8a1403 Mon Sep 17 00:00:00 2001 From: Ernad Husremovic Date: Sat, 30 Aug 2025 19:28:21 +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-crm/doc/DEPENDENCIES.md | 22 +++++++++---------- .../doc/DEPENDENCIES.md | 4 ++-- .../doc/DEPENDENCIES.md | 4 ++-- .../doc/DEPENDENCIES.md | 4 ++-- .../doc/DEPENDENCIES.md | 4 ++-- .../doc/DEPENDENCIES.md | 4 ++-- 6 files changed, 21 insertions(+), 21 deletions(-) diff --git a/odoo-bringout-oca-ocb-crm/doc/DEPENDENCIES.md b/odoo-bringout-oca-ocb-crm/doc/DEPENDENCIES.md index b97a2c0..b7d7f55 100644 --- a/odoo-bringout-oca-ocb-crm/doc/DEPENDENCIES.md +++ b/odoo-bringout-oca-ocb-crm/doc/DEPENDENCIES.md @@ -2,14 +2,14 @@ This addon depends on: -- [base_setup](https://github.com/bringout/oca-ocb-core/tree/156bd325ef4782b980ca23175711c453db07528e/odoo-bringout-oca-ocb-base_setup) -- [sales_team](https://github.com/bringout/oca-ocb-sale/tree/cfc4dbeb59ab3594bd1aa8f3bb16a1ee00557b4d/odoo-bringout-oca-ocb-sales_team) -- [mail](https://github.com/bringout/oca-ocb-core/tree/156bd325ef4782b980ca23175711c453db07528e/odoo-bringout-oca-ocb-mail) -- [calendar](https://github.com/bringout/oca-ocb-technical/tree/b2a91e3b975dae4980028dc64efeda7a6a77a647/odoo-bringout-oca-ocb-calendar) -- [resource](https://github.com/bringout/oca-ocb-core/tree/156bd325ef4782b980ca23175711c453db07528e/odoo-bringout-oca-ocb-resource) -- [utm](https://github.com/bringout/oca-ocb-core/tree/156bd325ef4782b980ca23175711c453db07528e/odoo-bringout-oca-ocb-utm) -- [web_tour](https://github.com/bringout/oca-ocb-web/tree/00a6994d033e4c605f58b875d71530d9614d9bab/odoo-bringout-oca-ocb-web_tour) -- [web_kanban_gauge](https://github.com/bringout/oca-ocb-web/tree/00a6994d033e4c605f58b875d71530d9614d9bab/odoo-bringout-oca-ocb-web_kanban_gauge) -- [contacts](https://github.com/bringout/oca-ocb-technical/tree/b2a91e3b975dae4980028dc64efeda7a6a77a647/odoo-bringout-oca-ocb-contacts) -- [digest](https://github.com/bringout/oca-ocb-core/tree/156bd325ef4782b980ca23175711c453db07528e/odoo-bringout-oca-ocb-digest) -- [phone_validation](https://github.com/bringout/oca-ocb-core/tree/156bd325ef4782b980ca23175711c453db07528e/odoo-bringout-oca-ocb-phone_validation) +- [base_setup](https://github.com/bringout/oca-ocb-core/tree/9d67cf00c06114fd0d5a87a06a485b3dabf57e2b/odoo-bringout-oca-ocb-base_setup) +- [sales_team](https://github.com/bringout/oca-ocb-sale/tree/5d9b47ce90463a1c61e6fb80db86d42fb811e501/odoo-bringout-oca-ocb-sales_team) +- [mail](https://github.com/bringout/oca-ocb-core/tree/9d67cf00c06114fd0d5a87a06a485b3dabf57e2b/odoo-bringout-oca-ocb-mail) +- [calendar](https://github.com/bringout/oca-ocb-technical/tree/800a8ab35febbc905f0bbd27ff013f5d4f07acf5/odoo-bringout-oca-ocb-calendar) +- [resource](https://github.com/bringout/oca-ocb-core/tree/9d67cf00c06114fd0d5a87a06a485b3dabf57e2b/odoo-bringout-oca-ocb-resource) +- [utm](https://github.com/bringout/oca-ocb-core/tree/9d67cf00c06114fd0d5a87a06a485b3dabf57e2b/odoo-bringout-oca-ocb-utm) +- [web_tour](https://github.com/bringout/oca-ocb-web/tree/573c5dd25aad276b803e5238d2bca395e0599023/odoo-bringout-oca-ocb-web_tour) +- [web_kanban_gauge](https://github.com/bringout/oca-ocb-web/tree/573c5dd25aad276b803e5238d2bca395e0599023/odoo-bringout-oca-ocb-web_kanban_gauge) +- [contacts](https://github.com/bringout/oca-ocb-technical/tree/800a8ab35febbc905f0bbd27ff013f5d4f07acf5/odoo-bringout-oca-ocb-contacts) +- [digest](https://github.com/bringout/oca-ocb-core/tree/9d67cf00c06114fd0d5a87a06a485b3dabf57e2b/odoo-bringout-oca-ocb-digest) +- [phone_validation](https://github.com/bringout/oca-ocb-core/tree/9d67cf00c06114fd0d5a87a06a485b3dabf57e2b/odoo-bringout-oca-ocb-phone_validation) diff --git a/odoo-bringout-oca-ocb-crm_iap_enrich/doc/DEPENDENCIES.md b/odoo-bringout-oca-ocb-crm_iap_enrich/doc/DEPENDENCIES.md index 5990725..1a9b438 100644 --- a/odoo-bringout-oca-ocb-crm_iap_enrich/doc/DEPENDENCIES.md +++ b/odoo-bringout-oca-ocb-crm_iap_enrich/doc/DEPENDENCIES.md @@ -2,5 +2,5 @@ This addon depends on: -- [iap_crm](https://github.com/bringout/oca-ocb-technical/tree/b2a91e3b975dae4980028dc64efeda7a6a77a647/odoo-bringout-oca-ocb-iap_crm) -- [iap_mail](https://github.com/bringout/oca-ocb-technical/tree/b2a91e3b975dae4980028dc64efeda7a6a77a647/odoo-bringout-oca-ocb-iap_mail) +- [iap_crm](https://github.com/bringout/oca-ocb-technical/tree/800a8ab35febbc905f0bbd27ff013f5d4f07acf5/odoo-bringout-oca-ocb-iap_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-crm_iap_mine/doc/DEPENDENCIES.md b/odoo-bringout-oca-ocb-crm_iap_mine/doc/DEPENDENCIES.md index 5990725..1a9b438 100644 --- a/odoo-bringout-oca-ocb-crm_iap_mine/doc/DEPENDENCIES.md +++ b/odoo-bringout-oca-ocb-crm_iap_mine/doc/DEPENDENCIES.md @@ -2,5 +2,5 @@ This addon depends on: -- [iap_crm](https://github.com/bringout/oca-ocb-technical/tree/b2a91e3b975dae4980028dc64efeda7a6a77a647/odoo-bringout-oca-ocb-iap_crm) -- [iap_mail](https://github.com/bringout/oca-ocb-technical/tree/b2a91e3b975dae4980028dc64efeda7a6a77a647/odoo-bringout-oca-ocb-iap_mail) +- [iap_crm](https://github.com/bringout/oca-ocb-technical/tree/800a8ab35febbc905f0bbd27ff013f5d4f07acf5/odoo-bringout-oca-ocb-iap_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-crm_livechat/doc/DEPENDENCIES.md b/odoo-bringout-oca-ocb-crm_livechat/doc/DEPENDENCIES.md index f1c67d5..278b6a1 100644 --- a/odoo-bringout-oca-ocb-crm_livechat/doc/DEPENDENCIES.md +++ b/odoo-bringout-oca-ocb-crm_livechat/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) -- [im_livechat](https://github.com/bringout/oca-ocb-mail/tree/cf28d72fa447cbe72e9004691397255796aaa651/odoo-bringout-oca-ocb-im_livechat) +- [crm](https://github.com/bringout/oca-ocb-crm/tree/e1a65339b7c7a28040a72ff2de3a7891f54e21c9/odoo-bringout-oca-ocb-crm) +- [im_livechat](https://github.com/bringout/oca-ocb-mail/tree/dba59fd2db10fc6a6fa1b0d807bf3edad793f7c3/odoo-bringout-oca-ocb-im_livechat) diff --git a/odoo-bringout-oca-ocb-crm_mail_plugin/doc/DEPENDENCIES.md b/odoo-bringout-oca-ocb-crm_mail_plugin/doc/DEPENDENCIES.md index e7cad5b..0beb426 100644 --- a/odoo-bringout-oca-ocb-crm_mail_plugin/doc/DEPENDENCIES.md +++ b/odoo-bringout-oca-ocb-crm_mail_plugin/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) -- [mail_plugin](https://github.com/bringout/oca-ocb-core/tree/156bd325ef4782b980ca23175711c453db07528e/odoo-bringout-oca-ocb-mail_plugin) +- [crm](https://github.com/bringout/oca-ocb-crm/tree/e1a65339b7c7a28040a72ff2de3a7891f54e21c9/odoo-bringout-oca-ocb-crm) +- [mail_plugin](https://github.com/bringout/oca-ocb-core/tree/9d67cf00c06114fd0d5a87a06a485b3dabf57e2b/odoo-bringout-oca-ocb-mail_plugin) diff --git a/odoo-bringout-oca-ocb-crm_sms/doc/DEPENDENCIES.md b/odoo-bringout-oca-ocb-crm_sms/doc/DEPENDENCIES.md index 1a4a9b7..0127fce 100644 --- a/odoo-bringout-oca-ocb-crm_sms/doc/DEPENDENCIES.md +++ b/odoo-bringout-oca-ocb-crm_sms/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) -- [sms](https://github.com/bringout/oca-ocb-mail/tree/cf28d72fa447cbe72e9004691397255796aaa651/odoo-bringout-oca-ocb-sms) +- [crm](https://github.com/bringout/oca-ocb-crm/tree/e1a65339b7c7a28040a72ff2de3a7891f54e21c9/odoo-bringout-oca-ocb-crm) +- [sms](https://github.com/bringout/oca-ocb-mail/tree/dba59fd2db10fc6a6fa1b0d807bf3edad793f7c3/odoo-bringout-oca-ocb-sms)