{ "id": "126744", "key": "AC-1760", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "12217", "key": "AC", "name": "Appcelerator - INBOX", "projectCategory": { "id": "10000", "description": "", "name": "Customer Service" } }, "resolution": { "id": "5", "description": "All attempts at reproducing this issue failed, or not enough information was available to reproduce the issue. Reading the code produces no clues as to why this behavior would occur. If more information appears later, please reopen the issue.", "name": "Cannot Reproduce" }, "resolutiondate": "2014-03-03T02:50:16.000+0000", "created": "2014-02-22T13:07:17.000+0000", "labels": [ "adapter", "alloy", "sqlite", "studio", "titanium" ], "versions": [], "issuelinks": [ { "id": "50149", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "inwardIssue": { "id": "112178", "key": "TISTUD-4131", "fields": { "summary": "The allowed types in Alloy model wizard in Studio should be populated with valid SQLite column types", "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" } }, "priority": { "name": "Low", "id": "4" }, "issuetype": { "id": "4", "description": "An improvement or enhancement to an existing feature or task.", "name": "Improvement", "subtask": false } } } } ], "assignee": { "name": "ragrawal", "key": "ragrawal", "displayName": "Ritu Agrawal", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2016-03-08T07:40:39.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": "14544", "name": "Alloy", "description": "Please enter tickets related to the Alloy here." }, { "id": "14551", "name": "Studio", "description": "Please enter tickets related to Titanium Studio here." } ], "description": "The console throws a warning, after creating a model through Ti.Studio and then running the project. Steps to reproduce:\r\n\r\n1. Create a new Alloy project\r\n2. Create a new Model using the context-menu (New -> Alloy Model)\r\n3. Select sql to be the adapter\r\n4. Add a column \"title\" with the default value \"string\" and a column \"id\" with the value \"int using the dropdown menu\r\n5. Save the new model and compile\r\n\r\nWarning:\r\n\r\n[WARN] : \"string\" is not a valid sqlite field, using TEXT instead\r\n[WARN] : \"int\" is not a valid sqlite field, using INTEGER instead\r\n\r\nPossible fix: Change the mapping of the column-type or use the correct column-types per default in the dropdown.\r\n", "attachment": [], "flagged": false, "summary": "Alloy: Default model creation throws column-type warning", "creator": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "subtasks": [], "reporter": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "environment": "Mac OS X // Alloy 1.3.1 // iOS 7.0.3 // Ti.SDK 3.2.1.GA // Ti.Studio 3.2.1.201402041146", "comment": { "comments": [ { "id": "294444", "author": { "name": "ragrawal", "key": "ragrawal", "displayName": "Ritu Agrawal", "active": true, "timeZone": "America/Los_Angeles" }, "body": "I followed the exact same steps and was not able to reproduce the issue. My environment is same as yours \n\nMac OSX 10.8.5\nTitanium SDK 3.2.1 GA\nTitanium Studio 3.2.1\nAlloy 1.3.1\niOS 7.0.3\n\nHere is the output of the new model\n\nexports.definition = {\n\tconfig: {\n\t\tcolumns: {\n\t\t \"Title\": \"string\",\n\t\t \"id\": \"int\"\n\t\t},\n\t\tadapter: {\n\t\t\ttype: \"sql\",\n\t\t\tcollection_name: \"Test\"\n\t\t}\n\t},\n\textendModel: function(Model) {\n\t\t_.extend(Model.prototype, {\n\t\t\t// extended functions and properties go here\n\t\t});\n\n\t\treturn Model;\n\t},\n\textendCollection: function(Collection) {\n\t\t_.extend(Collection.prototype, {\n\t\t\t// extended functions and properties go here\n\t\t});\n\n\t\treturn Collection;\n\t}\n};\n\nPlease let me know if I am missing something.", "updateAuthor": { "name": "ragrawal", "key": "ragrawal", "displayName": "Ritu Agrawal", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-02-24T20:03:56.000+0000", "updated": "2014-02-24T20:03:56.000+0000" }, { "id": "294446", "author": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "body": "Hey Ritu,\r\n\r\ndid you compiled the source and checked the console? The type \"int\" should bei \"INTEGER\" and \"string\" should be \"TEXT\". Please check to watch the console on runtime, not on model-creation.", "updateAuthor": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "created": "2014-02-24T20:07:26.000+0000", "updated": "2014-02-24T20:08:09.000+0000" }, { "id": "294450", "author": { "name": "ragrawal", "key": "ragrawal", "displayName": "Ritu Agrawal", "active": true, "timeZone": "America/Los_Angeles" }, "body": "I checked my console output and still cannot see the error. Would it be possible for you to attach your console output?", "updateAuthor": { "name": "ragrawal", "key": "ragrawal", "displayName": "Ritu Agrawal", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-02-24T20:16:31.000+0000", "updated": "2014-02-24T20:16:31.000+0000" }, { "id": "295211", "author": { "name": "ragrawal", "key": "ragrawal", "displayName": "Ritu Agrawal", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Resolving this ticket as we cannot reproduce this issue. We would be happy to reopen it if you can provide more information on how to reproduce it.", "updateAuthor": { "name": "ragrawal", "key": "ragrawal", "displayName": "Ritu Agrawal", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-03-03T02:50:16.000+0000", "updated": "2014-03-03T02:50:16.000+0000" }, { "id": "310881", "author": { "name": "michael", "key": "michael", "displayName": "Michael Gangolf", "active": true, "timeZone": "Europe/Berlin" }, "body": "Same here (Linux, Titanium SDK 3.2.3, TiStudio 3.2.3.201404181442). \r\n!http://www.migaweb.de/model1.jpg!\r\n!http://www.migaweb.de/model2.jpg!\r\n!http://www.migaweb.de/model3.jpg!", "updateAuthor": { "name": "michael", "key": "michael", "displayName": "Michael Gangolf", "active": true, "timeZone": "Europe/Berlin" }, "created": "2014-06-25T14:14:06.000+0000", "updated": "2014-06-25T14:14:06.000+0000" } ], "maxResults": 5, "total": 5, "startAt": 0 } } }