4002-item.itemType #974

Merged
carlosjr merged 10 commits from 4002-item.itemType into dev 2022-05-23 12:31:24 +00:00
Contributor
No description provided.
vicent added the
CR / Tests passed
label 2022-05-17 07:55:51 +00:00
vicent added 6 commits 2022-05-17 07:55:53 +00:00
gitea/salix/pipeline/head There was a failure building this commit Details
734f9cb60d
feat(item.itemType): added section itemType
gitea/salix/pipeline/head This commit looks good Details
13a6f1f8c1
feat(item): add section itemType
gitea/salix/pipeline/head This commit looks good Details
16fdf982c8
feat(item.itemtype): add frontTest
gitea/salix/pipeline/head This commit looks good Details
3335cb8a01
feat(item.itemType): add fields
gitea/salix/pipeline/head This commit looks good Details
76515bdd3f
add: search-panel
carlosjr requested changes 2022-05-20 08:49:29 +00:00
@ -0,0 +1,7 @@
INSERT INTO `salix`.`ACL`
Contributor

you are inserting in the same table using the INSERT INTO twice...

you can wrap both in the same insert ie:

INSERT INTO salix.ACL(model, property, accessType, permission, principalType, principalId)
VALUES
('ItemType', '', 'READ', 'ALLOW', 'ROLE', 'employee'),
('ItemType', '
', 'WRITE', 'ALLOW', 'ROLE', 'buyer');

you are inserting in the same table using the INSERT INTO twice... you can wrap both in the same insert ie: INSERT INTO `salix`.`ACL`(`model`, `property`, `accessType`, `permission`, `principalType`, `principalId`) VALUES ('ItemType', '*', 'READ', 'ALLOW', 'ROLE', 'employee'), ('ItemType', '*', 'WRITE', 'ALLOW', 'ROLE', 'buyer');
vicent marked this conversation as resolved
@ -21,0 +21,4 @@
"workerFk": {
"type": "number"
},
"categoryFk": {
Contributor

it's important to add the relations to any foreign key instead of a siemple field (just the foreign key)

it's important to add the relations to any foreign key instead of a siemple field (just the foreign key)
vicent marked this conversation as resolved
@ -0,0 +15,4 @@
it('should reload the controller data', () => {
controller.$params.id = 1;
$httpBackend.expectGET('ItemTypes/1').respond('foo');
Contributor

"foo" doesn't give context, therefore not making code maintenance easier.

"foo" doesn't give context, therefore not making code maintenance easier.
vicent marked this conversation as resolved
@ -0,0 +27,4 @@
vn-id="delete-itemType"
on-accept="$ctrl.onDelete()"
question="Are you sure you want to continue?"
message="ItemType will be removed">
Contributor

It is easier for the user to read "The item type will be removed" instead of "entityName will be removed"

The user is not a developer.

It is easier for the user to read "The item type will be removed" instead of "entityName will be removed" The user is not a developer.
vicent marked this conversation as resolved
@ -0,0 +1,2 @@
Role will be removed: El rol va a ser eliminado
Contributor

The roll will be removed: El rol va a ser eliminado
or
Roll will be removed: Rol va a ser eliminado

The roll will be removed: El rol va a ser eliminado or Roll will be removed: Rol va a ser eliminado
vicent marked this conversation as resolved
@ -0,0 +1,21 @@
<div class="search-panel">
<form ng-submit="$ctrl.onSearch()">
<vn-horizontal>
<vn-textfield
Contributor

this textfield may want to be the focus

this textfield may want to be the focus
vicent marked this conversation as resolved
carlosjr removed the
CR / Tests passed
label 2022-05-20 08:49:51 +00:00
vicent added 1 commit 2022-05-20 10:33:24 +00:00
gitea/salix/pipeline/head This commit looks good Details
3c9800a7a3
refactor: pull request changes
vicent added 1 commit 2022-05-20 10:33:40 +00:00
vicent added the
CR / Tests passed
label 2022-05-20 10:33:49 +00:00
vicent requested review from carlosjr 2022-05-20 10:33:52 +00:00
carlosjr requested changes 2022-05-23 09:42:20 +00:00
@ -18,11 +18,20 @@
"name": {
"type": "string"
},
"temperatureFk": {
Contributor

relation still missing

relation still missing
vicent marked this conversation as resolved
@ -26,0 +27,4 @@
"promo": {
"type": "number"
},
"itemPackingTypeFk": {
Contributor

relation still missing

relation still missing
vicent marked this conversation as resolved
carlosjr removed the
CR / Tests passed
label 2022-05-23 09:43:31 +00:00
vicent added 1 commit 2022-05-23 10:40:25 +00:00
vicent added the
CR / Tests passed
label 2022-05-23 10:42:14 +00:00
vicent requested review from carlosjr 2022-05-23 10:42:18 +00:00
vicent added 1 commit 2022-05-23 10:43:51 +00:00
carlosjr approved these changes 2022-05-23 12:31:12 +00:00
carlosjr left a comment
Contributor

LGTM

LGTM
carlosjr merged commit 79a75dcfa5 into dev 2022-05-23 12:31:24 +00:00
carlosjr deleted branch 4002-item.itemType 2022-05-23 12:31:25 +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#974
No description provided.