You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
During the development of 4480 - Dynamic values in pages a new dataset was introduced in the context of entity view pages that users can consume to dynamically insert values from entities.
This entity dataset opens a good opportunity to discuss how we want to format entities in the client. This is also related to #4232
The current format of an entity would be the following:
{
"title": "Entity 1",
"sharedId": "3cvx0wffa6c",
"creationDate": 1652300322214,
"editDate": 1652300322216,
"language": "en",
"template": "5bfbb1a0471dd0fc16ada146",
"metadata": {
"multi_select": {
"name": "Multi Select", //This is the user readable name
"type": "multiselect",
"values": [
{
"value": "b",
"key": "oa7zvozznlc" //thesauri id that corresponds to the value
},
{
"value": "d",
"key": "v40zf3a3bdq"
}
]
},
"description": {
"name": "Description",
"type": "text",
"values": [
{
"value": "b"
}
]
},
"media": {
"name": "Media Field",
"type": "media",
"values": [
{
"value": "/api/files/16523003221993orpsfmv6v4.mp4"
}
]
},
"date_range": {
"name": "Dates",
"type": "date_range",
"values": [
{
"value": "May 11, 2022 ~ May 14, 2022",
"key": {
"from": 1652227200,
"to": 1652572799
}
}
]
},
"link": {
"name": "Link",
"type": "link",
"values": [
{
"value": "This is the way the user labeled the link",
"key": "https://www.somestuff.com"
}
]
},
"my_geolocation_geolocation": {
"name": "My geolocation",
"type": "geolocation",
"values": [
{
"value": {
"lat": 52.4256503043173,
"lon": 18.369140625000004,
"label": ""
}
},
{
"value": {
"lat": 52.4256503043173,
"lon": 18.369140625000004,
"label": ""
}
}
]
},
"related_entity": {
"name": "Related Entity",
"type": "text", //what should this be when the relation is not inheriting?
"inherited": true, //should this be true?
"values": [
{
"value": "Entity 4",
"key": "dfkjkjdsjk4",
"refence": {
"title": "Entity 4",
"sharedId": "dfkjkjdsjk4",
"creationDate": 1652300209771,
"template": "627c1956b2642607af6c0194",
"inheritedProperty": "title",
"metadata": {
//entity metadata
}
}
}
]
},
"multi_select_inherited": {
"name": "Inherited multi select",
"type": "multi_select",
"inherited": true,
"values": [
{
"value": "b",
"key": "oa7zvozznlc", //thesauri id that corresponds to the value
"refence": {
"title": "Entity 2",
"sharedId": "kjvxn8uopcp",
"creationDate": 1652300209771,
"template": "627c1956b2642607af6c0194",
"inheritedProperty": "multi_select",
"metadata": {
//entity metadata
}
}
},
{
"value": "d",
"key": "v40zf3a3bdq",
"refence": {} //This could be the data from, for example, Entity 3
}
]
}
},
//This relationship aggregation structure comes from #4232
"inherited_relationships": {
"my_relationship_[template._id]": [
//this relationship type would be used in three properties in the template (age, country, colors).
{
"title": "Entity 2 title",
"sharedId": "kjvxn8uopcp",
"metadata": {
"age": [23],
"country": ["es"],
"colors": ["blue", "red"]
}
},
{
"title": "Entity 3 title",
"sharedId": "ddfdffgafs2",
"metadata": {
"age": [],
"country": ["es"],
"colors": ["green"]
}
}
]
}
}
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
During the development of 4480 - Dynamic values in pages a new dataset was introduced in the context of entity view pages that users can consume to dynamically insert values from entities.
This entity dataset opens a good opportunity to discuss how we want to format entities in the client. This is also related to #4232
The current format of an entity would be the following:
Beta Was this translation helpful? Give feedback.
All reactions