AbsaOSS / AbsaOSS/enceladus

When there is problem in properties there is no appropriate message displayed

Ouverte
#1,798 0 commentaires 0 réactions 1 personne assignée Réclamée par @benedeki Voir sur GitHub
bug Menas priority: undecided UX
Langage dominant
Scala
Étoiles
33
Forks
16
Métriques de merge des PR
Aucune PR mergée en 30 j

Description

## Describe the bug
If a property definition is badly defined, from the previous version for example, it is going to stop users from editing datasets with no proper or clear message until a person tries to query all properties.

## To Reproduce
Steps to reproduce the behaviour OR commands run:
1. Go to MongoDB properties collection
2. Insert non-valid property definition into the collection
3. Go to Menas
4. Try to edit a dataset

## Expected behaviour
There should be a clear message to the user saying something bad happened in the setup. Maybe that they should contact an Admin.
On the tomcat side, in the logs, there should be a message logged that some of the property definition are badly definide.

## Screenshots
If applicable, add screenshots to help explain your problem.

## Additional Info
- Version 2.22.1
- Property example (wrong suggested value)
```javascript
{
"_id" : ObjectId("60b5f1c684a048b9f1402115"),
"name" : "TestEnumProperty2",
"version" : 1,
"description" : null,
"propertyType" : {
"_t" : "EnumPropertyType",
"allowedValues" : [
"optionA",
"optionB",
"optionC"
],
"suggestedValue" : "optionD"
},
"putIntoInfoFile" : false,
"essentiality" : {
"_t" : "Optional"
},
"disabled" : false,
"dateCreated" : {
"dateTime" : {
"date" : {
"year" : 2021,
"month" : 6,
"day" : 1
},
"time" : {
"hour" : 8,
"minute" : 37,
"second" : 26,
"nano" : 115000000
}
},
"offset" : 0,
"zone" : "UTC"
},
"userCreated" : "menas_admin",
"lastUpdated" : {
"dateTime" : {
"date" : {
"year" : 2021,
"month" : 6,
"day" : 1
},
"time" : {
"hour" : 8,
"minute" : 37,
"second" : 26,
"nano" : 115000000
}
},
"offset" : 0,
"zone" : "UTC"
},
"userUpdated" : "menas_admin",
"dateDisabled" : null,
"userDisabled" : null,
"parent" : null
}
```

Guide de contribution

Ouvrir le guide de contribution

Évaluation

Cette issue n'a pas encore été évaluée.

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.