Update DataGrid unit tests to use assertQueries().
Review Request #12364 — Created June 12, 2022 and submitted
This enhances the datagrid unit tests to use
assertQueries()
instead
ofassertNumQueries()
. This gives us greater insight into the queries
being executed when rendering a datagrid, and will help with performance
tuning going forward.A number of datagrid unit tests lacked any query-related assertions.
This change adds these, and in the process has uncovered some major
performance issues. These will be resolved in upcoming changes.
Unit tests pass.
- Change Summary:
-
Added more missing datagrid tests.
- Description:
-
This enhances the datagrid unit tests to use
assertQueries()
insteadof assertNumQueries()
. This gives us greater insight into the queriesbeing executed when rendering a datagrid, and will help with performance tuning going forward. A number of datagrid unit tests lacked any query-related assertions.
This change adds these, and in the process has uncovered some major ~ performance issues with the Users datagrid. That will be resolved in an ~ performance issues. These will be resolved in upcoming changes. - upcoming change. - Commits:
-
Summary ID 40a5fcd72fee4a08b90882a278fbbf15f771c3a5 1dc60207caf63c24be3ecd1121ba4825fd533e10
Checks run (2 succeeded)
flake8
passed.
JSHint
passed.
- Change Summary:
-
- Added docstrings to
setUp
/tearDown
- Added
num_statements=
to anassertQuery()
.
- Added docstrings to
- Commits:
-
Summary ID 1dc60207caf63c24be3ecd1121ba4825fd533e10 9332521223904bd15af0085858b0c3342500c365 - Diff:
-
Revision 3 (+4556 -292)
Checks run (2 succeeded)
flake8
passed.
JSHint
passed.