{ "id": "173053", "key": "AC-6149", "fields": { "issuetype": { "id": "4", "description": "An improvement or enhancement to an existing feature or task.", "name": "Improvement", "subtask": false }, "project": { "id": "12217", "key": "AC", "name": "Appcelerator - INBOX", "projectCategory": { "id": "10000", "description": "", "name": "Customer Service" } }, "resolution": { "id": "10000", "description": "", "name": "Done" }, "resolutiondate": "2019-05-08T03:03:31.000+0000", "created": "2019-02-25T19:07:20.000+0000", "labels": [], "versions": [], "issuelinks": [], "assignee": { "name": "sliang", "key": "sliang", "displayName": "Shuo Liang", "active": true, "timeZone": "Asia/Harbin" }, "updated": "2019-05-08T04:24:44.000+0000", "status": { "description": "A resolution has been taken, and it is awaiting verification by reporter. From here issues are either reopened, or are closed.", "name": "Resolved", "id": "5", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "components": [ { "id": "14559", "name": "ArrowDB" } ], "description": "If I run:\r\nhttps://api.cloud.appcelerator.com/v1/events/query.json?limit=500&skip=0&where={\"start_time\": {\"$gte\": \"TIME_HERE\"}}&order=-created_at&response_json_depth=8&pretty_json=true&count=true&key=KEY_HERE\r\n\r\nusing json_depth = 8....\r\n\r\nit does NOT include the associated CheckIn or Posts for the Events.\r\n\r\nIt only shows the associated User and Place.\r\n\r\nAdam\r\n", "attachment": [ { "id": "66203", "filename": "E41A7207-A96B-4B62-9CDF-24272B0BFBDD.png", "author": { "name": "amwinsauto", "key": "amwinsauto", "displayName": "Adam Armstrong", "active": true, "timeZone": "America/Chicago" }, "created": "2019-02-28T02:55:43.000+0000", "size": 351414, "mimeType": "image/png" } ], "flagged": false, "summary": "ArrowDB (MBS) /events/query does not include Check-Ins or Posts", "creator": { "name": "amwinsauto", "key": "amwinsauto", "displayName": "Adam Armstrong", "active": true, "timeZone": "America/Chicago" }, "subtasks": [], "reporter": { "name": "amwinsauto", "key": "amwinsauto", "displayName": "Adam Armstrong", "active": true, "timeZone": "America/Chicago" }, "environment": null, "comment": { "comments": [ { "id": "446313", "author": { "name": "rmitro", "key": "rmitro", "displayName": "Rakhi Mitro", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Hello,\r\n\r\nThanks for sharing with us. It would be great if you can provide more description about your issue, sample test code and complete error logs to reproduce the issue on our end.", "updateAuthor": { "name": "rmitro", "key": "rmitro", "displayName": "Rakhi Mitro", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2019-02-26T10:52:41.000+0000", "updated": "2019-02-26T10:52:41.000+0000" }, { "id": "446319", "author": { "name": "amwinsauto", "key": "amwinsauto", "displayName": "Adam Armstrong", "active": true, "timeZone": "America/Chicago" }, "body": "Simply create:\r\n•\tPlace\r\n•\tEvent for that Place\r\n•\tPost for that Event\r\n•\tCheckIn for that Event\r\n\r\nThen run the REST API I put in the ticket.\r\n\r\nYour result will produce something like this:\r\n{code:javascript}\r\n{\r\n \"meta\": {\r\n \"code\": 200,\r\n \"status\": \"ok\",\r\n \"method_name\": \"queryEvents\",\r\n \"count\": 2\r\n },\r\n \"response\": {\r\n \"events\": [\r\n {\r\n \"id\": \"5c68bba4915408023d06e34f\",\r\n \"name\": \"Game\",\r\n \"start_time\": \"2019-03-02T23:00:00+0000\",\r\n \"duration\": 4500,\r\n \"created_at\": \"2019-02-17T01:40:52+0000\",\r\n \"updated_at\": \"2019-02-18T21:47:48+0000\",\r\n \"ical\": \"DTSTART:20190302T230000Z\\nDURATION:PT1H15M\",\r\n \"recurring_until\": \"2019-02-17T01:40:00+0000\",\r\n \"num_occurrences\": 1,\r\n \"details\": \"Beer afterwards\",\r\n \"custom_fields\": {\r\n \"level\": \"D2\"\r\n },\r\n \"user\": {\r\n \"id\": \"5c60b264113d2f0243e21033\",\r\n \"tags\": [\r\n \"appcelerator\"\r\n ],\r\n \"created_at\": \"2019-02-10T23:23:16+0000\",\r\n \"updated_at\": \"2019-02-25T15:21:56+0000\",\r\n \"external_accounts\": [],\r\n \"confirmed_at\": \"2019-02-10T23:23:16+0000\",\r\n \"username\": \"appc_app_user_dev\",\r\n \"role\": \"appc-admin\",\r\n \"admin\": \"false\",\r\n \"stats\": {\r\n \"photos\": {\r\n \"total_count\": 0\r\n },\r\n \"storage\": {\r\n \"used\": 0\r\n }\r\n },\r\n \"friend_counts\": {\r\n \"requests\": 0,\r\n \"friends\": 0\r\n }\r\n },\r\n \"place\": {\r\n \"id\": \"5c65ba960a44c3023cfd86fe\",\r\n \"name\": \"Frisco StarCenter\",\r\n \"created_at\": \"2019-02-14T18:59:34+0000\",\r\n \"updated_at\": \"2019-02-14T18:59:34+0000\",\r\n \"address\": \"2601 Avenue of the Stars\",\r\n \"city\": \"Frisco\",\r\n \"state\": \"TX\",\r\n \"postal_code\": \"75034\",\r\n \"user\": {\r\n \"id\": \"5c60b264113d2f0243e21033\",\r\n \"tags\": [\r\n \"appcelerator\"\r\n ],\r\n \"created_at\": \"2019-02-10T23:23:16+0000\",\r\n \"updated_at\": \"2019-02-25T15:21:56+0000\",\r\n \"external_accounts\": [],\r\n \"confirmed_at\": \"2019-02-10T23:23:16+0000\",\r\n \"username\": \"appc_app_user_dev\",\r\n \"role\": \"appc-admin\",\r\n \"admin\": \"false\",\r\n \"stats\": {\r\n \"photos\": {\r\n \"total_count\": 0\r\n },\r\n \"storage\": {\r\n \"used\": 0\r\n }\r\n },\r\n \"friend_counts\": {\r\n \"requests\": 0,\r\n \"friends\": 0\r\n }\r\n }\r\n }\r\n },\r\n {\r\n \"id\": \"5c65bada734fef0244f8c699\",\r\n \"name\": \"Drop-In\",\r\n \"start_time\": \"2019-03-08T12:30:00+0000\",\r\n \"duration\": 5400,\r\n \"created_at\": \"2019-02-14T19:00:42+0000\",\r\n \"updated_at\": \"2019-02-25T18:58:35+0000\",\r\n \"ical\": \"DTSTART:20190308T123000Z\\nDURATION:PT1H30M\",\r\n \"recurring_until\": \"2019-02-14T18:59:00+0000\",\r\n \"num_occurrences\": 1,\r\n \"details\": \"Rise 'N Grind. Dunkin Donuts provides free coffee & donuts.\",\r\n \"custom_fields\": {\r\n \"level\": \"All\",\r\n \"age\": \"Adult\"\r\n },\r\n \"user\": {\r\n \"id\": \"5c60b264113d2f0243e21033\",\r\n \"tags\": [\r\n \"appcelerator\"\r\n ],\r\n \"created_at\": \"2019-02-10T23:23:16+0000\",\r\n \"updated_at\": \"2019-02-25T15:21:56+0000\",\r\n \"external_accounts\": [],\r\n \"confirmed_at\": \"2019-02-10T23:23:16+0000\",\r\n \"username\": \"appc_app_user_dev\",\r\n \"role\": \"appc-admin\",\r\n \"admin\": \"false\",\r\n \"stats\": {\r\n \"photos\": {\r\n \"total_count\": 0\r\n },\r\n \"storage\": {\r\n \"used\": 0\r\n }\r\n },\r\n \"friend_counts\": {\r\n \"requests\": 0,\r\n \"friends\": 0\r\n }\r\n },\r\n \"place\": {\r\n \"id\": \"5c65ba960a44c3023cfd86fe\",\r\n \"name\": \"Frisco StarCenter\",\r\n \"created_at\": \"2019-02-14T18:59:34+0000\",\r\n \"updated_at\": \"2019-02-14T18:59:34+0000\",\r\n \"address\": \"2601 Avenue of the Stars\",\r\n \"city\": \"Frisco\",\r\n \"state\": \"TX\",\r\n \"postal_code\": \"75034\",\r\n \"user\": {\r\n \"id\": \"5c60b264113d2f0243e21033\",\r\n \"tags\": [\r\n \"appcelerator\"\r\n ],\r\n \"created_at\": \"2019-02-10T23:23:16+0000\",\r\n \"updated_at\": \"2019-02-25T15:21:56+0000\",\r\n \"external_accounts\": [],\r\n \"confirmed_at\": \"2019-02-10T23:23:16+0000\",\r\n \"username\": \"appc_app_user_dev\",\r\n \"role\": \"appc-admin\",\r\n \"admin\": \"false\",\r\n \"stats\": {\r\n \"photos\": {\r\n \"total_count\": 0\r\n },\r\n \"storage\": {\r\n \"used\": 0\r\n }\r\n },\r\n \"friend_counts\": {\r\n \"requests\": 0,\r\n \"friends\": 0\r\n }\r\n }\r\n }\r\n }\r\n ]\r\n }\r\n}\r\n{code}\r\n\r\n\r\nAnd having defined `response_json_depth=8` I expect to see the related CheckIns and Posts for that Event.\r\n", "updateAuthor": { "name": "amwinsauto", "key": "amwinsauto", "displayName": "Adam Armstrong", "active": true, "timeZone": "America/Chicago" }, "created": "2019-02-26T13:12:50.000+0000", "updated": "2019-02-26T13:12:50.000+0000" }, { "id": "446358", "author": { "name": "amwinsauto", "key": "amwinsauto", "displayName": "Adam Armstrong", "active": true, "timeZone": "America/Chicago" }, "body": "At a minimum, the events/query endpoint should at least include the count of Posts associated with the Event, count of CheckIns at an Event, count of Comments on an Event, count of Ratings of an Event, etc....\r\n\r\nAnd honestly, this should be present on all of the endpoints to show the count of all related objects.", "updateAuthor": { "name": "amwinsauto", "key": "amwinsauto", "displayName": "Adam Armstrong", "active": true, "timeZone": "America/Chicago" }, "created": "2019-02-27T13:54:31.000+0000", "updated": "2019-02-27T13:54:31.000+0000" }, { "id": "446384", "author": { "name": "sliang", "key": "sliang", "displayName": "Shuo Liang", "active": true, "timeZone": "Asia/Harbin" }, "body": "[~amwinsauto]\r\n\r\nThank you for your info. And that is expected result. Our system do not return Check-in or Post for Event or Place object query. \r\n\r\nFirst of all, Posts and Check-in object is not necessary or unique for event object. \r\nThen, An event could having zero or lots of Posts or Check-in object, if data is huge and event query return all those related object as well, that could slow down the query performance, even killing the query server.\r\n\r\nso, if you want to see the Check-in or Post, please use Check-in or post query instead of Event query.", "updateAuthor": { "name": "sliang", "key": "sliang", "displayName": "Shuo Liang", "active": true, "timeZone": "Asia/Harbin" }, "created": "2019-02-28T02:35:51.000+0000", "updated": "2019-02-28T02:35:51.000+0000" }, { "id": "446385", "author": { "name": "amwinsauto", "key": "amwinsauto", "displayName": "Adam Armstrong", "active": true, "timeZone": "America/Chicago" }, "body": "Once I want more info on a given Event, then yes it makes sense to query for the details of the Comments, CheckIns, Posts, etc related to that selected Event.\r\n\r\n\r\nBut when querying for all Events, why not at least return the counts? That is reasonable. \r\n\r\n\r\nLet’s say I want to show all Events (let’s say there are 30) in a format similar to Facebook. Then what you’re saying is I would make 1 call to get the events and to then show the # of posts on an event I would then need to make 30 more api calls and loop back through each row to update that #? That is not reasonable and honestly, prevents ArrowDB from even being a usable platform. \r\n\r\nAs an Enterprise user of 4+ years now - this is very concerning that we are even debating the justification of why this product should at least show the counts of the related objects. This is very basic and makes me think I need to re-evaluate my long term plans with this platform going forward. ", "updateAuthor": { "name": "amwinsauto", "key": "amwinsauto", "displayName": "Adam Armstrong", "active": true, "timeZone": "America/Chicago" }, "created": "2019-02-28T02:47:30.000+0000", "updated": "2019-02-28T02:47:30.000+0000" }, { "id": "446386", "author": { "name": "sliang", "key": "sliang", "displayName": "Shuo Liang", "active": true, "timeZone": "Asia/Harbin" }, "body": "Ye. If you really need it, we can file a ticket to cloud team asap, and they will take care of it. \r\nWe will keep you posted once there is any update from cloud team. \r\n\r\n", "updateAuthor": { "name": "sliang", "key": "sliang", "displayName": "Shuo Liang", "active": true, "timeZone": "Asia/Harbin" }, "created": "2019-02-28T02:53:03.000+0000", "updated": "2019-02-28T02:53:03.000+0000" }, { "id": "446387", "author": { "name": "amwinsauto", "key": "amwinsauto", "displayName": "Adam Armstrong", "active": true, "timeZone": "America/Chicago" }, "body": " !E41A7207-A96B-4B62-9CDF-24272B0BFBDD.png|thumbnail! ", "updateAuthor": { "name": "amwinsauto", "key": "amwinsauto", "displayName": "Adam Armstrong", "active": true, "timeZone": "America/Chicago" }, "created": "2019-02-28T02:55:53.000+0000", "updated": "2019-02-28T02:55:53.000+0000" }, { "id": "446388", "author": { "name": "amwinsauto", "key": "amwinsauto", "displayName": "Adam Armstrong", "active": true, "timeZone": "America/Chicago" }, "body": "For example, see that image ^\r\n(Specifically “comments”)\r\n\r\nSimilar to what a Facebook type app would use. \r\n\r\nAm I honesty the only person that needs the functionality to get a count of all related objects?\r\n\r\nThis seems basic to me for a Mobile “Social” App.\r\n\r\nIf I am truly the only person that has requested, or would use, this functionality then I am shocked. I’m not asking you to do this “for me”. But for the fact that it is basic functionality that would greatly benefit your product for all of your users. \r\n\r\nDon’t do this only on “my behalf”.", "updateAuthor": { "name": "amwinsauto", "key": "amwinsauto", "displayName": "Adam Armstrong", "active": true, "timeZone": "America/Chicago" }, "created": "2019-02-28T02:59:56.000+0000", "updated": "2019-02-28T02:59:56.000+0000" }, { "id": "448228", "author": { "name": "sliang", "key": "sliang", "displayName": "Shuo Liang", "active": true, "timeZone": "Asia/Harbin" }, "body": "This problem has been fixed. Now, you can query event with parameters like \"events/query.json?post=true&checkin=true\", then get count of post and CheckIn object related to current event.\r\n\r\nE.g. \r\n\r\n\"https://api.cloud.appcelerator.com/v1/events/query.json?key=KMRH9AApw7u6OLYLN0tlc1xXQokKRE0l&pretty_json=true&count=true&response_json_depth=8&post=true&checkin=true\"", "updateAuthor": { "name": "sliang", "key": "sliang", "displayName": "Shuo Liang", "active": true, "timeZone": "Asia/Harbin" }, "created": "2019-05-08T03:02:00.000+0000", "updated": "2019-05-08T03:02:00.000+0000" }, { "id": "448229", "author": { "name": "amwinsauto", "key": "amwinsauto", "displayName": "Adam Armstrong", "active": true, "timeZone": "America/Chicago" }, "body": "Checkin object? You can have multiple checkins to an Event. \r\n\r\nWhy doesn’t this also provide the count of checkins?", "updateAuthor": { "name": "amwinsauto", "key": "amwinsauto", "displayName": "Adam Armstrong", "active": true, "timeZone": "America/Chicago" }, "created": "2019-05-08T04:19:02.000+0000", "updated": "2019-05-08T04:19:02.000+0000" }, { "id": "448230", "author": { "name": "sliang", "key": "sliang", "displayName": "Shuo Liang", "active": true, "timeZone": "Asia/Harbin" }, "body": "It does provide count of checkins.\r\n\r\nExample response:\r\n\r\n{code}{\r\n \"meta\": {\r\n \"code\": 200,\r\n \"status\": \"ok\",\r\n \"method_name\": \"queryEvents\",\r\n \"count\": 1\r\n },\r\n \"response\": {\r\n \"events\": [\r\n {\r\n \"id\": \"5cd244045097e9021aa93062\",\r\n \"name\": \"TestEvent20190508\",\r\n \"start_time\": \"2019-05-09T02:49:00+0000\",\r\n \"duration\": 0,\r\n \"created_at\": \"2019-05-08T02:50:44+0000\",\r\n \"updated_at\": \"2019-05-08T02:50:44+0000\",\r\n \"ical\": \"DTSTART:20190509T024900Z\",\r\n \"recurring_until\": \"2019-05-08T02:49:00+0000\",\r\n \"num_occurrences\": 1,\r\n \"user\": {\r\n \"id\": \"56b4543492f6e3e9c98af1de\",\r\n \"first_name\": \"Test\",\r\n \"last_name\": \"User A\",\r\n \"created_at\": \"2016-02-05T07:50:12+0000\",\r\n \"updated_at\": \"2016-02-05T07:50:12+0000\",\r\n \"external_accounts\": [\r\n\r\n ],\r\n \"confirmed_at\": \"2016-02-05T07:50:12+0000\",\r\n \"username\": \"test user a\",\r\n \"role\": \"Tester\",\r\n \"admin\": \"false\",\r\n \"stats\": {\r\n \"photos\": {\r\n \"total_count\": 0\r\n },\r\n \"storage\": {\r\n \"used\": 0\r\n }\r\n },\r\n \"friend_counts\": {\r\n \"requests\": 0,\r\n \"friends\": 0\r\n }\r\n },\r\n \"place\": {\r\n \"id\": \"5cd243ec9603040221aa02dd\",\r\n \"name\": \"TestPlace20190508\",\r\n \"created_at\": \"2019-05-08T02:50:20+0000\",\r\n \"updated_at\": \"2019-05-08T02:50:20+0000\",\r\n \"address\": \"Chaoyang District\",\r\n \"city\": \"Bejing\",\r\n \"state\": \"Beijing\",\r\n \"postal_code\": \"100075\",\r\n \"phone_number\": \"18518921081\",\r\n \"user\": {\r\n \"id\": \"56b4543492f6e3e9c98af1de\",\r\n \"first_name\": \"Test\",\r\n \"last_name\": \"User A\",\r\n \"created_at\": \"2016-02-05T07:50:12+0000\",\r\n \"updated_at\": \"2016-02-05T07:50:12+0000\",\r\n \"external_accounts\": [\r\n\r\n ],\r\n \"confirmed_at\": \"2016-02-05T07:50:12+0000\",\r\n \"username\": \"test user a\",\r\n \"role\": \"Tester\",\r\n \"admin\": \"false\",\r\n \"stats\": {\r\n \"photos\": {\r\n \"total_count\": 0\r\n },\r\n \"storage\": {\r\n \"used\": 0\r\n }\r\n },\r\n \"friend_counts\": {\r\n \"requests\": 0,\r\n \"friends\": 0\r\n }\r\n }\r\n },\r\n \"posts\": {\r\n \"count\": 0\r\n },\r\n \"checkins\": {\r\n \"count\": 2\r\n }\r\n }\r\n ]\r\n }\r\n}{code} ", "updateAuthor": { "name": "sliang", "key": "sliang", "displayName": "Shuo Liang", "active": true, "timeZone": "Asia/Harbin" }, "created": "2019-05-08T04:22:29.000+0000", "updated": "2019-05-08T04:22:29.000+0000" }, { "id": "448231", "author": { "name": "amwinsauto", "key": "amwinsauto", "displayName": "Adam Armstrong", "active": true, "timeZone": "America/Chicago" }, "body": "Your comment said Check-in object - not count. \r\n\r\nIf it is returning count then that’s great. \r\n\r\nThank you!", "updateAuthor": { "name": "amwinsauto", "key": "amwinsauto", "displayName": "Adam Armstrong", "active": true, "timeZone": "America/Chicago" }, "created": "2019-05-08T04:24:44.000+0000", "updated": "2019-05-08T04:24:44.000+0000" } ], "maxResults": 15, "total": 15, "startAt": 0 } } }