3887-multi-check #942

Merged
carlosjr merged 13 commits from 3887-multi-check into dev 2022-05-10 11:46:51 +00:00
Member
No description provided.
alexm added 7 commits 2022-04-19 13:10:40 +00:00
gitea/salix/pipeline/head This commit looks good Details
8e87ab62a8
feat(entry_latest-buys): add multi-check-dummy
gitea/salix/pipeline/head There was a failure building this commit Details
f2ee987dec
fix multi-check
gitea/salix/pipeline/head This commit looks good Details
04f993e227
fix
gitea/salix/pipeline/head This commit looks good Details
8432815cb7
refactor
gitea/salix/pipeline/head This commit looks good Details
69530d3019
fix filter
alexm added 1 commit 2022-04-19 13:21:39 +00:00
gitea/salix/pipeline/head There was a failure building this commit Details
433afb8fe8
change tooltip client descriptor btnFive
alexm added 1 commit 2022-04-20 06:24:21 +00:00
gitea/salix/pipeline/head This commit looks good Details
ea2e38af4e
support front filter and front test for component
alexm added 1 commit 2022-04-20 06:55:52 +00:00
gitea/salix/pipeline/head This commit looks good Details
62f7b80ed4
quit $
alexm added the
CR / Tests passed
label 2022-04-20 07:04:02 +00:00
alexm changed title from WIP: 3887-multi-check to 3887-multi-check 2022-04-20 07:04:13 +00:00
carlosjr requested changes 2022-05-09 13:52:41 +00:00
@ -135,0 +163,4 @@
$httpBackend.expectGET('modelUrl/filter').respond(response);
expect(controller.rows).toEqual(data.length);
expect(controller.AllRowsCount).toEqual(response.length);
Contributor

problems here:

  • response is an object, therefore has no length.
  • the tests is doing a very poor job demonstrating how the countRows logic works, would be nice to see how allRowsCount is a bigger number than the selection for example model.data.lenght < response.data.length or something similar/functional.
problems here: - response is an object, therefore has no length. - the tests is doing a very poor job demonstrating how the countRows logic works, would be nice to see how allRowsCount is a bigger number than the selection for example model.data.lenght < response.data.length or something similar/functional.
alexm marked this conversation as resolved
@ -135,0 +168,4 @@
});
describe('checkDummy()', () => {
it(`should set checkedDummyCount allRowsCount`, () => {
Contributor

the following tests description leaves all the code functionality to the mainteiner's imagination, tests descriptions should explain what the test is willing to test

checkDummy() {
    if (this.checkedDummyCount)
        return this.checkedDummyCount = null;

    this.checkedDummyCount = this.allRowsCount;
}

should set "propertyName" "propertyName" vs should remove the dummy count if there was an existing one
should set "propertyName" to null vs should set the checked dummy count to all rows count if there was no count yet

Also noticed the checkDummy function not always returns a value, that seems inconsistent

the following tests description leaves all the code functionality to the mainteiner's imagination, tests descriptions should explain what the test is willing to test ``` checkDummy() { if (this.checkedDummyCount) return this.checkedDummyCount = null; this.checkedDummyCount = this.allRowsCount; } ``` should set "propertyName" "propertyName" vs should remove the dummy count if there was an existing one should set "propertyName" to null vs should set the checked dummy count to all rows count if there was no count yet Also noticed the checkDummy function not always returns a value, that seems inconsistent
alexm marked this conversation as resolved
carlosjr removed the
CR / Tests passed
label 2022-05-09 13:52:53 +00:00
alexm added 3 commits 2022-05-10 10:03:07 +00:00
alexm added the
CR / Tests passed
label 2022-05-10 10:04:18 +00:00
alexm requested review from carlosjr 2022-05-10 10:04:29 +00:00
carlosjr approved these changes 2022-05-10 11:46:39 +00:00
carlosjr left a comment
Contributor

LGTM

LGTM
carlosjr merged commit b5dbe67c99 into dev 2022-05-10 11:46:51 +00:00
carlosjr deleted branch 3887-multi-check 2022-05-10 11:46:52 +00:00
Sign in to join this conversation.
No reviewers
No Milestone
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: verdnatura/salix#942
No description provided.