Optimize refresh_package_links.py with local hash comparison

- 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
This commit is contained in:
Ernad Husremovic 2025-08-30 19:28:32 +02:00
parent dba59fd2db
commit d3df84d6ee
19 changed files with 56 additions and 56 deletions

View file

@ -2,12 +2,12 @@
This addon depends on:
- [contacts](https://github.com/bringout/oca-ocb-technical/tree/b2a91e3b975dae4980028dc64efeda7a6a77a647/odoo-bringout-oca-ocb-contacts)
- [mail](https://github.com/bringout/oca-ocb-core/tree/156bd325ef4782b980ca23175711c453db07528e/odoo-bringout-oca-ocb-mail)
- [utm](https://github.com/bringout/oca-ocb-core/tree/156bd325ef4782b980ca23175711c453db07528e/odoo-bringout-oca-ocb-utm)
- [link_tracker](https://github.com/bringout/oca-ocb-core/tree/156bd325ef4782b980ca23175711c453db07528e/odoo-bringout-oca-ocb-link_tracker)
- [web_editor](https://github.com/bringout/oca-ocb-web/tree/00a6994d033e4c605f58b875d71530d9614d9bab/odoo-bringout-oca-ocb-web_editor)
- [web_kanban_gauge](https://github.com/bringout/oca-ocb-web/tree/00a6994d033e4c605f58b875d71530d9614d9bab/odoo-bringout-oca-ocb-web_kanban_gauge)
- [social_media](https://github.com/bringout/oca-ocb-core/tree/156bd325ef4782b980ca23175711c453db07528e/odoo-bringout-oca-ocb-social_media)
- [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)
- [contacts](https://github.com/bringout/oca-ocb-technical/tree/800a8ab35febbc905f0bbd27ff013f5d4f07acf5/odoo-bringout-oca-ocb-contacts)
- [mail](https://github.com/bringout/oca-ocb-core/tree/9d67cf00c06114fd0d5a87a06a485b3dabf57e2b/odoo-bringout-oca-ocb-mail)
- [utm](https://github.com/bringout/oca-ocb-core/tree/9d67cf00c06114fd0d5a87a06a485b3dabf57e2b/odoo-bringout-oca-ocb-utm)
- [link_tracker](https://github.com/bringout/oca-ocb-core/tree/9d67cf00c06114fd0d5a87a06a485b3dabf57e2b/odoo-bringout-oca-ocb-link_tracker)
- [web_editor](https://github.com/bringout/oca-ocb-web/tree/573c5dd25aad276b803e5238d2bca395e0599023/odoo-bringout-oca-ocb-web_editor)
- [web_kanban_gauge](https://github.com/bringout/oca-ocb-web/tree/573c5dd25aad276b803e5238d2bca395e0599023/odoo-bringout-oca-ocb-web_kanban_gauge)
- [social_media](https://github.com/bringout/oca-ocb-core/tree/9d67cf00c06114fd0d5a87a06a485b3dabf57e2b/odoo-bringout-oca-ocb-social_media)
- [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)