{"action":"opened","number":61,"pull_request":{"url":"https://api.github.com/repos/adaptlearning/adapt-contrib-textInput/pulls/61","id":39174950,"html_url":"https://github.com/adaptlearning/adapt-contrib-textInput/pull/61","diff_url":"https://github.com/adaptlearning/adapt-contrib-textInput/pull/61.diff","patch_url":"https://github.com/adaptlearning/adapt-contrib-textInput/pull/61.patch","issue_url":"https://api.github.com/repos/adaptlearning/adapt-contrib-textInput/issues/61","number":61,"state":"open","locked":false,"title":"ABU-786 Fix","user":{"login":"LukaszGrela","id":7643591,"avatar_url":"https://avatars.githubusercontent.com/u/7643591?v=3","gravatar_id":"","url":"https://api.github.com/users/LukaszGrela","html_url":"https://github.com/LukaszGrela","followers_url":"https://api.github.com/users/LukaszGrela/followers","following_url":"https://api.github.com/users/LukaszGrela/following{/other_user}","gists_url":"https://api.github.com/users/LukaszGrela/gists{/gist_id}","starred_url":"https://api.github.com/users/LukaszGrela/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LukaszGrela/subscriptions","organizations_url":"https://api.github.com/users/LukaszGrela/orgs","repos_url":"https://api.github.com/users/LukaszGrela/repos","events_url":"https://api.github.com/users/LukaszGrela/events{/privacy}","received_events_url":"https://api.github.com/users/LukaszGrela/received_events","type":"User","site_admin":false},"body":"Missing else in the isCorrect resulting in specific and generic answer marking.\r\nChanged the _.contains taht was case sensitive to _.filter taht allows modify casing content of possible answers\r\n\r\nIn addition to the ABU-786 the components.json needs to be modified to be:\r\n\r\n```\r\n\t{\r\n\t\t\"_id\": \"c-70\",\r\n\t\t\"_parentId\": \"b-55\",\r\n\t\t\"_type\": \"component\",\r\n\t\t\"_component\": \"textinput\",\r\n\t\t\"_classes\": \"\",\r\n\t\t\"_layout\": \"left\",\r\n\t\t\"_attempts\": 1,\r\n\t\t\"_questionWeight\": 1,\r\n\t\t\"_isRandom\": true,\r\n\t\t\"_allowsAnyCase\": true,\r\n\t\t\"_allowsPunctuation\": true,\r\n\t\t\"title\": \"Text Input\",\r\n\t\t\"displayTitle\": \"Text Input\",\r\n\t\t\"body\": \"Can you name one of the three companies that established Adapt is a community led Open Source project?\",\r\n\t\t\"instruction\": \"Input your answers and select Submit.\",\r\n            \"_answers\": [\r\n                [\"City & Guilds Kineo\"],\r\n                [\"Learning Pool\"],\r\n                [\"Sponge\"]\r\n            ],\r\n\t\t\"_items\": [\r\n\t\t\t{\r\n\t\t\t\t\"prefix\": \"prefix\",\r\n\t\t\t\t\"placeholder\": \"Enter answer here\",\r\n\t\t\t\t\"_answers\": [\r\n\t\t\t\t\t\"City & Guilds Kineo\",\r\n\t\t\t\t\t\"Learning Pool\",\r\n\t\t\t\t\t\"Sponge\"\r\n\t\t\t\t],\r\n\t\t\t\t\"suffix\": \"suffix\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\t\"prefix\": \"\",\r\n\t\t\t\t\"placeholder\": \"Enter answer here\",\r\n\t\t\t\t\"_answers\": [\r\n\t\t\t\t\t\"Learning Pool\",\r\n\t\t\t\t\t\"City & Guilds Kineo\",\r\n\t\t\t\t\t\"Sponge\"\r\n\t\t\t\t],\r\n\t\t\t\t\"suffix\": \"\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\t\"prefix\": \"\",\r\n\t\t\t\t\"placeholder\": \"Enter answer here\",\r\n\t\t\t\t\"_answers\": [\r\n\t\t\t\t\t\"Sponge\",\r\n\t\t\t\t\t\"City & Guilds Kineo\",\r\n\t\t\t\t\t\"Learning Pool\"\r\n\t\t\t\t],\r\n\t\t\t\t\"suffix\": \"\"\r\n\t\t\t}\r\n\t\t],\r\n\t\t\"_feedback\": {\r\n\t\t\t\"correct\": \"Correct answer feedback.<br><br>That’s correct. The Adapt Open Source project was established by City & Guilds Kineo, Learning Pool and Sponge. At the time of the writing there a total of seven <a href='https://community.adaptlearning.org/mod/page/view.php?id=51' target='_blank'>official collaborators</a>.<br><br>Component facts: <strong>Text input</strong> components let learners enter their own answers, which is great for questions that require a bit more flexibility, like those with answers that could be written as both full words and numbers.\",\r\n\t\t\t\"_partlyCorrect\": {\r\n\t\t\t\t\"notFinal\": \"notFinal\",\r\n\t\t\t\t\"final\": \"Incorrect answer feedback.<br><br>Sorry, that’s not right. The Adapt Open Source project was established by City & Guilds Kineo, Learning Pool and Sponge. At the time of the writing there a total of seven <a href='https://community.adaptlearning.org/mod/page/view.php?id=51' target='_blank'>official collaborators</a>.<br><br>Component facts: <strong>Text input</strong> components let learners enter their own answers, which is great for questions that require a bit more flexibility, like those with answers that could be written as both full words and numbers.\"\r\n\t\t\t},\r\n\t\t\t\"_incorrect\": {\r\n\t\t\t\t\"notFinal\": \"notFinal\",\r\n\t\t\t\t\"final\": \"Incorrect answer feedback.<br><br>Sorry, that’s not right. The Adapt Open Source project was established by City & Guilds Kineo, Learning Pool and Sponge. At the time of the writing there a total of seven <a href='https://community.adaptlearning.org/mod/page/view.php?id=51' target='_blank'>official collaborators</a>.<br><br>Component facts: <strong>Text input</strong> components let learners enter their own answers, which is great for questions that require a bit more flexibility, like those with answers that could be written as both full words and numbers.\"\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"_pageLevelProgress\": {\r\n\t\t\t\"_isEnabled\": true\r\n\t\t}\r\n\t},\r\n```\r\nadded _answers at the top level, changed the first item in the _answers per item (this is so the correct answer is not repeated).","created_at":"2015-07-03T13:23:50Z","updated_at":"2015-07-03T13:23:50Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/adaptlearning/adapt-contrib-textInput/pulls/61/commits","review_comments_url":"https://api.github.com/repos/adaptlearning/adapt-contrib-textInput/pulls/61/comments","review_comment_url":"https://api.github.com/repos/adaptlearning/adapt-contrib-textInput/pulls/comments{/number}","comments_url":"https://api.github.com/repos/adaptlearning/adapt-contrib-textInput/issues/61/comments","statuses_url":"https://api.github.com/repos/adaptlearning/adapt-contrib-textInput/statuses/61f6de047cf1fa66fa098878a26e6b2e1407c5f9","head":{"label":"LukaszGrela:develop","ref":"develop","sha":"61f6de047cf1fa66fa098878a26e6b2e1407c5f9","user":{"login":"LukaszGrela","id":7643591,"avatar_url":"https://avatars.githubusercontent.com/u/7643591?v=3","gravatar_id":"","url":"https://api.github.com/users/LukaszGrela","html_url":"https://github.com/LukaszGrela","followers_url":"https://api.github.com/users/LukaszGrela/followers","following_url":"https://api.github.com/users/LukaszGrela/following{/other_user}","gists_url":"https://api.github.com/users/LukaszGrela/gists{/gist_id}","starred_url":"https://api.github.com/users/LukaszGrela/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LukaszGrela/subscriptions","organizations_url":"https://api.github.com/users/LukaszGrela/orgs","repos_url":"https://api.github.com/users/LukaszGrela/repos","events_url":"https://api.github.com/users/LukaszGrela/events{/privacy}","received_events_url":"https://api.github.com/users/LukaszGrela/received_events","type":"User","site_admin":false},"repo":{"id":38493289,"name":"ABU-786","full_name":"LukaszGrela/ABU-786","owner":{"login":"LukaszGrela","id":7643591,"avatar_url":"https://avatars.githubusercontent.com/u/7643591?v=3","gravatar_id":"","url":"https://api.github.com/users/LukaszGrela","html_url":"https://github.com/LukaszGrela","followers_url":"https://api.github.com/users/LukaszGrela/followers","following_url":"https://api.github.com/users/LukaszGrela/following{/other_user}","gists_url":"https://api.github.com/users/LukaszGrela/gists{/gist_id}","starred_url":"https://api.github.com/users/LukaszGrela/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LukaszGrela/subscriptions","organizations_url":"https://api.github.com/users/LukaszGrela/orgs","repos_url":"https://api.github.com/users/LukaszGrela/repos","events_url":"https://api.github.com/users/LukaszGrela/events{/privacy}","received_events_url":"https://api.github.com/users/LukaszGrela/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/LukaszGrela/ABU-786","description":"A question component that allows the learner to input text based upon a question stem","fork":true,"url":"https://api.github.com/repos/LukaszGrela/ABU-786","forks_url":"https://api.github.com/repos/LukaszGrela/ABU-786/forks","keys_url":"https://api.github.com/repos/LukaszGrela/ABU-786/keys{/key_id}","collaborators_url":"https://api.github.com/repos/LukaszGrela/ABU-786/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/LukaszGrela/ABU-786/teams","hooks_url":"https://api.github.com/repos/LukaszGrela/ABU-786/hooks","issue_events_url":"https://api.github.com/repos/LukaszGrela/ABU-786/issues/events{/number}","events_url":"https://api.github.com/repos/LukaszGrela/ABU-786/events","assignees_url":"https://api.github.com/repos/LukaszGrela/ABU-786/assignees{/user}","branches_url":"https://api.github.com/repos/LukaszGrela/ABU-786/branches{/branch}","tags_url":"https://api.github.com/repos/LukaszGrela/ABU-786/tags","blobs_url":"https://api.github.com/repos/LukaszGrela/ABU-786/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/LukaszGrela/ABU-786/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/LukaszGrela/ABU-786/git/refs{/sha}","trees_url":"https://api.github.com/repos/LukaszGrela/ABU-786/git/trees{/sha}","statuses_url":"https://api.github.com/repos/LukaszGrela/ABU-786/statuses/{sha}","languages_url":"https://api.github.com/repos/LukaszGrela/ABU-786/languages","stargazers_url":"https://api.github.com/repos/LukaszGrela/ABU-786/stargazers","contributors_url":"https://api.github.com/repos/LukaszGrela/ABU-786/contributors","subscribers_url":"https://api.github.com/repos/LukaszGrela/ABU-786/subscribers","subscription_url":"https://api.github.com/repos/LukaszGrela/ABU-786/subscription","commits_url":"https://api.github.com/repos/LukaszGrela/ABU-786/commits{/sha}","git_commits_url":"https://api.github.com/repos/LukaszGrela/ABU-786/git/commits{/sha}","comments_url":"https://api.github.com/repos/LukaszGrela/ABU-786/comments{/number}","issue_comment_url":"https://api.github.com/repos/LukaszGrela/ABU-786/issues/comments{/number}","contents_url":"https://api.github.com/repos/LukaszGrela/ABU-786/contents/{+path}","compare_url":"https://api.github.com/repos/LukaszGrela/ABU-786/compare/{base}...{head}","merges_url":"https://api.github.com/repos/LukaszGrela/ABU-786/merges","archive_url":"https://api.github.com/repos/LukaszGrela/ABU-786/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/LukaszGrela/ABU-786/downloads","issues_url":"https://api.github.com/repos/LukaszGrela/ABU-786/issues{/number}","pulls_url":"https://api.github.com/repos/LukaszGrela/ABU-786/pulls{/number}","milestones_url":"https://api.github.com/repos/LukaszGrela/ABU-786/milestones{/number}","notifications_url":"https://api.github.com/repos/LukaszGrela/ABU-786/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/LukaszGrela/ABU-786/labels{/name}","releases_url":"https://api.github.com/repos/LukaszGrela/ABU-786/releases{/id}","created_at":"2015-07-03T13:10:37Z","updated_at":"2015-07-03T13:11:49Z","pushed_at":"2015-07-03T13:20:17Z","git_url":"git://github.com/LukaszGrela/ABU-786.git","ssh_url":"git@github.com:LukaszGrela/ABU-786.git","clone_url":"https://github.com/LukaszGrela/ABU-786.git","svn_url":"https://github.com/LukaszGrela/ABU-786","homepage":null,"size":537,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"develop"}},"base":{"label":"adaptlearning:develop","ref":"develop","sha":"c845e1f149c570b353107459b2a1d6eaa5c10da8","user":{"login":"adaptlearning","id":5629464,"avatar_url":"https://avatars.githubusercontent.com/u/5629464?v=3","gravatar_id":"","url":"https://api.github.com/users/adaptlearning","html_url":"https://github.com/adaptlearning","followers_url":"https://api.github.com/users/adaptlearning/followers","following_url":"https://api.github.com/users/adaptlearning/following{/other_user}","gists_url":"https://api.github.com/users/adaptlearning/gists{/gist_id}","starred_url":"https://api.github.com/users/adaptlearning/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/adaptlearning/subscriptions","organizations_url":"https://api.github.com/users/adaptlearning/orgs","repos_url":"https://api.github.com/users/adaptlearning/repos","events_url":"https://api.github.com/users/adaptlearning/events{/privacy}","received_events_url":"https://api.github.com/users/adaptlearning/received_events","type":"Organization","site_admin":false},"repo":{"id":15334826,"name":"adapt-contrib-textInput","full_name":"adaptlearning/adapt-contrib-textInput","owner":{"login":"adaptlearning","id":5629464,"avatar_url":"https://avatars.githubusercontent.com/u/5629464?v=3","gravatar_id":"","url":"https://api.github.com/users/adaptlearning","html_url":"https://github.com/adaptlearning","followers_url":"https://api.github.com/users/adaptlearning/followers","following_url":"https://api.github.com/users/adaptlearning/following{/other_user}","gists_url":"https://api.github.com/users/adaptlearning/gists{/gist_id}","starred_url":"https://api.github.com/users/adaptlearning/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/adaptlearning/subscriptions","organizations_url":"https://api.github.com/users/adaptlearning/orgs","repos_url":"https://api.github.com/users/adaptlearning/repos","events_url":"https://api.github.com/users/adaptlearning/events{/privacy}","received_events_url":"https://api.github.com/users/adaptlearning/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/adaptlearning/adapt-contrib-textInput","description":"A question component that allows the learner to input text based upon a question stem","fork":false,"url":"https://api.github.com/repos/adaptlearning/adapt-contrib-textInput","forks_url":"https://api.github.com/repos/adaptlearning/adapt-contrib-textInput/forks","keys_url":"https://api.github.com/repos/adaptlearning/adapt-contrib-textInput/keys{/key_id}","collaborators_url":"https://api.github.com/repos/adaptlearning/adapt-contrib-textInput/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/adaptlearning/adapt-contrib-textInput/teams","hooks_url":"https://api.github.com/repos/adaptlearning/adapt-contrib-textInput/hooks","issue_events_url":"https://api.github.com/repos/adaptlearning/adapt-contrib-textInput/issues/events{/number}","events_url":"https://api.github.com/repos/adaptlearning/adapt-contrib-textInput/events","assignees_url":"https://api.github.com/repos/adaptlearning/adapt-contrib-textInput/assignees{/user}","branches_url":"https://api.github.com/repos/adaptlearning/adapt-contrib-textInput/branches{/branch}","tags_url":"https://api.github.com/repos/adaptlearning/adapt-contrib-textInput/tags","blobs_url":"https://api.github.com/repos/adaptlearning/adapt-contrib-textInput/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/adaptlearning/adapt-contrib-textInput/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/adaptlearning/adapt-contrib-textInput/git/refs{/sha}","trees_url":"https://api.github.com/repos/adaptlearning/adapt-contrib-textInput/git/trees{/sha}","statuses_url":"https://api.github.com/repos/adaptlearning/adapt-contrib-textInput/statuses/{sha}","languages_url":"https://api.github.com/repos/adaptlearning/adapt-contrib-textInput/languages","stargazers_url":"https://api.github.com/repos/adaptlearning/adapt-contrib-textInput/stargazers","contributors_url":"https://api.github.com/repos/adaptlearning/adapt-contrib-textInput/contributors","subscribers_url":"https://api.github.com/repos/adaptlearning/adapt-contrib-textInput/subscribers","subscription_url":"https://api.github.com/repos/adaptlearning/adapt-contrib-textInput/subscription","commits_url":"https://api.github.com/repos/adaptlearning/adapt-contrib-textInput/commits{/sha}","git_commits_url":"https://api.github.com/repos/adaptlearning/adapt-contrib-textInput/git/commits{/sha}","comments_url":"https://api.github.com/repos/adaptlearning/adapt-contrib-textInput/comments{/number}","issue_comment_url":"https://api.github.com/repos/adaptlearning/adapt-contrib-textInput/issues/comments{/number}","contents_url":"https://api.github.com/repos/adaptlearning/adapt-contrib-textInput/contents/{+path}","compare_url":"https://api.github.com/repos/adaptlearning/adapt-contrib-textInput/compare/{base}...{head}","merges_url":"https://api.github.com/repos/adaptlearning/adapt-contrib-textInput/merges","archive_url":"https://api.github.com/repos/adaptlearning/adapt-contrib-textInput/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/adaptlearning/adapt-contrib-textInput/downloads","issues_url":"https://api.github.com/repos/adaptlearning/adapt-contrib-textInput/issues{/number}","pulls_url":"https://api.github.com/repos/adaptlearning/adapt-contrib-textInput/pulls{/number}","milestones_url":"https://api.github.com/repos/adaptlearning/adapt-contrib-textInput/milestones{/number}","notifications_url":"https://api.github.com/repos/adaptlearning/adapt-contrib-textInput/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/adaptlearning/adapt-contrib-textInput/labels{/name}","releases_url":"https://api.github.com/repos/adaptlearning/adapt-contrib-textInput/releases{/id}","created_at":"2013-12-20T09:36:40Z","updated_at":"2015-02-04T16:06:35Z","pushed_at":"2015-07-01T14:20:35Z","git_url":"git://github.com/adaptlearning/adapt-contrib-textInput.git","ssh_url":"git@github.com:adaptlearning/adapt-contrib-textInput.git","clone_url":"https://github.com/adaptlearning/adapt-contrib-textInput.git","svn_url":"https://github.com/adaptlearning/adapt-contrib-textInput","homepage":null,"size":537,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":7,"mirror_url":null,"open_issues_count":5,"forks":7,"open_issues":5,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/adaptlearning/adapt-contrib-textInput/pulls/61"},"html":{"href":"https://github.com/adaptlearning/adapt-contrib-textInput/pull/61"},"issue":{"href":"https://api.github.com/repos/adaptlearning/adapt-contrib-textInput/issues/61"},"comments":{"href":"https://api.github.com/repos/adaptlearning/adapt-contrib-textInput/issues/61/comments"},"review_comments":{"href":"https://api.github.com/repos/adaptlearning/adapt-contrib-textInput/pulls/61/comments"},"review_comment":{"href":"https://api.github.com/repos/adaptlearning/adapt-contrib-textInput/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/adaptlearning/adapt-contrib-textInput/pulls/61/commits"},"statuses":{"href":"https://api.github.com/repos/adaptlearning/adapt-contrib-textInput/statuses/61f6de047cf1fa66fa098878a26e6b2e1407c5f9"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":8,"deletions":4,"changed_files":1}}