{"action":"created","comment":{"url":"https://api.github.com/repos/edx/programs/pulls/comments/44934998","id":44934998,"diff_hunk":"@@ -0,0 +1,68 @@\n+define([\n+        'backbone',\n+        'backbone.validation',\n+        'underscore',\n+        'gettext'\n+    ],\n+    function( Backbone, BackboneValidation, _ ) {\n+        'use strict';\n+\n+        var errorClass = 'has-error',\n+            messageEl = '.field-message',\n+            messageContent = '.field-message-content';\n+\n+        // These are the same messages provided by Backbone.Validation,\n+        // marked for translation.\n+        // See: http://thedersen.com/projects/backbone-validation/#overriding-the-default-error-messages.\n+        _.extend( Backbone.Validation.messages, {\n+            required: gettext( '{0} is required' ),\n+            acceptance: gettext( '{0} must be accepted' ),\n+            min: gettext( '{0} must be greater than or equal to {1}' ),\n+            max: gettext( '{0} must be less than or equal to {1}' ),\n+            range: gettext( '{0} must be between {1} and {2}' ),\n+            length: gettext( '{0} must be {1} characters' ),\n+            minLength: gettext( '{0} must be at least {1} characters' ),\n+            maxLength: gettext( '{0} must be at most {1} characters' ),\n+            rangeLength: gettext( '{0} must be between {1} and {2} characters' ),\n+            oneOf: gettext( '{0} must be one of: gettext( {1}' ),\n+            equalTo: gettext( '{0} must be the same as {1}' ),\n+            digits: gettext( '{0} must only contain digits' ),\n+            number: gettext( '{0} must be a number' ),\n+            email: gettext( '{0} must be a valid email' ),\n+            url: gettext( '{0} must be a valid url' ),\n+            inlinePattern: gettext( '{0} is invalid' )\n+        });\n+\n+        _.extend( Backbone.Validation.callbacks, {\n+            // Gets called when a previously invalid field in the\n+            // view becomes valid. Removes any error message.\n+            // Should be overridden with custom functionality.","path":"programs/static/js/utils/validation_config.js","position":39,"original_position":39,"commit_id":"0880655ae47da35701c7c787a43b3c8ae030c12e","original_commit_id":"0880655ae47da35701c7c787a43b3c8ae030c12e","user":{"login":"rlucioni","id":969289,"avatar_url":"https://avatars.githubusercontent.com/u/969289?v=3","gravatar_id":"","url":"https://api.github.com/users/rlucioni","html_url":"https://github.com/rlucioni","followers_url":"https://api.github.com/users/rlucioni/followers","following_url":"https://api.github.com/users/rlucioni/following{/other_user}","gists_url":"https://api.github.com/users/rlucioni/gists{/gist_id}","starred_url":"https://api.github.com/users/rlucioni/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rlucioni/subscriptions","organizations_url":"https://api.github.com/users/rlucioni/orgs","repos_url":"https://api.github.com/users/rlucioni/repos","events_url":"https://api.github.com/users/rlucioni/events{/privacy}","received_events_url":"https://api.github.com/users/rlucioni/received_events","type":"User","site_admin":false},"body":"You can probably get rid of this line.","created_at":"2015-11-16T15:19:02Z","updated_at":"2015-11-16T15:19:02Z","html_url":"https://github.com/edx/programs/pull/39#discussion_r44934998","pull_request_url":"https://api.github.com/repos/edx/programs/pulls/39","_links":{"self":{"href":"https://api.github.com/repos/edx/programs/pulls/comments/44934998"},"html":{"href":"https://github.com/edx/programs/pull/39#discussion_r44934998"},"pull_request":{"href":"https://api.github.com/repos/edx/programs/pulls/39"}}},"pull_request":{"url":"https://api.github.com/repos/edx/programs/pulls/39","id":50527337,"html_url":"https://github.com/edx/programs/pull/39","diff_url":"https://github.com/edx/programs/pull/39.diff","patch_url":"https://github.com/edx/programs/pull/39.patch","issue_url":"https://api.github.com/repos/edx/programs/issues/39","number":39,"state":"open","locked":false,"title":"Alasdair/ecom 2754 editable fields","user":{"login":"AlasdairSwan","id":2052185,"avatar_url":"https://avatars.githubusercontent.com/u/2052185?v=3","gravatar_id":"","url":"https://api.github.com/users/AlasdairSwan","html_url":"https://github.com/AlasdairSwan","followers_url":"https://api.github.com/users/AlasdairSwan/followers","following_url":"https://api.github.com/users/AlasdairSwan/following{/other_user}","gists_url":"https://api.github.com/users/AlasdairSwan/gists{/gist_id}","starred_url":"https://api.github.com/users/AlasdairSwan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AlasdairSwan/subscriptions","organizations_url":"https://api.github.com/users/AlasdairSwan/orgs","repos_url":"https://api.github.com/users/AlasdairSwan/repos","events_url":"https://api.github.com/users/AlasdairSwan/events{/privacy}","received_events_url":"https://api.github.com/users/AlasdairSwan/received_events","type":"User","site_admin":false},"body":"@jimabramson @rlucioni please review. There is a failing test that I am debugging but you can start reviewing as is because any changes should be minor (i.e. tests pass locally and functionality works so it's probably an issue with the test that is failing).","created_at":"2015-11-12T15:48:46Z","updated_at":"2015-11-16T15:19:02Z","closed_at":null,"merged_at":null,"merge_commit_sha":"e895170167b6ed1bd94c77b3492c004264426662","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/edx/programs/pulls/39/commits","review_comments_url":"https://api.github.com/repos/edx/programs/pulls/39/comments","review_comment_url":"https://api.github.com/repos/edx/programs/pulls/comments{/number}","comments_url":"https://api.github.com/repos/edx/programs/issues/39/comments","statuses_url":"https://api.github.com/repos/edx/programs/statuses/0880655ae47da35701c7c787a43b3c8ae030c12e","head":{"label":"edx:alasdair/ECOM-2754-editable-fields","ref":"alasdair/ECOM-2754-editable-fields","sha":"0880655ae47da35701c7c787a43b3c8ae030c12e","user":{"login":"edx","id":3179841,"avatar_url":"https://avatars.githubusercontent.com/u/3179841?v=3","gravatar_id":"","url":"https://api.github.com/users/edx","html_url":"https://github.com/edx","followers_url":"https://api.github.com/users/edx/followers","following_url":"https://api.github.com/users/edx/following{/other_user}","gists_url":"https://api.github.com/users/edx/gists{/gist_id}","starred_url":"https://api.github.com/users/edx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/edx/subscriptions","organizations_url":"https://api.github.com/users/edx/orgs","repos_url":"https://api.github.com/users/edx/repos","events_url":"https://api.github.com/users/edx/events{/privacy}","received_events_url":"https://api.github.com/users/edx/received_events","type":"Organization","site_admin":false},"repo":{"id":42223848,"name":"programs","full_name":"edx/programs","owner":{"login":"edx","id":3179841,"avatar_url":"https://avatars.githubusercontent.com/u/3179841?v=3","gravatar_id":"","url":"https://api.github.com/users/edx","html_url":"https://github.com/edx","followers_url":"https://api.github.com/users/edx/followers","following_url":"https://api.github.com/users/edx/following{/other_user}","gists_url":"https://api.github.com/users/edx/gists{/gist_id}","starred_url":"https://api.github.com/users/edx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/edx/subscriptions","organizations_url":"https://api.github.com/users/edx/orgs","repos_url":"https://api.github.com/users/edx/repos","events_url":"https://api.github.com/users/edx/events{/privacy}","received_events_url":"https://api.github.com/users/edx/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/edx/programs","description":"Django application used as the backend to support Programs-based product lines such as edX's XSeries offering.","fork":false,"url":"https://api.github.com/repos/edx/programs","forks_url":"https://api.github.com/repos/edx/programs/forks","keys_url":"https://api.github.com/repos/edx/programs/keys{/key_id}","collaborators_url":"https://api.github.com/repos/edx/programs/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/edx/programs/teams","hooks_url":"https://api.github.com/repos/edx/programs/hooks","issue_events_url":"https://api.github.com/repos/edx/programs/issues/events{/number}","events_url":"https://api.github.com/repos/edx/programs/events","assignees_url":"https://api.github.com/repos/edx/programs/assignees{/user}","branches_url":"https://api.github.com/repos/edx/programs/branches{/branch}","tags_url":"https://api.github.com/repos/edx/programs/tags","blobs_url":"https://api.github.com/repos/edx/programs/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/edx/programs/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/edx/programs/git/refs{/sha}","trees_url":"https://api.github.com/repos/edx/programs/git/trees{/sha}","statuses_url":"https://api.github.com/repos/edx/programs/statuses/{sha}","languages_url":"https://api.github.com/repos/edx/programs/languages","stargazers_url":"https://api.github.com/repos/edx/programs/stargazers","contributors_url":"https://api.github.com/repos/edx/programs/contributors","subscribers_url":"https://api.github.com/repos/edx/programs/subscribers","subscription_url":"https://api.github.com/repos/edx/programs/subscription","commits_url":"https://api.github.com/repos/edx/programs/commits{/sha}","git_commits_url":"https://api.github.com/repos/edx/programs/git/commits{/sha}","comments_url":"https://api.github.com/repos/edx/programs/comments{/number}","issue_comment_url":"https://api.github.com/repos/edx/programs/issues/comments{/number}","contents_url":"https://api.github.com/repos/edx/programs/contents/{+path}","compare_url":"https://api.github.com/repos/edx/programs/compare/{base}...{head}","merges_url":"https://api.github.com/repos/edx/programs/merges","archive_url":"https://api.github.com/repos/edx/programs/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/edx/programs/downloads","issues_url":"https://api.github.com/repos/edx/programs/issues{/number}","pulls_url":"https://api.github.com/repos/edx/programs/pulls{/number}","milestones_url":"https://api.github.com/repos/edx/programs/milestones{/number}","notifications_url":"https://api.github.com/repos/edx/programs/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/edx/programs/labels{/name}","releases_url":"https://api.github.com/repos/edx/programs/releases{/id}","created_at":"2015-09-10T05:22:07Z","updated_at":"2015-11-02T21:19:30Z","pushed_at":"2015-11-16T15:10:19Z","git_url":"git://github.com/edx/programs.git","ssh_url":"git@github.com:edx/programs.git","clone_url":"https://github.com/edx/programs.git","svn_url":"https://github.com/edx/programs","homepage":"http://open-edx-programs-guide.readthedocs.org/en/latest/","size":1168,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"edx:master","ref":"master","sha":"4c0c0e529c630ddac438a9c1d5be94233c180be5","user":{"login":"edx","id":3179841,"avatar_url":"https://avatars.githubusercontent.com/u/3179841?v=3","gravatar_id":"","url":"https://api.github.com/users/edx","html_url":"https://github.com/edx","followers_url":"https://api.github.com/users/edx/followers","following_url":"https://api.github.com/users/edx/following{/other_user}","gists_url":"https://api.github.com/users/edx/gists{/gist_id}","starred_url":"https://api.github.com/users/edx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/edx/subscriptions","organizations_url":"https://api.github.com/users/edx/orgs","repos_url":"https://api.github.com/users/edx/repos","events_url":"https://api.github.com/users/edx/events{/privacy}","received_events_url":"https://api.github.com/users/edx/received_events","type":"Organization","site_admin":false},"repo":{"id":42223848,"name":"programs","full_name":"edx/programs","owner":{"login":"edx","id":3179841,"avatar_url":"https://avatars.githubusercontent.com/u/3179841?v=3","gravatar_id":"","url":"https://api.github.com/users/edx","html_url":"https://github.com/edx","followers_url":"https://api.github.com/users/edx/followers","following_url":"https://api.github.com/users/edx/following{/other_user}","gists_url":"https://api.github.com/users/edx/gists{/gist_id}","starred_url":"https://api.github.com/users/edx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/edx/subscriptions","organizations_url":"https://api.github.com/users/edx/orgs","repos_url":"https://api.github.com/users/edx/repos","events_url":"https://api.github.com/users/edx/events{/privacy}","received_events_url":"https://api.github.com/users/edx/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/edx/programs","description":"Django application used as the backend to support Programs-based product lines such as edX's XSeries offering.","fork":false,"url":"https://api.github.com/repos/edx/programs","forks_url":"https://api.github.com/repos/edx/programs/forks","keys_url":"https://api.github.com/repos/edx/programs/keys{/key_id}","collaborators_url":"https://api.github.com/repos/edx/programs/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/edx/programs/teams","hooks_url":"https://api.github.com/repos/edx/programs/hooks","issue_events_url":"https://api.github.com/repos/edx/programs/issues/events{/number}","events_url":"https://api.github.com/repos/edx/programs/events","assignees_url":"https://api.github.com/repos/edx/programs/assignees{/user}","branches_url":"https://api.github.com/repos/edx/programs/branches{/branch}","tags_url":"https://api.github.com/repos/edx/programs/tags","blobs_url":"https://api.github.com/repos/edx/programs/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/edx/programs/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/edx/programs/git/refs{/sha}","trees_url":"https://api.github.com/repos/edx/programs/git/trees{/sha}","statuses_url":"https://api.github.com/repos/edx/programs/statuses/{sha}","languages_url":"https://api.github.com/repos/edx/programs/languages","stargazers_url":"https://api.github.com/repos/edx/programs/stargazers","contributors_url":"https://api.github.com/repos/edx/programs/contributors","subscribers_url":"https://api.github.com/repos/edx/programs/subscribers","subscription_url":"https://api.github.com/repos/edx/programs/subscription","commits_url":"https://api.github.com/repos/edx/programs/commits{/sha}","git_commits_url":"https://api.github.com/repos/edx/programs/git/commits{/sha}","comments_url":"https://api.github.com/repos/edx/programs/comments{/number}","issue_comment_url":"https://api.github.com/repos/edx/programs/issues/comments{/number}","contents_url":"https://api.github.com/repos/edx/programs/contents/{+path}","compare_url":"https://api.github.com/repos/edx/programs/compare/{base}...{head}","merges_url":"https://api.github.com/repos/edx/programs/merges","archive_url":"https://api.github.com/repos/edx/programs/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/edx/programs/downloads","issues_url":"https://api.github.com/repos/edx/programs/issues{/number}","pulls_url":"https://api.github.com/repos/edx/programs/pulls{/number}","milestones_url":"https://api.github.com/repos/edx/programs/milestones{/number}","notifications_url":"https://api.github.com/repos/edx/programs/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/edx/programs/labels{/name}","releases_url":"https://api.github.com/repos/edx/programs/releases{/id}","created_at":"2015-09-10T05:22:07Z","updated_at":"2015-11-02T21:19:30Z","pushed_at":"2015-11-16T15:10:19Z","git_url":"git://github.com/edx/programs.git","ssh_url":"git@github.com:edx/programs.git","clone_url":"https://github.com/edx/programs.git","svn_url":"https://github.com/edx/programs","homepage":"http://open-edx-programs-guide.readthedocs.org/en/latest/","size":1168,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/edx/programs/pulls/39"},"html":{"href":"https://github.com/edx/programs/pull/39"},"issue":{"href":"https://api.github.com/repos/edx/programs/issues/39"},"comments":{"href":"https://api.github.com/repos/edx/programs/issues/39/comments"},"review_comments":{"href":"https://api.github.com/repos/edx/programs/pulls/39/comments"},"review_comment":{"href":"https://api.github.com/repos/edx/programs/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/edx/programs/pulls/39/commits"},"statuses":{"href":"https://api.github.com/repos/edx/programs/statuses/0880655ae47da35701c7c787a43b3c8ae030c12e"}}}}