When there is problem in properties there is no appropriate message displayed
- 主要言語
- Scala
- スター
- 33
- フォーク
- 16
- PR マージ指標
- 30日以内にマージされた PR はありません
説明
## 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
}
```
コントリビューションガイド
評価
この issue はまだ評価されていません。