payload: {"action":"created","comment":{"url":"https://api.github.com/repos/bcgov/mds/pulls/comments/276766144","pull_request_review_id":228385095,"id":276766144,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDI3Njc2NjE0NA==","diff_hunk":"@@ -10,80 +10,66 @@\n from ..models.variance import Variance\n from ...mine.models.mine import Mine\n from ....documents.mines.models.mine_document import MineDocument\n-from ....utils.access_decorators import (requires_any_of,\n-                                         MINE_VIEW,\n-                                         MINE_CREATE,\n+from ....utils.access_decorators import (requires_any_of, MINE_VIEW, MINE_CREATE,\n                                          MINESPACE_PROPONENT)\n from ....utils.resources_mixins import UserMixin, ErrorMixin\n \n-mine_document_model = api.model('MineDocument', {\n-    'mine_document_guid': fields.String,\n-    'mine_guid': fields.String,\n-    'document_manager_guid': fields.String,\n-    'document_name': fields.String\n-})\n-\n-variance_model = api.model('Variance', {\n-    'variance_id': fields.Integer,\n-    'compliance_article_id': fields.Integer,\n-    'note': fields.String,\n-    'issue_date': fields.Date,\n-    'received_date': fields.Date,\n-    'expiry_date': fields.Date,\n-    'documents': fields.Nested(mine_document_model)\n-})\n+mine_document_model = api.model(\n+    'MineDocument', {\n+        'mine_document_guid': fields.String,\n+        'mine_guid': fields.String,\n+        'document_manager_guid': fields.String,\n+        'document_name': fields.String\n+    })\n+\n+variance_model = api.model(\n+    'Variance', {\n+        'variance_id': fields.Integer,\n+        'compliance_article_id': fields.Integer,\n+        'note': fields.String,\n+        'issue_date': fields.Date,\n+        'received_date': fields.Date,\n+        'expiry_date': fields.Date,\n+        'documents': fields.Nested(mine_document_model)\n+    })\n \n-class VarianceListResource(Resource, UserMixin, ErrorMixin):\n-    parser = reqparse.RequestParser()\n-    parser.add_argument('compliance_article_id',\n-                        type=int,\n-                        store_missing=False,\n-                        trim=True,\n-                        help='ID representing the MA or HSRCM code to which this variance relates.')\n-    parser.add_argument('note',\n-                        type=str,\n-                        store_missing=False,\n-                        trim=True,\n-                        help='A note to include on the variance. Limited to 300 characters.')\n-    parser.add_argument('issue_date',\n-                        store_missing=False,\n-                        trim=True,\n-                        help='The date on which the variance was issued.')\n-    parser.add_argument('received_date',\n-                        store_missing=False,\n-                        trim=True,\n-                        help='The date on which the variance was received.')\n-    parser.add_argument('expiry_date',\n-                        store_missing=False,\n-                        trim=True,\n-                        help='The date on which the variance expires.')\n \n+class VarianceListResource(Resource, UserMixin, ErrorMixin):\n+    parser = reqparse.RequestParser(trim=True)\n+    parser.add_argument(\n+        'compliance_article_id',\n+        type=int,\n+        store_missing=False,\n+        help='ID representing the MA or HSRCM code to which this variance relates.')\n+    parser.add_argument(\n+        'note',\n+        type=str,\n+        store_missing=False,\n+        help='A note to include on the variance. Limited to 300 characters.')\n+    parser.add_argument(\n+        'issue_date', store_missing=False, help='The date on which the variance was issued.')\n+    parser.add_argument(\n+        'received_date', store_missing=False, help='The date on which the variance was received.')\n+    parser.add_argument(\n+        'expiry_date', store_missing=False, help='The date on which the variance expires.')","path":"python-backend/app/api/mines/variances/resources/variance.py","position":88,"original_position":88,"commit_id":"e39b56058fde2333795d03e24d5f8ec730edb687","original_commit_id":"e39b56058fde2333795d03e24d5f8ec730edb687","user":{"login":"NWCalvank","id":21045044,"node_id":"MDQ6VXNlcjIxMDQ1MDQ0","avatar_url":"https://avatars1.githubusercontent.com/u/21045044?v=4","gravatar_id":"","url":"https://api.github.com/users/NWCalvank","html_url":"https://github.com/NWCalvank","followers_url":"https://api.github.com/users/NWCalvank/followers","following_url":"https://api.github.com/users/NWCalvank/following{/other_user}","gists_url":"https://api.github.com/users/NWCalvank/gists{/gist_id}","starred_url":"https://api.github.com/users/NWCalvank/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NWCalvank/subscriptions","organizations_url":"https://api.github.com/users/NWCalvank/orgs","repos_url":"https://api.github.com/users/NWCalvank/repos","events_url":"https://api.github.com/users/NWCalvank/events{/privacy}","received_events_url":"https://api.github.com/users/NWCalvank/received_events","type":"User","site_admin":false},"body":"Autoformatter, I assume?","created_at":"2019-04-18T17:45:19Z","updated_at":"2019-04-18T17:49:11Z","html_url":"https://github.com/bcgov/mds/pull/669#discussion_r276766144","pull_request_url":"https://api.github.com/repos/bcgov/mds/pulls/669","author_association":"COLLABORATOR","_links":{"self":{"href":"https://api.github.com/repos/bcgov/mds/pulls/comments/276766144"},"html":{"href":"https://github.com/bcgov/mds/pull/669#discussion_r276766144"},"pull_request":{"href":"https://api.github.com/repos/bcgov/mds/pulls/669"}}},"pull_request":{"url":"https://api.github.com/repos/bcgov/mds/pulls/669","id":270664727,"node_id":"MDExOlB1bGxSZXF1ZXN0MjcwNjY0NzI3","html_url":"https://github.com/bcgov/mds/pull/669","diff_url":"https://github.com/bcgov/mds/pull/669.diff","patch_url":"https://github.com/bcgov/mds/pull/669.patch","issue_url":"https://api.github.com/repos/bcgov/mds/issues/669","number":669,"state":"open","locked":false,"title":"Feature/incident reporting","user":{"login":"Jsyro","id":5376854,"node_id":"MDQ6VXNlcjUzNzY4NTQ=","avatar_url":"https://avatars0.githubusercontent.com/u/5376854?v=4","gravatar_id":"","url":"https://api.github.com/users/Jsyro","html_url":"https://github.com/Jsyro","followers_url":"https://api.github.com/users/Jsyro/followers","following_url":"https://api.github.com/users/Jsyro/following{/other_user}","gists_url":"https://api.github.com/users/Jsyro/gists{/gist_id}","starred_url":"https://api.github.com/users/Jsyro/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Jsyro/subscriptions","organizations_url":"https://api.github.com/users/Jsyro/orgs","repos_url":"https://api.github.com/users/Jsyro/repos","events_url":"https://api.github.com/users/Jsyro/events{/privacy}","received_events_url":"https://api.github.com/users/Jsyro/received_events","type":"User","site_admin":false},"body":"Full slice PR, with the new restplus patterns. FE has Create and Read only. writing unit tests now .","created_at":"2019-04-15T20:41:32Z","updated_at":"2019-04-18T17:49:11Z","closed_at":null,"merged_at":null,"merge_commit_sha":"f0387628d6ae3c05318039d4aede2207bb21862f","assignee":null,"assignees":[],"requested_reviewers":[{"login":"nayr974","id":7525580,"node_id":"MDQ6VXNlcjc1MjU1ODA=","avatar_url":"https://avatars0.githubusercontent.com/u/7525580?v=4","gravatar_id":"","url":"https://api.github.com/users/nayr974","html_url":"https://github.com/nayr974","followers_url":"https://api.github.com/users/nayr974/followers","following_url":"https://api.github.com/users/nayr974/following{/other_user}","gists_url":"https://api.github.com/users/nayr974/gists{/gist_id}","starred_url":"https://api.github.com/users/nayr974/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nayr974/subscriptions","organizations_url":"https://api.github.com/users/nayr974/orgs","repos_url":"https://api.github.com/users/nayr974/repos","events_url":"https://api.github.com/users/nayr974/events{/privacy}","received_events_url":"https://api.github.com/users/nayr974/received_events","type":"User","site_admin":false}],"requested_teams":[],"labels":[{"id":1194861829,"node_id":"MDU6TGFiZWwxMTk0ODYxODI5","url":"https://api.github.com/repos/bcgov/mds/labels/Backend","name":"Backend","color":"3623dd","default":false},{"id":1194862078,"node_id":"MDU6TGFiZWwxMTk0ODYyMDc4","url":"https://api.github.com/repos/bcgov/mds/labels/Frontend","name":"Frontend","color":"df0be2","default":false},{"id":1110727105,"node_id":"MDU6TGFiZWwxMTEwNzI3MTA1","url":"https://api.github.com/repos/bcgov/mds/labels/Ready%20for%20review","name":"Ready for review","color":"37e855","default":false}],"milestone":null,"commits_url":"https://api.github.com/repos/bcgov/mds/pulls/669/commits","review_comments_url":"https://api.github.com/repos/bcgov/mds/pulls/669/comments","review_comment_url":"https://api.github.com/repos/bcgov/mds/pulls/comments{/number}","comments_url":"https://api.github.com/repos/bcgov/mds/issues/669/comments","statuses_url":"https://api.github.com/repos/bcgov/mds/statuses/e39b56058fde2333795d03e24d5f8ec730edb687","head":{"label":"bcgov:feature/incident-reporting","ref":"feature/incident-reporting","sha":"e39b56058fde2333795d03e24d5f8ec730edb687","user":{"login":"bcgov","id":916280,"node_id":"MDEyOk9yZ2FuaXphdGlvbjkxNjI4MA==","avatar_url":"https://avatars1.githubusercontent.com/u/916280?v=4","gravatar_id":"","url":"https://api.github.com/users/bcgov","html_url":"https://github.com/bcgov","followers_url":"https://api.github.com/users/bcgov/followers","following_url":"https://api.github.com/users/bcgov/following{/other_user}","gists_url":"https://api.github.com/users/bcgov/gists{/gist_id}","starred_url":"https://api.github.com/users/bcgov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bcgov/subscriptions","organizations_url":"https://api.github.com/users/bcgov/orgs","repos_url":"https://api.github.com/users/bcgov/repos","events_url":"https://api.github.com/users/bcgov/events{/privacy}","received_events_url":"https://api.github.com/users/bcgov/received_events","type":"Organization","site_admin":false},"repo":{"id":131050605,"node_id":"MDEwOlJlcG9zaXRvcnkxMzEwNTA2MDU=","name":"mds","full_name":"bcgov/mds","private":false,"owner":{"login":"bcgov","id":916280,"node_id":"MDEyOk9yZ2FuaXphdGlvbjkxNjI4MA==","avatar_url":"https://avatars1.githubusercontent.com/u/916280?v=4","gravatar_id":"","url":"https://api.github.com/users/bcgov","html_url":"https://github.com/bcgov","followers_url":"https://api.github.com/users/bcgov/followers","following_url":"https://api.github.com/users/bcgov/following{/other_user}","gists_url":"https://api.github.com/users/bcgov/gists{/gist_id}","starred_url":"https://api.github.com/users/bcgov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bcgov/subscriptions","organizations_url":"https://api.github.com/users/bcgov/orgs","repos_url":"https://api.github.com/users/bcgov/repos","events_url":"https://api.github.com/users/bcgov/events{/privacy}","received_events_url":"https://api.github.com/users/bcgov/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/bcgov/mds","description":"Mines Digital Services","fork":false,"url":"https://api.github.com/repos/bcgov/mds","forks_url":"https://api.github.com/repos/bcgov/mds/forks","keys_url":"https://api.github.com/repos/bcgov/mds/keys{/key_id}","collaborators_url":"https://api.github.com/repos/bcgov/mds/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/bcgov/mds/teams","hooks_url":"https://api.github.com/repos/bcgov/mds/hooks","issue_events_url":"https://api.github.com/repos/bcgov/mds/issues/events{/number}","events_url":"https://api.github.com/repos/bcgov/mds/events","assignees_url":"https://api.github.com/repos/bcgov/mds/assignees{/user}","branches_url":"https://api.github.com/repos/bcgov/mds/branches{/branch}","tags_url":"https://api.github.com/repos/bcgov/mds/tags","blobs_url":"https://api.github.com/repos/bcgov/mds/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/bcgov/mds/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/bcgov/mds/git/refs{/sha}","trees_url":"https://api.github.com/repos/bcgov/mds/git/trees{/sha}","statuses_url":"https://api.github.com/repos/bcgov/mds/statuses/{sha}","languages_url":"https://api.github.com/repos/bcgov/mds/languages","stargazers_url":"https://api.github.com/repos/bcgov/mds/stargazers","contributors_url":"https://api.github.com/repos/bcgov/mds/contributors","subscribers_url":"https://api.github.com/repos/bcgov/mds/subscribers","subscription_url":"https://api.github.com/repos/bcgov/mds/subscription","commits_url":"https://api.github.com/repos/bcgov/mds/commits{/sha}","git_commits_url":"https://api.github.com/repos/bcgov/mds/git/commits{/sha}","comments_url":"https://api.github.com/repos/bcgov/mds/comments{/number}","issue_comment_url":"https://api.github.com/repos/bcgov/mds/issues/comments{/number}","contents_url":"https://api.github.com/repos/bcgov/mds/contents/{+path}","compare_url":"https://api.github.com/repos/bcgov/mds/compare/{base}...{head}","merges_url":"https://api.github.com/repos/bcgov/mds/merges","archive_url":"https://api.github.com/repos/bcgov/mds/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/bcgov/mds/downloads","issues_url":"https://api.github.com/repos/bcgov/mds/issues{/number}","pulls_url":"https://api.github.com/repos/bcgov/mds/pulls{/number}","milestones_url":"https://api.github.com/repos/bcgov/mds/milestones{/number}","notifications_url":"https://api.github.com/repos/bcgov/mds/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/bcgov/mds/labels{/name}","releases_url":"https://api.github.com/repos/bcgov/mds/releases{/id}","deployments_url":"https://api.github.com/repos/bcgov/mds/deployments","created_at":"2018-04-25T18:54:47Z","updated_at":"2019-04-17T22:07:30Z","pushed_at":"2019-04-18T17:24:32Z","git_url":"git://github.com/bcgov/mds.git","ssh_url":"git@github.com:bcgov/mds.git","clone_url":"https://github.com/bcgov/mds.git","svn_url":"https://github.com/bcgov/mds","homepage":null,"size":7461,"stargazers_count":8,"watchers_count":8,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":21,"mirror_url":null,"archived":false,"disabled":false,"open_issues_count":8,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0","node_id":"MDc6TGljZW5zZTI="},"forks":21,"open_issues":8,"watchers":8,"default_branch":"develop"}},"base":{"label":"bcgov:develop","ref":"develop","sha":"aa51310d1ac9dcb28a28edad4b237dccb71033bd","user":{"login":"bcgov","id":916280,"node_id":"MDEyOk9yZ2FuaXphdGlvbjkxNjI4MA==","avatar_url":"https://avatars1.githubusercontent.com/u/916280?v=4","gravatar_id":"","url":"https://api.github.com/users/bcgov","html_url":"https://github.com/bcgov","followers_url":"https://api.github.com/users/bcgov/followers","following_url":"https://api.github.com/users/bcgov/following{/other_user}","gists_url":"https://api.github.com/users/bcgov/gists{/gist_id}","starred_url":"https://api.github.com/users/bcgov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bcgov/subscriptions","organizations_url":"https://api.github.com/users/bcgov/orgs","repos_url":"https://api.github.com/users/bcgov/repos","events_url":"https://api.github.com/users/bcgov/events{/privacy}","received_events_url":"https://api.github.com/users/bcgov/received_events","type":"Organization","site_admin":false},"repo":{"id":131050605,"node_id":"MDEwOlJlcG9zaXRvcnkxMzEwNTA2MDU=","name":"mds","full_name":"bcgov/mds","private":false,"owner":{"login":"bcgov","id":916280,"node_id":"MDEyOk9yZ2FuaXphdGlvbjkxNjI4MA==","avatar_url":"https://avatars1.githubusercontent.com/u/916280?v=4","gravatar_id":"","url":"https://api.github.com/users/bcgov","html_url":"https://github.com/bcgov","followers_url":"https://api.github.com/users/bcgov/followers","following_url":"https://api.github.com/users/bcgov/following{/other_user}","gists_url":"https://api.github.com/users/bcgov/gists{/gist_id}","starred_url":"https://api.github.com/users/bcgov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bcgov/subscriptions","organizations_url":"https://api.github.com/users/bcgov/orgs","repos_url":"https://api.github.com/users/bcgov/repos","events_url":"https://api.github.com/users/bcgov/events{/privacy}","received_events_url":"https://api.github.com/users/bcgov/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/bcgov/mds","description":"Mines Digital Services","fork":false,"url":"https://api.github.com/repos/bcgov/mds","forks_url":"https://api.github.com/repos/bcgov/mds/forks","keys_url":"https://api.github.com/repos/bcgov/mds/keys{/key_id}","collaborators_url":"https://api.github.com/repos/bcgov/mds/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/bcgov/mds/teams","hooks_url":"https://api.github.com/repos/bcgov/mds/hooks","issue_events_url":"https://api.github.com/repos/bcgov/mds/issues/events{/number}","events_url":"https://api.github.com/repos/bcgov/mds/events","assignees_url":"https://api.github.com/repos/bcgov/mds/assignees{/user}","branches_url":"https://api.github.com/repos/bcgov/mds/branches{/branch}","tags_url":"https://api.github.com/repos/bcgov/mds/tags","blobs_url":"https://api.github.com/repos/bcgov/mds/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/bcgov/mds/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/bcgov/mds/git/refs{/sha}","trees_url":"https://api.github.com/repos/bcgov/mds/git/trees{/sha}","statuses_url":"https://api.github.com/repos/bcgov/mds/statuses/{sha}","languages_url":"https://api.github.com/repos/bcgov/mds/languages","stargazers_url":"https://api.github.com/repos/bcgov/mds/stargazers","contributors_url":"https://api.github.com/repos/bcgov/mds/contributors","subscribers_url":"https://api.github.com/repos/bcgov/mds/subscribers","subscription_url":"https://api.github.com/repos/bcgov/mds/subscription","commits_url":"https://api.github.com/repos/bcgov/mds/commits{/sha}","git_commits_url":"https://api.github.com/repos/bcgov/mds/git/commits{/sha}","comments_url":"https://api.github.com/repos/bcgov/mds/comments{/number}","issue_comment_url":"https://api.github.com/repos/bcgov/mds/issues/comments{/number}","contents_url":"https://api.github.com/repos/bcgov/mds/contents/{+path}","compare_url":"https://api.github.com/repos/bcgov/mds/compare/{base}...{head}","merges_url":"https://api.github.com/repos/bcgov/mds/merges","archive_url":"https://api.github.com/repos/bcgov/mds/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/bcgov/mds/downloads","issues_url":"https://api.github.com/repos/bcgov/mds/issues{/number}","pulls_url":"https://api.github.com/repos/bcgov/mds/pulls{/number}","milestones_url":"https://api.github.com/repos/bcgov/mds/milestones{/number}","notifications_url":"https://api.github.com/repos/bcgov/mds/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/bcgov/mds/labels{/name}","releases_url":"https://api.github.com/repos/bcgov/mds/releases{/id}","deployments_url":"https://api.github.com/repos/bcgov/mds/deployments","created_at":"2018-04-25T18:54:47Z","updated_at":"2019-04-17T22:07:30Z","pushed_at":"2019-04-18T17:24:32Z","git_url":"git://github.com/bcgov/mds.git","ssh_url":"git@github.com:bcgov/mds.git","clone_url":"https://github.com/bcgov/mds.git","svn_url":"https://github.com/bcgov/mds","homepage":null,"size":7461,"stargazers_count":8,"watchers_count":8,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":21,"mirror_url":null,"archived":false,"disabled":false,"open_issues_count":8,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0","node_id":"MDc6TGljZW5zZTI="},"forks":21,"open_issues":8,"watchers":8,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/bcgov/mds/pulls/669"},"html":{"href":"https://github.com/bcgov/mds/pull/669"},"issue":{"href":"https://api.github.com/repos/bcgov/mds/issues/669"},"comments":{"href":"https://api.github.com/repos/bcgov/mds/issues/669/comments"},"review_comments":{"href":"https://api.github.com/repos/bcgov/mds/pulls/669/comments"},"review_comment":{"href":"https://api.github.com/repos/bcgov/mds/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/bcgov/mds/pulls/669/commits"},"statuses":{"href":"https://api.github.com/repos/bcgov/mds/statuses/e39b56058fde2333795d03e24d5f8ec730edb687"}},"author_association":"COLLABORATOR"}}
other: {"actor":{"display_login":"NWCalvank"}}