-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feat/create json files from baserows #821
base: release/project
Are you sure you want to change the base?
Conversation
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.
Praise: Gros boulot ! Bravo !
Je t'ai fait pas mal de retour... Mais beaucoup de mineur ;-) Et c'est propre ! Merci
console.log(`Baserow Data sucessfully downloaded.\nStarting to validate the project data and generating the project JSON.`) | ||
this._validateData(projects) | ||
this._writeJson(projects) | ||
return |
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.
note: je vais ajouter une règle de saut de ligne avant return
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 ajouté des sauts de ligne mais je ne suis pas sur de la où il faut en mettre exactement.
Ex :
private async _delay(ms: number): Promise<void> {
return new Promise((resolve) => setTimeout(resolve, ms))
}
vs
private async _delay(ms: number): Promise<void> {
console.log(xxx)
return new Promise((resolve) => setTimeout(resolve, ms))
}
ou
private async _delay(ms: number): Promise<void> {
console.log(xxx)
return new Promise((resolve) => setTimeout(resolve, ms))
}
} | ||
|
||
private _validateThemes(project: RawProject) { | ||
project.themes.forEach((themeId) => { |
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.
suggestion: sur les trois méthodes _validateThemes
, _validateLinkedProjects
et _validatePrograms
, on pourrait passer directement les valeurs utiliser dans le foreach
ex:
this._validateThemes(project.themes)
...
private _validateThemes(themes: 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.
Je pensais aussi mais comme on fait d'abord tous les téléchargements puis toutes les validations, il y a besoin de donner tout le projet en paramètre pour pouvoir afficher son titre et son id en cas de problème.
…ould be discussed; contains a circular dependency warning !
be00180
to
46b4768
Compare
Feature principale : Génération des fichier projets pour le front (json + images)
Features secondaire / détails d'implem :
Autre notes : les mocks data n'étaient pour l'instant pas dans la feature branche. Je les ai donc ajoutées.
close #796
close #803
close #804
close #805