You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@usergrid.apache.org by "Michael Russo (JIRA)" <ji...@apache.org> on 2015/11/20 00:53:10 UTC
[jira] [Updated] (USERGRID-1124) Internal "size" within entity
metadata is not displayed when doing a GET by entity name
[ https://issues.apache.org/jira/browse/USERGRID-1124?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Michael Russo updated USERGRID-1124:
------------------------------------
Description:
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}
was:
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}
> 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" : "org",
> "applicationName" : "app"
> }
> {code}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)