[MIG] module_analysis: Migration to 18.0#3184
Conversation
fixup! [ADD] new module module_analysis fixup! fixup! [ADD] new module module_analysis fixup! fixup! fixup! [ADD] new module module_analysis fixup! fixup! fixup! fixup! [ADD] new module module_analysis IMP exception message fixup! fixup! fixup! fixup! fixup! [ADD] new module module_analysis [REF] remove use of cloc. use pygount librairy instead fixup! [REF] remove use of cloc. use pygount librairy instead fixup! fixup! [REF] remove use of cloc. use pygount librairy instead Apply suggestions from code review Co-Authored-By: David Beal <david.beal@akretion.com> Update module_analysis/views/menu.xml Co-Authored-By: David Beal <david.beal@akretion.com> Update module_analysis/tests/test_module.py Co-Authored-By: David Beal <david.beal@akretion.com> Update module_analysis/readme/CONFIGURE.rst Co-Authored-By: David Beal <david.beal@akretion.com> [IMP] handle encoding [UPD] Update module_analysis.pot [UPD] README.rst [UPD] README.rst
Currently translated at 100.0% (35 of 35 strings) Translation: server-tools-12.0/server-tools-12.0-module_analysis Translate-URL: https://translation.odoo-community.org/projects/server-tools-12-0/server-tools-12-0-module_analysis/zh_CN/ [UPD] README.rst
Currently translated at 100.0% (35 of 35 strings) Translation: server-tools-13.0/server-tools-13.0-module_analysis Translate-URL: https://translation.odoo-community.org/projects/server-tools-13-0/server-tools-13-0-module_analysis/it/
[MIG] module_analysis: Migration to 15.0
…cause the analysis is partial (it also make the update slower) ; Add instead a cron task that is executed nightly to update analysis automatically
Currently translated at 97.2% (35 of 36 strings) Translation: server-tools-15.0/server-tools-15.0-module_analysis Translate-URL: https://translation.odoo-community.org/projects/server-tools-15-0/server-tools-15-0-module_analysis/it/
Analyse can take some time and a cron task can do it every day if needed, no need to recompute it in real time
…e there is no post install hook anymore
… cron. Usefull if we want to analyse the code for uninstalled modules for instance
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate. Translation: server-tools-16.0/server-tools-16.0-module_analysis Translate-URL: https://translation.odoo-community.org/projects/server-tools-16-0/server-tools-16-0-module_analysis/
Currently translated at 91.6% (33 of 36 strings) Translation: server-tools-16.0/server-tools-16.0-module_analysis Translate-URL: https://translation.odoo-community.org/projects/server-tools-16-0/server-tools-16-0-module_analysis/it/
Currently translated at 100.0% (36 of 36 strings) Translation: server-tools-16.0/server-tools-16.0-module_analysis Translate-URL: https://translation.odoo-community.org/projects/server-tools-16-0/server-tools-16-0-module_analysis/es/
Currently translated at 91.6% (33 of 36 strings) Translation: server-tools-16.0/server-tools-16.0-module_analysis Translate-URL: https://translation.odoo-community.org/projects/server-tools-16-0/server-tools-16-0-module_analysis/it/
Currently translated at 91.6% (33 of 36 strings) Translation: server-tools-16.0/server-tools-16.0-module_analysis Translate-URL: https://translation.odoo-community.org/projects/server-tools-16-0/server-tools-16-0-module_analysis/it/
Currently translated at 100.0% (36 of 36 strings) Translation: server-tools-16.0/server-tools-16.0-module_analysis Translate-URL: https://translation.odoo-community.org/projects/server-tools-16-0/server-tools-16-0-module_analysis/it/
Currently translated at 100.0% (36 of 36 strings) Translation: server-tools-16.0/server-tools-16.0-module_analysis Translate-URL: https://translation.odoo-community.org/projects/server-tools-16-0/server-tools-16-0-module_analysis/it/
Currently translated at 100.0% (36 of 36 strings) Translation: server-tools-16.0/server-tools-16.0-module_analysis Translate-URL: https://translation.odoo-community.org/projects/server-tools-16-0/server-tools-16-0-module_analysis/it/
…e to module's folder Fixes OCA#3042.
b2619da to
37a0d6b
Compare
37a0d6b to
8c6705a
Compare
|
@absal-smile I think this needs a rebase |
| return { | ||
| ".py": {"code": "python_code_qty"}, | ||
| ".xml": {"code": "xml_code_qty"}, | ||
| ".js": {"code": "js_code_qty"}, | ||
| ".css": {"code": "css_code_qty"}, | ||
| ".scss": {"code": "scss_code_qty"}, |
There was a problem hiding this comment.
Good morning, I recommend setting a specific version of pygount, since in the latest releases the code attribute no longer exists in the SourceAnalysis class. You can use the code_count property instead to obtain the same value.
I’m including a link to the code here:
https://github.com/roskakori/pygount/blob/2d424a00ee020555e74b1a7a5f9334f03ee5f247/pygount/analysis.py#L257
|
Hi @absal-smile. Thanks for porting this module. could you :
Thanks ! |
| " installed." | ||
| ) | ||
| % (module.name), | ||
| "module {} doesn't have code analysed defined, " |
There was a problem hiding this comment.
"module %(module_name)s doesn't have code analysed defined, "
is easier to translate in weblate tools.
| <field name="interval_type">days</field> | ||
| <field name="nextcall" eval="(DateTime.today()).strftime('%Y-%m-%d')" /> | ||
| <field name="numbercall">-1</field> | ||
| <!-- <field name="numbercall">-1</field> --> |
There was a problem hiding this comment.
Why did you commented this line ?
|
Hi @legalsylvain, do you think I could open a PR to continue with this migration, since it seems to have stalled? Or should we wait for the author of this PR to show some signs of activity? |
|
@adasatorres please continue ! |
No description provided.