-
Notifications
You must be signed in to change notification settings - Fork 0
feat(directory): Basic directory for psychologists #27
Conversation
337f5af
to
dd7d00d
Compare
dd7d00d
to
184d848
Compare
315161c
to
ddc0bb8
Compare
4923d65
to
490f8ed
Compare
490f8ed
to
bad08ab
Compare
68c35d5
to
5c16187
Compare
5c16187
to
1a32254
Compare
1a32254
to
48c514f
Compare
b0e5723
to
c4a6e41
Compare
c4a6e41
to
ed79152
Compare
abf296a
to
52d03e2
Compare
* Test .env * feat: add db deploy * Use proper DB URL * fix: use devInitContainerCommand * Do a db migration in docker * run db:migrate * Fix build Co-authored-by: Desoindx <xavier.desoindre@hotmail.fr>
|
||
Psychologist.init( | ||
{ | ||
address: DataTypes.STRING, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
On met pas un tableau ici ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
pourquoi tu voudrais un tableau ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
parce qu'on peut avoir plusieurs adresse non ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
dans ce cas la je ferai une table address a part => pour l'instant c'est pas valider et il y a qu'une address dans DS
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
c'est validé que les psy peuvent avoir plusieurs adresses. On ajoutera les 2ème adresse avec l'admin de l'annuaire. Si on fait une table à part tu penses qu'il faut le prévoir des maintenant ? ça va impacter la recherche, ils auront potentiellement plus coordonnées géo
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Non, je ne pense pas qu'il soit utile de le prevoir maintenant. On a pas de facon de rajouter/modifier les addresses aujourd'hui => on aura un code intestable simplement
`https://api-adresse.data.gouv.fr/search/?q=${firstAddress}&limit=1` | ||
); | ||
const response = await axios.get<CoordinatesAPI>(url).catch((error) => { | ||
console.log("error", error); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Il faut pas resolve la promise ici ?
- Updater le log d'erreurs
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
j'ai pas compris ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Que se passe-t-il si le call à l'API fail ? Il faut pas rajouter un Promise.reject();
ou un truc comme ça ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
justement si le call API fail on veut quand meme enregistrer le psy, donc non
Merci @desoindx @carolineBda 💪 Pour les CronJobs, je me permettrai de proposer une petite PR un peu plus tard pour les transformer en cronjob kubernetes, ce qui permettra d'avoir alerting+logs. |
🎉 Deployment for commit 128457e : Docker images
|
🎉 This PR is included in version 1.7.0 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
No description provided.