Skip to content

Conversation

@absal-smile
Copy link

No description provided.

legalsylvain and others added 30 commits February 3, 2025 10:10
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
… cron.

Usefull if we want to analyse the code for uninstalled modules for instance
oca-ci and others added 15 commits February 3, 2025 10:10
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/
@absal-smile absal-smile mentioned this pull request Feb 3, 2025
38 tasks
@absal-smile absal-smile force-pushed the 18.0-mig-module_analysis branch from b2619da to 37a0d6b Compare February 3, 2025 10:29
@absal-smile absal-smile force-pushed the 18.0-mig-module_analysis branch from 37a0d6b to 8c6705a Compare February 3, 2025 10:37
@absal-smile
Copy link
Author

@OCA-git-bot

@gdgellatly
Copy link
Contributor

@absal-smile I think this needs a rebase

Comment on lines +55 to +60
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"},
Copy link
Contributor

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

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

@legalsylvain
Copy link
Contributor

Hi @absal-smile. Thanks for porting this module. could you :

Thanks !

" installed."
)
% (module.name),
"module {} doesn't have code analysed defined, "
Copy link
Contributor

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> -->
Copy link
Contributor

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 ?

@legalsylvain legalsylvain added this to the 18.0 milestone Nov 25, 2025
@legalsylvain legalsylvain marked this pull request as draft November 25, 2025 20:16
@adasatorres
Copy link
Contributor

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?

@legalsylvain
Copy link
Contributor

@adasatorres please continue !

@adasatorres
Copy link
Contributor

@legalsylvain #3464

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.