Closed esek-macapar closed 2 years ago
In GitLab by @afroborg on Nov 29, 2021, 20:00
requested review from @ginger51011
In GitLab by @ginger51011 on Nov 29, 2021, 21:13
Commented on src/api/emergencycontact.api.ts line 27
Intisar
In GitLab by @ginger51011 on Nov 29, 2021, 21:25
OcksÄ: CHANGELOG
(sÄ kan du passa pÄ att fixa den fuckade versionen 0.2.4
)
In GitLab by @afroborg on Nov 30, 2021, 14:34
Commented on src/api/emergencycontact.api.ts line 27
lÀttast att bara skita i validering dÄ?
In GitLab by @ginger51011 on Nov 30, 2021, 14:41
Commented on src/api/emergencycontact.api.ts line 27
AssÄ ja typ
In GitLab by @afroborg on Dec 7, 2021, 13:26
Commented on src/api/emergencycontact.api.ts line 27
changed this line in version 2 of the diff
In GitLab by @afroborg on Dec 7, 2021, 13:26
added 27 commits
master
In GitLab by @afroborg on Dec 7, 2021, 13:28
added 1 commit
In GitLab by @afroborg on Dec 7, 2021, 13:32
added 1 commit
In GitLab by @ginger51011 on Dec 7, 2021, 13:36
Commented on src/api/emergencycontact.api.ts line 26
Detta har jag inte riktigt fÄtt att funka ordentligt pÄ SQLite, jag undrar om ett try-catch-block inte fÄngar detta egentligen? Tror knex kastar error om det inte gÄr, sÄ att kolla res hjÀlper typ inte
In GitLab by @ginger51011 on Dec 7, 2021, 13:36
Commented on src/api/emergencycontact.api.ts line 26
(jag vet att detta har varit var standardlösning men i mina tester av election
har just detta krÄnglat)
In GitLab by @ginger51011 on Dec 7, 2021, 13:37
Commented on src/sql/emergencycontact.sql line 6
tab?
In GitLab by @ginger51011 on Dec 7, 2021, 13:39
Commented on test/unit/emergencycontact.api.test.ts line 86
Mb, men fail fungerar inte hÀr. Tror du kan ha nÄgot som typ expect(contact).not.toBeUndefined()
istÀllet för if-satsen. Jag vet att jag anvÀnt fail()
men det Àr p.g.a. sketchy StackOverflow-svar. throw new Error()
funkar ocksÄ
In GitLab by @ginger51011 on Dec 7, 2021, 13:40
Commented on test/unit/emergencycontact.api.test.ts line 88
Jag hade lagt till en expect till som kontrollerar att den inte finns lÀngre efter anropet
In GitLab by @ginger51011 on Dec 7, 2021, 13:41
Glöm ej att uppdatera package.json
/package-lock.json
-versionen med CHANGELOG!
In GitLab by @afroborg on Dec 7, 2021, 13:45
Commented on src/sql/emergencycontact.sql line 6
nog bara i previewn, har inte det lokalt? :O
In GitLab by @ginger51011 on Dec 7, 2021, 13:46
Commented on src/sql/emergencycontact.sql line 6
:O Gitlab is shit, noone suprised
In GitLab by @afroborg on Dec 7, 2021, 13:47
Commented on src/api/emergencycontact.api.ts line 26
changed this line in version 5 of the diff
In GitLab by @afroborg on Dec 7, 2021, 13:47
Commented on test/unit/emergencycontact.api.test.ts line 86
changed this line in version 5 of the diff
In GitLab by @afroborg on Dec 7, 2021, 13:47
added 1 commit
In GitLab by @afroborg on Dec 7, 2021, 13:48
Commented on src/api/emergencycontact.api.ts line 26
funkar i try catch men blir ju ganska fult, vi borde försöka hitta en bÀttre fullstÀndig lösning framöver
In GitLab by @afroborg on Dec 7, 2021, 13:48
Commented on test/unit/emergencycontact.api.test.ts line 86
expect fÄr inte typescript att fatta att contact inte kan vara undefined sÄ fick bli en throw Error
In GitLab by @afroborg on Dec 7, 2021, 13:49
added 1 commit
In GitLab by @ginger51011 on Dec 7, 2021, 13:56
Commented on src/api/emergencycontact.api.ts line 26
Jo det Àr fult, men Àr vÀl typ relativt lÀttlÀsligt enligt mig. Hindrar ocksÄ att vi kastar fula SQL-errors till anvÀndare...
In GitLab by @ginger51011 on Dec 7, 2021, 13:56
approved this merge request
In GitLab by @afroborg on Dec 7, 2021, 14:25
mentioned in commit 50ddec55efec327c1c65e28c7e37a65e408683e5
In GitLab by @afroborg on Nov 29, 2021, 20:00
Merges feature/emergency-contacts -> master