{ "id": "147133", "key": "AC-3291", "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": "2015-09-30T01:10:22.000+0000", "created": "2015-04-22T01:18:27.000+0000", "labels": [], "versions": [], "issuelinks": [ { "id": "50241", "type": { "id": "10001", "name": "Cloners", "inward": "is cloned into", "outward": "is cloned from" }, "inwardIssue": { "id": "154165", "key": "ALOY-1349", "fields": { "summary": "Alloy Framework Model/Database - Some Docs or Features missing", "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" } }, "issuetype": { "id": "4", "description": "An improvement or enhancement to an existing feature or task.", "name": "Improvement", "subtask": false } } } } ], "assignee": { "name": "shossain", "key": "shossain", "displayName": "Shak Hossain", "active": false, "timeZone": "America/Los_Angeles" }, "updated": "2016-03-08T07:57:42.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": "14544", "name": "Alloy", "description": "Please enter tickets related to the Alloy here." }, { "id": "14545", "name": "Documentation" }, { "id": "14548", "name": "Titanium SDK & CLI", "description": "Please enter tickets related to the MobileSDK here." } ], "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": "362419", "author": { "name": "rmitro", "key": "rmitro", "displayName": "Rakhi Mitro", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Hello,\r\n\r\nTested your issue. Alloy uses [Backbone.js |http://docs.appcelerator.com/backbone/0.9.2/#Model] \r\nto provide support for [models and collections|http://docs.appcelerator.com/platform/latest/#!/guide/Alloy_Collection_and_Model_Objects] .Alloy also borrows the concepts of [migrations and adapters|http://docs.appcelerator.com/platform/latest/#!/guide/Alloy_Sync_Adapters_and_Migrations] from Rails for storage integration. \r\n\r\nThanks", "updateAuthor": { "name": "shossain", "key": "shossain", "displayName": "Shak Hossain", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2015-09-07T08:27:31.000+0000", "updated": "2015-09-30T01:10:15.000+0000" }, { "id": "365338", "author": { "name": "shawnlan", "key": "shawnlan", "displayName": "Shawn Lan", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Please, you didn't address any question I have in this ticket. Please re-open this ticket. Thanks.", "updateAuthor": { "name": "shawnlan", "key": "shawnlan", "displayName": "Shawn Lan", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2015-09-30T01:29:50.000+0000", "updated": "2015-09-30T01:29:50.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }