Skip to content
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

intégration descriptions #538

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ public static List<Taxonomie.TaxonomieCategorie> getTaxonomieCategories(
String emojiCategorie = g.getOrDefault("emoji regroupements MPS", "");
String emojiElement = g.getOrDefault("emoji domaines MPS", "");
String atomesList = g.getOrDefault("clés ideo2 des sousdomaines web", "");
val description = g.getOrDefault("descriptif domaines MPS", "");

if(!labelCategorie.isBlank()) {
if(emojiCategorie.isBlank()) {
Expand Down Expand Up @@ -57,7 +58,6 @@ public static List<Taxonomie.TaxonomieCategorie> getTaxonomieCategories(
throw new RuntimeException("Atome avec code inconnu:" + atomes);
}

val description = g.getOrDefault("descriptif", "");
val element = Taxonomie.TaxonomieCategorie.TaxonomieElement.build(
idElement,
atomes,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -174,11 +174,13 @@ class UpdateReferentielDbs(
entity.emoji = categorie.emoji
domainesCategoriesDb.save(entity)
categorie.elements.forEach { element ->
val domaine = DomaineEntity()
domaine.id = element.id
domaine.nom = element.label
domaine.emoji = element.emoji
domaine.idCategorie = groupeId
val domaine = DomaineEntity().apply {
this.id = element.id
this.nom = element.label
this.emoji = element.emoji
this.description = element.description
this.idCategorie = groupeId
}
domainesDb.save(domaine)
element.atomes.forEach { (key,label) ->
val domaineIdeo = DomaineIdeoEntity()
Expand Down