Open enikonemeth opened 3 years ago
Could not reproduce this bug, although the system works in a different way. @pusztaienike @taki9
For the following settings json (note the complex property):
{
"UserType": "User",
"Domain": "Public",
"MyObject": {
"Prop1": 1234,
"Prop2": "text text text"
}
}
...and the following url (note the select parameter):
.../odata.svc/Root/System/Settings/('OAuth.settings')?metadata=no&$inlinecount=allpages&$top=10000&$select=Id,Name,Path,UserType,Domain,MyObject.Prop1
...I get the following response (note the flattened MyObject.Prop1
):
{
"d": {
"Id": 1324,
"Name": "OAuth.settings",
"Path": "/Root/System/Settings/OAuth.settings",
"UserType": "User",
"Domain": "Public",
"MyObject.Prop1": 1234
}
}
Pls note that the current behavior is that complex types are flattened as multiple properties.
What is the case with the following settings? I need the whole groups array. @tusmester
{
"groups":[
{
"Read":["See", "Preview", "PreviewWithoutWatermark", "PreviewWithoutRedaction", "Open"]
},
{
"Write":[ "Save", "AddNew", "Delete"]
},
{
"Versioning":["OpenMinor", "Publish", "ForceCheckin", "Approve", "RecallOldVersion"]
},
{
"Advanced":["SeePermissions", "SetPermissions", "RunApplication"]
}
]
}
🐜 Bug Report
[ ] If I select a Settings content I would like to see the values of the settings. So If I have a settings like this: { "apple": "appleValue" } it would be nice if the apple field will be available on the Content when I load it.
[ ] It would be better if it would work not only with primitive types but more the complex ones as well. E.g: If "applevalue" is an object too: { "apple": { appleValue1 : true, aplleValue2: "other setting"} }
[ ] The best would be if these values can be selectable $select: apple
📦 Package / Application
sensenet
😯 Current behavior
https://netcore-service.test.sensenet.com/odata.svc/Root/System/Settings/('Permission.settings')?metadata=no In this content there is a JSON which has a "groups" key, but on load I don't find any groups field
🤔 Expected behavior
https://netcore-service.test.sensenet.com/odata.svc/Root/System/Settings/('Permission.settings')?metadata=no If the settings content contains a key it would be available on the content and selectable in the query.