AbsaOSS / AbsaOSS/enceladus

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

Đang mở
#1,798 0 bình luận 0 reaction 1 người được giao Được @benedeki nhận Xem trên GitHub
bug Menas priority: undecided UX
Ngôn ngữ chính
Scala
Star
33
Fork
16
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

## 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
}
```

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.