{ "id": "154165", "key": "ALOY-1349", "fields": { "issuetype": { "id": "4", "description": "An improvement or enhancement to an existing feature or task.", "name": "Improvement", "subtask": false }, "project": { "id": "11113", "key": "ALOY", "name": "Alloy", "projectCategory": { "id": "10400", "description": "Tools for developing applications", "name": "Tooling" } }, "fixVersions": [], "resolution": null, "resolutiondate": null, "created": "2016-01-07T18:36:40.000+0000", "priority": null, "labels": [], "versions": [], "issuelinks": [ { "id": "50241", "type": { "id": "10001", "name": "Cloners", "inward": "is cloned into", "outward": "is cloned from" }, "outwardIssue": { "id": "147133", "key": "AC-3291", "fields": { "summary": "Alloy Framework Model/Database - Some Docs or Features missing", "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" } }, "issuetype": { "id": "4", "description": "An improvement or enhancement to an existing feature or task.", "name": "Improvement", "subtask": false } } } } ], "assignee": { "name": "batman", "key": "batman", "displayName": "Bruce Wayne", "active": true, "timeZone": "America/New_York" }, "updated": "2016-12-12T14:22:51.000+0000", "status": { "description": "The issue is open and ready for the assignee to start work on it.", "name": "Open", "id": "1", "statusCategory": { "id": 2, "key": "new", "colorName": "blue-gray", "name": "To Do" } }, "components": [ { "id": "13605", "name": "Models" } ], "description": "With Alloy Framework, the following features regarding Model/Database are either missing or not properly documented. (They are all available in Titanium Classic)\r\n\r\n1. DB file remoteBackup property. How do we set this property properly? I've seen someone doing this:\r\n\r\nexports.definition = {\r\n config : {\r\n \"adapter\":{\r\n \"remoteBackup\":false\r\n } \r\n }\r\n}\r\n\r\nBut I couldn't find this in the documentation. Does it work? If it works, how do I change this property back and forth? Just modify the value above and it will take effects?\r\n\r\n2. If Alloy saves the db file in internal memory by default (Android), how to choose external storage instead?\r\n\r\n3. The documentation doesn't show any explicit method to close database connection. Does Alloy handle this automatically? If using Alloy's data binding, does the database connection close only after the view closes? If that's the case, that's too memory-consuming. The opened view may not need the database connection all the time. In Titanium Classic, I can control when to open/close a database connection.", "attachment": [], "flagged": false, "summary": "Alloy Framework Model/Database - Some Docs or Features missing", "creator": { "name": "shawnlan", "key": "shawnlan", "displayName": "Shawn Lan", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "shawnlan", "key": "shawnlan", "displayName": "Shawn Lan", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "iOS Android", "comment": { "comments": [ { "id": "374155", "author": { "name": "sdarda", "key": "sdarda", "displayName": "Sharif AbuDarda", "active": false, "timeZone": "Asia/Dhaka" }, "updateAuthor": { "name": "sdarda", "key": "sdarda", "displayName": "Sharif AbuDarda", "active": false, "timeZone": "Asia/Dhaka" }, "created": "2016-01-11T07:24:12.000+0000", "updated": "2016-01-11T07:24:12.000+0000" }, { "id": "375665", "author": { "name": "shawnlan", "key": "shawnlan", "displayName": "Shawn Lan", "active": true, "timeZone": "America/Los_Angeles" }, "body": "1. That only works for a preload database. I'm talking about the databases defined by Alloy Model, but not preloaded. It seems there is no way to set remoteBackup for such databases. However, with Titanium Classic, I can do it. I suggest to add this feature into Alloy Model.\r\n\r\n2. I'm not talking about creating databases using Titanium Classic. I'm talking about the databases defined by Alloy Model. Is there no way to choose the database path? Make it stored in an external storage?\r\n\r\n3. Good to know. Thanks.", "updateAuthor": { "name": "shawnlan", "key": "shawnlan", "displayName": "Shawn Lan", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2016-02-02T00:32:41.000+0000", "updated": "2016-02-02T00:32:41.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }