Michael Russo created USERGRID-1124:
---------------------------------------

             Summary: 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
            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" : "usergrid",
  "applicationName" : "sandbox"
}
{code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to