-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
[MIG] module_analysis: Migration to 18.0 #3184
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: 18.0
Are you sure you want to change the base?
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
+1 on changing code to code_count
|
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.