[MGNLRESTUI-18] Array aware item provider for detail sub app Created: 13/Jan/20 Updated: 24/Jan/20 |
|
| Status: | Open |
| Project: | Magnolia REST Client UI |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Improvement | Priority: | Neutral |
| Reporter: | Jaroslav Simak | Assignee: | Unassigned |
| Resolution: | Unresolved | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Template: |
|
| Acceptance criteria: |
Empty
|
| Task DoD: |
[ ]*
Doc/release notes changes? Comment present?
[ ]*
Downstream builds green?
[ ]*
Solution information and context easily available?
[ ]*
Tests
[ ]*
FixVersion filled and not yet released
[ ] 
Architecture Decision Record (ADR)
|
| Description |
|
Sometimes it happens that api does not provide rest call for item detail, and returns array of objects in the rest response. In such case, it's not possible to use detail sub app because item provider we use is not aware of arrays of objects. Example response that cannot be viewed in the detail sub app:
[
{
"health" : "yellow",
"status" : "open",
"index" : "stories",
"uuid" : "J3W547IFT26j2_K9L3NUAQ",
"pri" : "1",
"rep" : "1",
"docs.count" : "1",
"docs.deleted" : "0",
"store.size" : "76.1kb",
"pri.store.size" : "76.1kb"
},
{
"health" : "yellow",
"status" : "open",
"index" : "comments",
"uuid" : "VOvMBq-ZSKeg_eLyiJxjCA",
"pri" : "5",
"rep" : "1",
"docs.count" : "7",
"docs.deleted" : "0",
"store.size" : "30kb",
"pri.store.size" : "30kb"
},
{
"health" : "green",
"status" : "open",
"index" : ".kibana_1",
"uuid" : "K8tZCA61R_WYZlYm71NaAA",
"pri" : "1",
"rep" : "0",
"docs.count" : "2",
"docs.deleted" : "0",
"store.size" : "14.5kb",
"pri.store.size" : "14.5kb"
},
{
"health" : "yellow",
"status" : "open",
"index" : "products",
"uuid" : "Z6cYofKHRNK0_Z0DpfMViA",
"pri" : "1",
"rep" : "1",
"docs.count" : "67",
"docs.deleted" : "0",
"store.size" : "150.6kb",
"pri.store.size" : "150.6kb"
},
{
"health" : "yellow",
"status" : "open",
"index" : "pages",
"uuid" : "SLRkGQZHSNC2GD3Z4jxMcg",
"pri" : "1",
"rep" : "1",
"docs.count" : "2414",
"docs.deleted" : "0",
"store.size" : "1.5mb",
"pri.store.size" : "1.5mb"
},
{
"health" : "yellow",
"status" : "open",
"index" : "pages-edouardo",
"uuid" : "-P-r4zDcTPS5XCoCWYKokw",
"pri" : "1",
"rep" : "1",
"docs.count" : "21",
"docs.deleted" : "0",
"store.size" : "44.5kb",
"pri.store.size" : "44.5kb"
},
{
"health" : "yellow",
"status" : "open",
"index" : "movies-search",
"uuid" : "8OVKIjWsQH6kNMAxMgkQRA",
"pri" : "5",
"rep" : "1",
"docs.count" : "920",
"docs.deleted" : "0",
"store.size" : "1.2mb",
"pri.store.size" : "1.2mb"
},
{
"health" : "yellow",
"status" : "open",
"index" : "contacts",
"uuid" : "Mem_5mJuRJ-VWduJ7xDiFA",
"pri" : "1",
"rep" : "1",
"docs.count" : "10",
"docs.deleted" : "0",
"store.size" : "37.8kb",
"pri.store.size" : "37.8kb"
},
{
"health" : "yellow",
"status" : "open",
"index" : "logstash-2019.03.06",
"uuid" : "_ZzL7gHbRYOE7nBYDRYpXg",
"pri" : "5",
"rep" : "1",
"docs.count" : "0",
"docs.deleted" : "0",
"store.size" : "1.2kb",
"pri.store.size" : "1.2kb"
}
]
|