Skip to content
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

[REF] *: fill all missing static props #143209

Conversation

juliusc2066
Copy link
Contributor

@juliusc2066 juliusc2066 commented Nov 22, 2023

First commit moves the profiling folder from web/core to web/webclient since all of its content is only used inside of the webclient and it also fix some dependency issues of defining a field inside of core (in the profiling_qweb file) introduced by the second commit.

Second commit adds static props to all component that don't define it. This makes props validation universal throughout the code base which helps for code clarity and consistency. It also adds rules to the test linter so that the definition of static props and static template are mandatory on each component of the codebase and enables props validation in test mode. It also forces the props and template declarations to be done inside of the component's definition so declaring them after the class definition will now be considered as a linting error.

task-3594598

@robodoo
Copy link
Contributor

robodoo commented Nov 22, 2023

Pull request status dashboard.

@juliusc2066 juliusc2066 changed the title [IMP] *: fill all missing static props [REF] *: fill all missing static props Nov 22, 2023
@C3POdoo C3POdoo added the RD research & development, internal work label Nov 22, 2023
@juliusc2066 juliusc2066 force-pushed the master-fill-static-props-everywhere-juca branch 7 times, most recently from 9aca0e1 to 53a2405 Compare December 5, 2023 16:05
@juliusc2066 juliusc2066 force-pushed the master-fill-static-props-everywhere-juca branch 9 times, most recently from 90e2a23 to fef7a74 Compare December 12, 2023 15:56
@juliusc2066 juliusc2066 force-pushed the master-fill-static-props-everywhere-juca branch 5 times, most recently from 14d6e99 to 5c0e993 Compare December 18, 2023 12:54
@juliusc2066 juliusc2066 force-pushed the master-fill-static-props-everywhere-juca branch 4 times, most recently from b788bb5 to cd3c51e Compare January 9, 2024 13:33
@juliusc2066 juliusc2066 force-pushed the master-fill-static-props-everywhere-juca branch 2 times, most recently from 59a0f12 to 4f9de5e Compare January 10, 2024 08:32
@juliusc2066 juliusc2066 force-pushed the master-fill-static-props-everywhere-juca branch 5 times, most recently from 2db2a62 to a8b36a4 Compare January 22, 2024 15:10
This commit moves the profiling folder from web/core to web/webclient
since all of its content is only used inside of the webclient and it
also fix some potential dependency issues of defining a field inside
of core (in the profiling_qweb file).
@juliusc2066 juliusc2066 force-pushed the master-fill-static-props-everywhere-juca branch from a8b36a4 to 007611c Compare January 23, 2024 11:22
This commit adds static props to all component that don't define it.
This makes props validation universal throughout the code base which
helps for code clarity and consistency. It also adds rules to the test
linter so that the definition of static props and static template are
mandatory on each component of the codebase and enables props validation
in test mode. It also forces the props and template declarations to be
done inside of the component's definition so declaring them after the
class definition will now be considered as a linting error.

task-3594598
@juliusc2066 juliusc2066 force-pushed the master-fill-static-props-everywhere-juca branch from 007611c to ec9b2ef Compare January 23, 2024 11:35
@aab-odoo
Copy link
Contributor

robodoo rebase-ff r+ p-0

@robodoo
Copy link
Contributor

robodoo commented Jan 23, 2024

Merge method set to rebase and fast-forward.

@aab-odoo
Copy link
Contributor

robodoo p=0

robodoo pushed a commit that referenced this pull request Jan 23, 2024
This commit moves the profiling folder from web/core to web/webclient
since all of its content is only used inside of the webclient and it
also fix some potential dependency issues of defining a field inside
of core (in the profiling_qweb file).

Part-of: #143209
robodoo pushed a commit that referenced this pull request Jan 23, 2024
This commit adds static props to all component that don't define it.
This makes props validation universal throughout the code base which
helps for code clarity and consistency. It also adds rules to the test
linter so that the definition of static props and static template are
mandatory on each component of the codebase and enables props validation
in test mode. It also forces the props and template declarations to be
done inside of the component's definition so declaring them after the
class definition will now be considered as a linting error.

task-3594598

closes #143209

Related: odoo/enterprise#51293
Signed-off-by: Aaron Bohy (aab) <aab@odoo.com>
@robodoo robodoo closed this Jan 23, 2024
@robodoo robodoo added the 17.2 label Jan 23, 2024
juliusc2066 added a commit to odoo-dev/odoo that referenced this pull request Jan 30, 2024
This commit ensures tests are run in debug mode so that props validation
is required for tests to pass. This was supposed to be part of
odoo#143209 but was mistakenly removed by
a conflict.
robodoo pushed a commit that referenced this pull request Jan 31, 2024
This commit ensures tests are run in debug mode so that props validation
is required for tests to pass. This was supposed to be part of
#143209 but was mistakenly removed by
a conflict.

closes #151027

Related: odoo/enterprise#55110
Signed-off-by: Aaron Bohy (aab) <aab@odoo.com>
@fw-bot fw-bot deleted the master-fill-static-props-everywhere-juca branch February 6, 2024 14:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
17.2 RD research & development, internal work
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants