[
https://issues.apache.org/jira/browse/USERGRID-1124?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Michael Russo updated USERGRID-1124:
------------------------------------
Sprint: Usergrid 34
> Internal "size" within entity metadata is not displayed when doing a GET by
> entity name
> ----------------------------------------------------------------------------------------
>
> Key: USERGRID-1124
> URL: https://issues.apache.org/jira/browse/USERGRID-1124
> Project: Usergrid
> Issue Type: Bug
> Affects Versions: 2.1.0
> Reporter: Michael Russo
> Priority: Minor
>
> This request does not come back with size in metadata object.
> GET /org/app/collection/entityName
> {code}
> {
> "action" : "get",
> "application" : "ec2df3b3-6e0e-11e5-9798-0223e9015bf9",
> "params" : { },
> "path" : "/regions",
> "uri" : "https://testing",
> "entities" : [ {
> "uuid" : "2dcf254c-8ef5-11e5-87c2-069a7df27e87",
> "type" : "region",
> "name" : "region6",
> "created" : 1447961939135,
> "modified" : 1447961939135,
> "metadata" : {
> "path" : "/regions/2dcf254c-8ef5-11e5-87c2-069a7df27e87"
> }
> } ],
> "timestamp" : 1447976782774,
> "duration" : 77,
> "organization" : "org",
> "applicationName" : "app"
> }
> {code}
> However, get with the entity's UUID does return the metadata size.
> GET /org/app/collection/2dcf254c-8ef5-11e5-87c2-069a7df27e87
> {code}
> {
> "action" : "get",
> "application" : "ec2df3b3-6e0e-11e5-9798-0223e9015bf9",
> "params" : { },
> "path" : "/regions",
> "uri" : "https://testing",
> "entities" : [ {
> "uuid" : "2dcf254c-8ef5-11e5-87c2-069a7df27e87",
> "type" : "region",
> "name" : "region6",
> "created" : 1447961939135,
> "modified" : 1447961939135,
> "metadata" : {
> "path" : "/regions/2dcf254c-8ef5-11e5-87c2-069a7df27e87",
> "size" : 334
> }
> } ],
> "timestamp" : 1447977010952,
> "duration" : 36,
> "organization" : "org",
> "applicationName" : "app"
> }
> {code}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)