{ "id": "113397", "key": "ALOY-641", "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": [ { "id": "15402", "description": "Alloy 1.2.0, concurrent with SDK 3.1.0", "name": "Alloy 1.2.0", "archived": false, "released": true, "releaseDate": "2013-08-15" }, { "id": "15406", "description": "2013 Sprint 09", "name": "2013 Sprint 09", "archived": true, "released": true, "releaseDate": "2013-05-06" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2013-04-25T20:38:06.000+0000", "created": "2013-04-25T20:02:52.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [ "qe-testadded" ], "versions": [], "issuelinks": [], "assignee": { "name": "tlukasavage", "key": "tlukasavage", "displayName": "Tony Lukasavage", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2014-04-23T12:43:25.000+0000", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "components": [ { "id": "12329", "name": "Runtime", "description": "Generic bucket for uncategorized runtime issues" }, { "id": "12332", "name": "Titanium SDK", "description": "Any integration or issues with the TiSDK" } ], "description": "PR: https://github.com/appcelerator/alloy/pull/119\r\n\r\n{quote}\r\nProposed Patch to provide support for Ti.Filesystem.File.remoteBackup in Alloy's bult-in SQL adapter.\r\n\r\nI debated making the attribute a boolean but that created the issue of naming it noRemoteBackup or something similar. Instead I choose to stick with the existing property name, which I thought made more sense. Hence the \"off\" value to set the feature.\r\n\r\nHowever, smarter minds than mine can debate the name:value pair. I just want the feature support.\r\n{quote}", "attachment": [], "flagged": false, "summary": "Support remoteBackup for SQLite adapter", "creator": { "name": "tlukasavage", "key": "tlukasavage", "displayName": "Tony Lukasavage", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "tlukasavage", "key": "tlukasavage", "displayName": "Tony Lukasavage", "active": true, "timeZone": "America/Los_Angeles" }, "environment": null, "comment": { "comments": [ { "id": "249053", "author": { "name": "tlukasavage", "key": "tlukasavage", "displayName": "Tony Lukasavage", "active": true, "timeZone": "America/Los_Angeles" }, "body": "PR: https://github.com/appcelerator/alloy/pull/119\r\ntest app: https://github.com/appcelerator/alloy/tree/master/test/apps/models/sql_preload\r\n\r\nWhen functionally testing, ensure that from ios simulator that you receive the following DEBUG message in the console log:\r\n\r\n{quote}\r\niCloud \"do not backup\" flag set for database \"/myapp.sqlite\"\r\n{quote}", "updateAuthor": { "name": "tlukasavage", "key": "tlukasavage", "displayName": "Tony Lukasavage", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-04-25T20:38:06.000+0000", "updated": "2013-04-25T20:38:06.000+0000" }, { "id": "263776", "author": { "name": "fcasali", "key": "fcasali", "displayName": "Federico Casali", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Verified as working.\r\n\r\nTitanium SDK 3.1.2.v20130726192706\r\nAlloy 1.2.0-alpha\r\nAppcelerator Studio 3.1.3.201307252418\r\nCLI 3.1.2\r\nNode 0.8.22\r\n\r\nClosing.", "updateAuthor": { "name": "fcasali", "key": "fcasali", "displayName": "Federico Casali", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-07-29T21:59:04.000+0000", "updated": "2013-07-29T21:59:04.000+0000" }, { "id": "302169", "author": { "name": "sschueller", "key": "sschueller", "displayName": "Stefan Schüller", "active": true, "timeZone": "Europe/Berlin" }, "body": "What about when the sql connector creates a new DB when you don't specify a preload file? Aren't those DBs then backed up by iCloud or am I mistaken?\r\n\r\nDoesn't the current code just create the DB with name _alloy_ when \"Ti.Database.open(dbName);\" is called?\r\n\r\nMaybe in the setup (module.exports.beforeModelCreate) there should be a test if the DB exists and if not create it which would then allow me to set the option remoteBackup true|false.\r\n\r\n\r\n\r\n\r\n", "updateAuthor": { "name": "sschueller", "key": "sschueller", "displayName": "Stefan Schüller", "active": true, "timeZone": "Europe/Berlin" }, "created": "2014-04-23T12:43:25.000+0000", "updated": "2014-04-23T12:43:25.000+0000" } ], "maxResults": 3, "total": 3, "startAt": 0 } } }