{ "id": "159760", "key": "ALOY-1493", "fields": { "issuetype": { "id": "2", "description": "A new feature of the product, which has yet to be developed.", "name": "New Feature", "subtask": false }, "project": { "id": "11113", "key": "ALOY", "name": "Alloy", "projectCategory": { "id": "10400", "description": "Tools for developing applications", "name": "Tooling" } }, "fixVersions": [ { "id": "17688", "name": "Release 6.0.0", "archived": false, "released": true, "releaseDate": "2016-11-14" }, { "id": "18361", "name": "alloy 1.9.3", "archived": false, "released": true, "releaseDate": "2016-10-03" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2016-09-20T20:06:29.000+0000", "created": "2016-04-21T09:54:56.000+0000", "priority": { "name": "Critical", "id": "1" }, "labels": [ "adapter", "sqlite" ], "versions": [], "issuelinks": [], "assignee": { "name": "batman", "key": "batman", "displayName": "Bruce Wayne", "active": true, "timeZone": "America/New_York" }, "updated": "2016-10-03T18:17:21.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": "13605", "name": "Models" } ], "description": "{code:javascript}\r\n// app/models/mytable.js\r\nexports.definition = {\r\n config: {\r\n columns: {},\r\n adapter: {\r\n type: \"sql\",\r\n collection_name: \"mytable\",\r\n db_file: function() {\r\n var myFile = Titanium.Filesystem.getFile(Titanium.Filesystem.applicationDataDirectory, 'file1.sql');\r\n return myFile.exists() ? myFile.nativePath : Titanium.Filesystem.applicationDataDirectory + 'file2.sql';\r\n },\r\n db_name: \"projectsDB\",\r\n idAttribute: \"UserID\",\r\n remoteBackup: false\r\n }\r\n }\r\n};\r\n{code}\r\n\r\nhttps://github.com/appcelerator/alloy/pull/788", "attachment": [], "flagged": false, "summary": "[Alloy] Alloy sql adapter db_file to be function", "creator": { "name": "hazemkhaled", "key": "hazemkhaled", "displayName": "Hazem Khaled", "active": true, "timeZone": "Europe/Istanbul" }, "subtasks": [], "reporter": { "name": "hazemkhaled", "key": "hazemkhaled", "displayName": "Hazem Khaled", "active": true, "timeZone": "Europe/Istanbul" }, "environment": null, "closedSprints": [ { "id": 708, "state": "closed", "name": "2016 Sprint 19 Tooling", "startDate": "2016-09-10T00:25:31.005Z", "endDate": "2016-09-24T00:25:00.000Z", "completeDate": "2016-09-26T05:33:10.846Z", "originBoardId": 199 } ], "comment": { "comments": [ { "id": "383541", "author": { "name": "sdarda", "key": "sdarda", "displayName": "Sharif AbuDarda", "active": false, "timeZone": "Asia/Dhaka" }, "body": "Thanks for creating the PR. Please create a sample test case. Thanks.", "updateAuthor": { "name": "sdarda", "key": "sdarda", "displayName": "Sharif AbuDarda", "active": false, "timeZone": "Asia/Dhaka" }, "created": "2016-04-21T15:00:07.000+0000", "updated": "2016-04-21T15:00:07.000+0000" }, { "id": "383543", "author": { "name": "hazemkhaled", "key": "hazemkhaled", "displayName": "Hazem Khaled", "active": true, "timeZone": "Europe/Istanbul" }, "body": "@sdarda Don't know a lot about your process, but i think it has to go under ALOY instead of TIMOB, i'm asking for test case directory name\r\n\r\nhttps://github.com/appcelerator/alloy/tree/master/test/apps/testing", "updateAuthor": { "name": "hazemkhaled", "key": "hazemkhaled", "displayName": "Hazem Khaled", "active": true, "timeZone": "Europe/Istanbul" }, "created": "2016-04-21T15:26:48.000+0000", "updated": "2016-04-21T15:34:27.000+0000" }, { "id": "383605", "author": { "name": "cng", "key": "cng", "displayName": "Chee Kiat Ng", "active": false, "timeZone": "America/Los_Angeles" }, "updateAuthor": { "name": "cng", "key": "cng", "displayName": "Chee Kiat Ng", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2016-04-21T22:42:32.000+0000", "updated": "2016-04-21T22:42:32.000+0000" }, { "id": "396186", "author": { "name": "hazemkhaled", "key": "hazemkhaled", "displayName": "Hazem Khaled", "active": true, "timeZone": "Europe/Istanbul" }, "body": "Test app added, sorry for late", "updateAuthor": { "name": "hazemkhaled", "key": "hazemkhaled", "displayName": "Hazem Khaled", "active": true, "timeZone": "Europe/Istanbul" }, "created": "2016-09-15T05:32:31.000+0000", "updated": "2016-09-15T05:32:31.000+0000" }, { "id": "396708", "author": { "name": "fmiao", "key": "fmiao", "displayName": "Feon Sua Xin Miao", "active": true, "timeZone": "America/Vancouver" }, "body": "PR merged.", "updateAuthor": { "name": "fmiao", "key": "fmiao", "displayName": "Feon Sua Xin Miao", "active": true, "timeZone": "America/Vancouver" }, "created": "2016-09-20T20:06:29.000+0000", "updated": "2016-09-20T20:06:29.000+0000" } ], "maxResults": 5, "total": 5, "startAt": 0 } } }