Add personal info to delivery address and order #6

Merged
bilal.catic merged 7 commits from add-personal-info-to-delivery-address-and-order into development 2018-06-27 10:55:06 +02:00
bilal.catic commented 2018-06-27 00:19:43 +02:00 (Migrated from gitlab.com)

Added fields to enter first name, last name and e-mail for delivery part of order, and also, stored those information to tables in db (delivery_addresses and orders)

To prepare clean environment, it's best to execute : sudo docker system prune, to remove all images, containers, networks, ... as I noticed, no-cache build option still doesn't recreate database container

Smoke test :

as usual, change php.dockerfile (change REACT_APP_DEV_URL to 'http://localhost:8000/api-wiaas' and WIAAS_URL to 'http://localhost:8000')

execute from root of the project : sudo docker-compose build && sudo docker-compose up

Go to the market and add item to the cart. Go to the cart. Try to edit existing delivery address and continue with the order. In order summary there should be first name, last name and delivery mail in delivery address section. Finish with the order. Try same, but create new delivery address.

Finally, open mysql container by running : sudo docker exec -it legacywiaas_db_1 /bin/bash (maybe wiaaslegacy_db_1)
execute : mysql -u root -p (password is root)
use ricoh_dash;
select deliveryFirstName, deliveryLastName, deliveryMail from orders;

there should be two normal rows with non-null data


to check those data in delivery_addresses table, execute :
select firstName, lastName, deliveryMail from delivery_addresses;

also, there should be two normal rows with non-null data

Added fields to enter first name, last name and e-mail for delivery part of order, and also, stored those information to tables in db (delivery_addresses and orders) To prepare clean environment, it's best to execute : sudo docker system prune, to remove all images, containers, networks, ... as I noticed, no-cache build option still doesn't recreate database container Smoke test : as usual, change php.dockerfile (change REACT_APP_DEV_URL to 'http://localhost:8000/api-wiaas' and WIAAS_URL to 'http://localhost:8000') execute from root of the project : sudo docker-compose build && sudo docker-compose up Go to the market and add item to the cart. Go to the cart. Try to edit existing delivery address and continue with the order. In order summary there should be first name, last name and delivery mail in delivery address section. Finish with the order. Try same, but create new delivery address. Finally, open mysql container by running : sudo docker exec -it legacywiaas_db_1 /bin/bash (maybe wiaaslegacy_db_1) execute : mysql -u root -p (password is root) use ricoh_dash; select deliveryFirstName, deliveryLastName, deliveryMail from orders; there should be two normal rows with non-null data --- to check those data in delivery_addresses table, execute : select firstName, lastName, deliveryMail from delivery_addresses; also, there should be two normal rows with non-null data
nedimu commented 2018-06-27 10:55:06 +02:00 (Migrated from gitlab.com)

merged

merged
nedimu commented 2018-06-27 10:55:22 +02:00 (Migrated from gitlab.com)

mentioned in commit a82d13ba1f

mentioned in commit a82d13ba1f7ed0480b3c17eedfc84300cd503e0a
Sign in to join this conversation.
No Reviewers
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: senaduka/old-wiaas-legacy#6