{ "id": "116767", "key": "ALOY-732", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "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": "15530", "description": "2013 Sprint 14", "name": "2013 Sprint 14", "archived": true, "released": true, "releaseDate": "2013-07-15" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2013-07-08T19:56:03.000+0000", "created": "2013-07-02T18:39:06.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": "2013-07-15T23:10:34.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": "13605", "name": "Models" } ], "description": "When you set both `db_file` to preload an existing SQLite database for a model, the `db_name` gets ignored. This is because a typo in the SQLite sync adapter for which I'll do a PR.\r\n\r\n{code}\r\nvar dbName = config.adapter.db_name = match[2];\r\n{code}\r\n\r\nShould be:\r\n\r\n{code}\r\nvar dbName = config.adapter.db_name || match[2];\r\n{code}", "attachment": [], "flagged": false, "summary": "Alloy: Model db_name is ignored when db_file is set", "creator": { "name": "fokkezb", "key": "fokke", "displayName": "Fokke Zandbergen", "active": true, "timeZone": "Europe/Amsterdam" }, "subtasks": [], "reporter": { "name": "fokkezb", "key": "fokke", "displayName": "Fokke Zandbergen", "active": true, "timeZone": "Europe/Amsterdam" }, "environment": "Alloy 1.1.3", "comment": { "comments": [ { "id": "260633", "author": { "name": "fokkezb", "key": "fokke", "displayName": "Fokke Zandbergen", "active": true, "timeZone": "Europe/Amsterdam" }, "body": "The PR: https://github.com/appcelerator/alloy/pull/168", "updateAuthor": { "name": "fokkezb", "key": "fokke", "displayName": "Fokke Zandbergen", "active": true, "timeZone": "Europe/Amsterdam" }, "created": "2013-07-02T18:43:45.000+0000", "updated": "2013-07-02T18:43:45.000+0000" }, { "id": "260996", "author": { "name": "tlukasavage", "key": "tlukasavage", "displayName": "Tony Lukasavage", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Reviewed and merged. Also added a change for testing.\r\n\r\nPR: https://github.com/appcelerator/alloy/pull/168\r\ntest app: https://github.com/appcelerator/alloy/tree/master/test/apps/models/sql_preload\r\n\r\nThe existing \"models/sql_preload\" test app was modified to use both db_name and db_file. If you run it on iOS (from a reset), you'll notice that it lists all the expected fighter names. Additionally, if you navigate to your apps directory, in my case:\r\n\r\n{code}\r\n/Users/tlukasavage/Library/Application Support/iPhone Simulator/6.1/Applications/25822227-C9F2-40C2-82F7-9784F2DDF002/Library/Private Documents\r\n{code}\r\n\r\nYou'll see that the database file is named \"fighters\" instead of \"myapp\" now.", "updateAuthor": { "name": "tlukasavage", "key": "tlukasavage", "displayName": "Tony Lukasavage", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-07-08T19:56:03.000+0000", "updated": "2013-07-08T19:56:03.000+0000" }, { "id": "261912", "author": { "name": "fcasali", "key": "fcasali", "displayName": "Federico Casali", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Verified as fixed. \n\nEnvironment:\nTitanium SDK 3.1.2.v20130710144553\nAppcelerator Studio 3.1.2.201307101037\nAlloy 1.2.0\n\nAndroid device 4.2.2 and iOS 5.\n\nClosing.", "updateAuthor": { "name": "fcasali", "key": "fcasali", "displayName": "Federico Casali", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-07-15T23:10:14.000+0000", "updated": "2013-07-15T23:10:14.000+0000" } ], "maxResults": 3, "total": 3, "startAt": 0 } } }