Tuesday, March 18, 2025
2 changes
1 change
Code cleanup and technical improvements
The spreadsheet global filter tests were reorganized and simplified so they run with only the needed components instead of loading the full web client flow. This reduces test runtime and memory use, helping development and validation complete faster without changing end-user features.
Original PR description
…bal filters tests This commit has two main goals: - Reduce memory usage/time of global filters tests - Move global filters tests to their module (from documents_spreadsheet to spreadsheet_edition)…
…bal filters tests This commit has two main goals: - Reduce memory usage/time of global filters tests - Move global filters tests to their module (from documents_spreadsheet to spreadsheet_edition) The tests have been refactored to use the minimum setup possible. Before this commit, tests were using the full setup with a web client, with a pivot view and then a click on "Insert in spreadsheet", then the rendering of the spreadsheet, then the opening of the global filters side panel. And only after that the test can begin. Now, we create a spreadsheet model and we mount only the components that are tests (the global filters side panel and the global filter editor). The tests are now faster and use less memory. | On runbot | Before | After | |------------------------------------------------|--------|-------| | Memory consumption of all JS tests, at the end | 880mb | 715mb | | Time to run this suite | 40s | 9s | Task: 4653513
1 change
Code cleanup and technical improvements
This draft pull request appears to reorganize or clean up internal code related to Brol. No specific user-facing changes or affected Odoo modules are provided, so the expected business impact is limited until more details are available.