Andy164

Andy164

<JavaScript Developer />

Member Since 2 years ago

Experience Points
10
follower
Lessons Completed
74
follow
Lessons Completed
102
stars
Best Reply Awards
19
repos

49 contributions in the last year

Pinned
Activity
Oct
25
1 month ago
started
started time in 1 month ago
started
started time in 1 month ago
push

Andy164 push Andy164/REG003-burger-queen-api

Andy164
Andy164

Finish pagination and fix connection to DB

Andy164
Andy164

Merge branch 'main' of github.com:Andy164/REG003-burger-queen-api into main

commit sha: d633092bcb18be1fb7f87c57ca243dc35c60ce32

push time in 1 month ago
Oct
23
1 month ago
started
started time in 1 month ago
Oct
19
1 month ago
Activity icon
fork

Andy164 forked Laboratoria/REG003-fleet-management

fork time in 1 month ago
Oct
14
1 month ago
push

Andy164 push FelixDavid12/mobile-mision-tic-2022-flutter

Andy164
Andy164

Multiple changes:

- Create the widgets and ui directories
- Move maps to widgets and create infoPoi
- Move poi_view and poi_list_view to ui and create settings
- Change list structure to show two columns in landscape
- Change styles and gallery structure in poi_view

commit sha: 6f24dd5f6ccd0172bc780176da377f29d36ab12d

push time in 1 month ago
Oct
9
1 month ago
Activity icon
created branch
createdAt 1 month ago
Activity icon
created branch
createdAt 1 month ago
Sep
27
2 months ago
started
started time in 2 months ago
Sep
26
2 months ago
Sep
24
2 months ago
Sep
22
2 months ago
started
started time in 2 months ago
Sep
19
2 months ago
push

Andy164 push FelixDavid12/mobile-mision-tic-2022-flutter

Andy164
Andy164

Upload images of the palace

Andy164
Andy164

Create detail view of the Palace of Versailles

commit sha: 00b60eca23a520c3383d2b8c6503debe969d8f67

push time in 2 months ago
Sep
18
2 months ago
Sep
15
2 months ago
Sep
14
2 months ago
started
started time in 2 months ago
started
started time in 2 months ago
Sep
12
2 months ago
Sep
11
2 months ago
push

Andy164 push FelixDavid12/mobile-mision-tic-2022

Andy164
Andy164

Activity of the Palace of Versailles finished

commit sha: f60230b9b88ebe4b127506fde7fe17630da784ec

push time in 2 months ago
Sep
8
2 months ago
started
started time in 2 months ago
Sep
7
2 months ago
Activity icon
issue

Andy164 issue comment DianaCato/BOG002-burger-queen-api

Andy164
Andy164

Guardar data anidada en mysql

Estoy manejando mysql para almacenar la data, hasta el momento todo había ido bien, pero cuando llegué al endpoint de orders me ha generado mucho conflicto recuperar la data que tenia almacenada, ya que utilice una llave foranea para tablas relacionadas con la información de la orden y la segunda con los productos del pedido.

Estos son los comandos de mysql

CREATE TABLE orders ( _id INT NOT NULL AUTO_INCREMENT, userId INT NOT NULL, client VARCHAR(45) DEFAULT NULL, status VARCHAR(45) NOT NULL, dateEntry DATE NOT NULL, dateProcessed DATE DEFAULT NULL, PRIMARY KEY (_id), INDEX userId_idx (userId ASC), CONSTRAINT userId FOREIGN KEY (userId) REFERENCES test.users (_id) ON DELETE CASCADE ON UPDATE CASCADE);

CREATE TABLE products_in_order ( id int(11) NOT NULL AUTO_INCREMENT, id_order int(11) NOT NULL, id_product int(11) NOT NULL, qty int(11) NOT NULL, PRIMARY KEY (id), KEY id_order (id_order), KEY id_product (id_product), CONSTRAINT id_order FOREIGN KEY (id_order) REFERENCES orders (_id) ON DELETE CASCADE ON UPDATE CASCADE, CONSTRAINT id_product FOREIGN KEY (id_product) REFERENCES products (_id) ON DELETE CASCADE ON UPDATE CASCADE );

Pero al traer la data con esta acción:

SELECT userId, client, status, orders.dateEntry, dateProcessed, qty, name, price, imagen, type FROM orders INNER JOIN products_in_order ON orders._id = products_in_order.id_order INNER JOIN products ON products_in_order.id_product = products._id WHERE orders._id = ?

Obtengo un 404, porque no encutra rows

Andy164
Andy164

El id para consultar el registro de la orden actualizada estaba harcodeado. Se hizo la corrección y los tests pasaron. Sin embargo es mejor volver a correr los tests para asegurar que este haya sido el error y no otro.

started
started time in 2 months ago