{"action":"created","comment":{"url":"https://api.github.com/repos/attendanceproject/djattendance/pulls/comments/210103320","pull_request_review_id":146251656,"id":210103320,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIxMDEwMzMyMA==","diff_hunk":"@@ -2,10 +2,16 @@\n from accounts.widgets import TraineeSelect2MultipleInput\n from aputils.custom_fields import CSIMultipleChoiceField\n from django import forms\n+from django.utils.translation import ugettext as _","path":"ap/schedules/forms.py","position":4,"original_position":4,"commit_id":"8aeffa8a77be2412b12fb87690ae472047fe607c","original_commit_id":"8aeffa8a77be2412b12fb87690ae472047fe607c","user":{"login":"codacy-bot","id":19940114,"node_id":"MDQ6VXNlcjE5OTQwMTE0","avatar_url":"https://avatars1.githubusercontent.com/u/19940114?v=4","gravatar_id":"","url":"https://api.github.com/users/codacy-bot","html_url":"https://github.com/codacy-bot","followers_url":"https://api.github.com/users/codacy-bot/followers","following_url":"https://api.github.com/users/codacy-bot/following{/other_user}","gists_url":"https://api.github.com/users/codacy-bot/gists{/gist_id}","starred_url":"https://api.github.com/users/codacy-bot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/codacy-bot/subscriptions","organizations_url":"https://api.github.com/users/codacy-bot/orgs","repos_url":"https://api.github.com/users/codacy-bot/repos","events_url":"https://api.github.com/users/codacy-bot/events{/privacy}","received_events_url":"https://api.github.com/users/codacy-bot/received_events","type":"User","site_admin":false},"body":"![Codacy](https://app.codacy.com/assets/images/favicon.png) Issue found: [Unused ugettext imported from django.utils.translation as _](https://app.codacy.com/app/jontey/djattendance/pullRequest?prid=1842198)","created_at":"2018-08-14T21:05:10Z","updated_at":"2018-08-14T21:05:10Z","html_url":"https://github.com/attendanceproject/djattendance/pull/1306#discussion_r210103320","pull_request_url":"https://api.github.com/repos/attendanceproject/djattendance/pulls/1306","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/attendanceproject/djattendance/pulls/comments/210103320"},"html":{"href":"https://github.com/attendanceproject/djattendance/pull/1306#discussion_r210103320"},"pull_request":{"href":"https://api.github.com/repos/attendanceproject/djattendance/pulls/1306"}}},"pull_request":{"url":"https://api.github.com/repos/attendanceproject/djattendance/pulls/1306","id":198205847,"node_id":"MDExOlB1bGxSZXF1ZXN0MTk4MjA1ODQ3","html_url":"https://github.com/attendanceproject/djattendance/pull/1306","diff_url":"https://github.com/attendanceproject/djattendance/pull/1306.diff","patch_url":"https://github.com/attendanceproject/djattendance/pull/1306.patch","issue_url":"https://api.github.com/repos/attendanceproject/djattendance/issues/1306","number":1306,"state":"open","locked":false,"title":"Schedules changes","user":{"login":"yipingbenjaminliu","id":8671058,"node_id":"MDQ6VXNlcjg2NzEwNTg=","avatar_url":"https://avatars0.githubusercontent.com/u/8671058?v=4","gravatar_id":"","url":"https://api.github.com/users/yipingbenjaminliu","html_url":"https://github.com/yipingbenjaminliu","followers_url":"https://api.github.com/users/yipingbenjaminliu/followers","following_url":"https://api.github.com/users/yipingbenjaminliu/following{/other_user}","gists_url":"https://api.github.com/users/yipingbenjaminliu/gists{/gist_id}","starred_url":"https://api.github.com/users/yipingbenjaminliu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yipingbenjaminliu/subscriptions","organizations_url":"https://api.github.com/users/yipingbenjaminliu/orgs","repos_url":"https://api.github.com/users/yipingbenjaminliu/repos","events_url":"https://api.github.com/users/yipingbenjaminliu/events{/privacy}","received_events_url":"https://api.github.com/users/yipingbenjaminliu/received_events","type":"User","site_admin":false},"body":"Schedules changes scenarios:\r\n\tnotes:\r\n\t  all leaveslips are personal, groupslips are time based and are invariant to schedule changes\r\n\t  after each operation takes place, run check script, should return 0 mislink rolls\r\n\r\n- [x] afternoon class change\r\n\tinput: trainee, after class, starting week\r\n\r\n\tworkflow:\r\n\tcreate a new schedule for that class with higher priority by one, if not already exist\r\n\tcheck for all future events with rolls attached (so leaveslips cover the proper events)\r\n\tmove trainee onto new schedule (now trainee should have the proper schedule)\r\n\tmove those rolls with future events onto new events\r\n\r\n- [ ] schedule changes (check fields: [trainees, events, priority, weeks])\r\n\tinput:\r\n\tschedule\r\n\r\n\tworkflow:\r\nfor rolls that will become invalid because of events overlap or removal, display prompt for them to be removed and a confirmation for them to be removed\r\nif rolls are attached to a leaveslip, mark leaveslip as denied and add comment indicating schedule changed, remove and delete all rolls associated with that leaveslip\r\n\r\n\texample 1:\r\nLongBeach teams have evening Lord's table for the first 4 weeks (week0-3) then after that have regular morning Lord's table. Person 1 has an absent roll for Lord's table on week 2 and submitted an individual leaveslip for week 7 and it has been approved. That individual leaveslip covers an evening Lord's table. When the schedule change takes place, only the roll for week 7 should be on the prompt for deletion and after deletion, that already approved leaveslip needs to be mark denied with the comment \"automated message // schedule change has denied this leaveslip\"\r\n\r\n\r\n- [ ] event time changes\r\n\tinput:\r\n\tevent, old time, new time\r\n\r\n\tworkflow:\r\ncheck how many schedules it effects\r\nif it should affect some schedules but not other, duplicate event and move intended schedules onto duplicated event\r\nchange time on duplicated event\r\nfor all trainees on the intended schedules check future and past rolls attached to old event, move them onto new event\r\n\r\n\texample 1:\r\nthe same table meeting event that starts at 9:30 and ends at 12:00 is being used by the Riverside Team, Fullerton and Anaheim D3. The table meeting in Riverside has moved from 9:30 to 9:15. User requests a time change old time is [9:30-12:00] to new time being [9:15-12:00]. This results in a new event being created with the exact same fields as the old event with the exception of the start time which is now 9:15 on the new event. All the rolls for the Riverside team trainees on the old event are moved to the new event. The new event is attached onto the schedule for Riverside trainees with the old event removed from the schedule.\r\n","created_at":"2018-06-29T03:25:40Z","updated_at":"2018-08-14T21:05:10Z","closed_at":null,"merged_at":null,"merge_commit_sha":"775721b8fd46498ab6752e0c2e55d0bae6e34d03","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/attendanceproject/djattendance/pulls/1306/commits","review_comments_url":"https://api.github.com/repos/attendanceproject/djattendance/pulls/1306/comments","review_comment_url":"https://api.github.com/repos/attendanceproject/djattendance/pulls/comments{/number}","comments_url":"https://api.github.com/repos/attendanceproject/djattendance/issues/1306/comments","statuses_url":"https://api.github.com/repos/attendanceproject/djattendance/statuses/8aeffa8a77be2412b12fb87690ae472047fe607c","head":{"label":"attendanceproject:schedules-changes","ref":"schedules-changes","sha":"8aeffa8a77be2412b12fb87690ae472047fe607c","user":{"login":"attendanceproject","id":5070936,"node_id":"MDEyOk9yZ2FuaXphdGlvbjUwNzA5MzY=","avatar_url":"https://avatars1.githubusercontent.com/u/5070936?v=4","gravatar_id":"","url":"https://api.github.com/users/attendanceproject","html_url":"https://github.com/attendanceproject","followers_url":"https://api.github.com/users/attendanceproject/followers","following_url":"https://api.github.com/users/attendanceproject/following{/other_user}","gists_url":"https://api.github.com/users/attendanceproject/gists{/gist_id}","starred_url":"https://api.github.com/users/attendanceproject/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/attendanceproject/subscriptions","organizations_url":"https://api.github.com/users/attendanceproject/orgs","repos_url":"https://api.github.com/users/attendanceproject/repos","events_url":"https://api.github.com/users/attendanceproject/events{/privacy}","received_events_url":"https://api.github.com/users/attendanceproject/received_events","type":"Organization","site_admin":false},"repo":{"id":11232995,"node_id":"MDEwOlJlcG9zaXRvcnkxMTIzMjk5NQ==","name":"djattendance","full_name":"attendanceproject/djattendance","owner":{"login":"attendanceproject","id":5070936,"node_id":"MDEyOk9yZ2FuaXphdGlvbjUwNzA5MzY=","avatar_url":"https://avatars1.githubusercontent.com/u/5070936?v=4","gravatar_id":"","url":"https://api.github.com/users/attendanceproject","html_url":"https://github.com/attendanceproject","followers_url":"https://api.github.com/users/attendanceproject/followers","following_url":"https://api.github.com/users/attendanceproject/following{/other_user}","gists_url":"https://api.github.com/users/attendanceproject/gists{/gist_id}","starred_url":"https://api.github.com/users/attendanceproject/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/attendanceproject/subscriptions","organizations_url":"https://api.github.com/users/attendanceproject/orgs","repos_url":"https://api.github.com/users/attendanceproject/repos","events_url":"https://api.github.com/users/attendanceproject/events{/privacy}","received_events_url":"https://api.github.com/users/attendanceproject/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/attendanceproject/djattendance","description":"A rewrite of the original attendance project in Python","fork":false,"url":"https://api.github.com/repos/attendanceproject/djattendance","forks_url":"https://api.github.com/repos/attendanceproject/djattendance/forks","keys_url":"https://api.github.com/repos/attendanceproject/djattendance/keys{/key_id}","collaborators_url":"https://api.github.com/repos/attendanceproject/djattendance/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/attendanceproject/djattendance/teams","hooks_url":"https://api.github.com/repos/attendanceproject/djattendance/hooks","issue_events_url":"https://api.github.com/repos/attendanceproject/djattendance/issues/events{/number}","events_url":"https://api.github.com/repos/attendanceproject/djattendance/events","assignees_url":"https://api.github.com/repos/attendanceproject/djattendance/assignees{/user}","branches_url":"https://api.github.com/repos/attendanceproject/djattendance/branches{/branch}","tags_url":"https://api.github.com/repos/attendanceproject/djattendance/tags","blobs_url":"https://api.github.com/repos/attendanceproject/djattendance/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/attendanceproject/djattendance/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/attendanceproject/djattendance/git/refs{/sha}","trees_url":"https://api.github.com/repos/attendanceproject/djattendance/git/trees{/sha}","statuses_url":"https://api.github.com/repos/attendanceproject/djattendance/statuses/{sha}","languages_url":"https://api.github.com/repos/attendanceproject/djattendance/languages","stargazers_url":"https://api.github.com/repos/attendanceproject/djattendance/stargazers","contributors_url":"https://api.github.com/repos/attendanceproject/djattendance/contributors","subscribers_url":"https://api.github.com/repos/attendanceproject/djattendance/subscribers","subscription_url":"https://api.github.com/repos/attendanceproject/djattendance/subscription","commits_url":"https://api.github.com/repos/attendanceproject/djattendance/commits{/sha}","git_commits_url":"https://api.github.com/repos/attendanceproject/djattendance/git/commits{/sha}","comments_url":"https://api.github.com/repos/attendanceproject/djattendance/comments{/number}","issue_comment_url":"https://api.github.com/repos/attendanceproject/djattendance/issues/comments{/number}","contents_url":"https://api.github.com/repos/attendanceproject/djattendance/contents/{+path}","compare_url":"https://api.github.com/repos/attendanceproject/djattendance/compare/{base}...{head}","merges_url":"https://api.github.com/repos/attendanceproject/djattendance/merges","archive_url":"https://api.github.com/repos/attendanceproject/djattendance/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/attendanceproject/djattendance/downloads","issues_url":"https://api.github.com/repos/attendanceproject/djattendance/issues{/number}","pulls_url":"https://api.github.com/repos/attendanceproject/djattendance/pulls{/number}","milestones_url":"https://api.github.com/repos/attendanceproject/djattendance/milestones{/number}","notifications_url":"https://api.github.com/repos/attendanceproject/djattendance/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/attendanceproject/djattendance/labels{/name}","releases_url":"https://api.github.com/repos/attendanceproject/djattendance/releases{/id}","deployments_url":"https://api.github.com/repos/attendanceproject/djattendance/deployments","created_at":"2013-07-07T12:16:10Z","updated_at":"2018-08-14T21:04:51Z","pushed_at":"2018-08-14T21:04:46Z","git_url":"git://github.com/attendanceproject/djattendance.git","ssh_url":"git@github.com:attendanceproject/djattendance.git","clone_url":"https://github.com/attendanceproject/djattendance.git","svn_url":"https://github.com/attendanceproject/djattendance","homepage":"","size":186067,"stargazers_count":27,"watchers_count":27,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":17,"mirror_url":null,"archived":false,"open_issues_count":106,"license":null,"forks":17,"open_issues":106,"watchers":27,"default_branch":"dev"}},"base":{"label":"attendanceproject:dev","ref":"dev","sha":"e52a3f099daf75c96f45c0baf4533cc40e6d19e0","user":{"login":"attendanceproject","id":5070936,"node_id":"MDEyOk9yZ2FuaXphdGlvbjUwNzA5MzY=","avatar_url":"https://avatars1.githubusercontent.com/u/5070936?v=4","gravatar_id":"","url":"https://api.github.com/users/attendanceproject","html_url":"https://github.com/attendanceproject","followers_url":"https://api.github.com/users/attendanceproject/followers","following_url":"https://api.github.com/users/attendanceproject/following{/other_user}","gists_url":"https://api.github.com/users/attendanceproject/gists{/gist_id}","starred_url":"https://api.github.com/users/attendanceproject/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/attendanceproject/subscriptions","organizations_url":"https://api.github.com/users/attendanceproject/orgs","repos_url":"https://api.github.com/users/attendanceproject/repos","events_url":"https://api.github.com/users/attendanceproject/events{/privacy}","received_events_url":"https://api.github.com/users/attendanceproject/received_events","type":"Organization","site_admin":false},"repo":{"id":11232995,"node_id":"MDEwOlJlcG9zaXRvcnkxMTIzMjk5NQ==","name":"djattendance","full_name":"attendanceproject/djattendance","owner":{"login":"attendanceproject","id":5070936,"node_id":"MDEyOk9yZ2FuaXphdGlvbjUwNzA5MzY=","avatar_url":"https://avatars1.githubusercontent.com/u/5070936?v=4","gravatar_id":"","url":"https://api.github.com/users/attendanceproject","html_url":"https://github.com/attendanceproject","followers_url":"https://api.github.com/users/attendanceproject/followers","following_url":"https://api.github.com/users/attendanceproject/following{/other_user}","gists_url":"https://api.github.com/users/attendanceproject/gists{/gist_id}","starred_url":"https://api.github.com/users/attendanceproject/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/attendanceproject/subscriptions","organizations_url":"https://api.github.com/users/attendanceproject/orgs","repos_url":"https://api.github.com/users/attendanceproject/repos","events_url":"https://api.github.com/users/attendanceproject/events{/privacy}","received_events_url":"https://api.github.com/users/attendanceproject/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/attendanceproject/djattendance","description":"A rewrite of the original attendance project in Python","fork":false,"url":"https://api.github.com/repos/attendanceproject/djattendance","forks_url":"https://api.github.com/repos/attendanceproject/djattendance/forks","keys_url":"https://api.github.com/repos/attendanceproject/djattendance/keys{/key_id}","collaborators_url":"https://api.github.com/repos/attendanceproject/djattendance/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/attendanceproject/djattendance/teams","hooks_url":"https://api.github.com/repos/attendanceproject/djattendance/hooks","issue_events_url":"https://api.github.com/repos/attendanceproject/djattendance/issues/events{/number}","events_url":"https://api.github.com/repos/attendanceproject/djattendance/events","assignees_url":"https://api.github.com/repos/attendanceproject/djattendance/assignees{/user}","branches_url":"https://api.github.com/repos/attendanceproject/djattendance/branches{/branch}","tags_url":"https://api.github.com/repos/attendanceproject/djattendance/tags","blobs_url":"https://api.github.com/repos/attendanceproject/djattendance/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/attendanceproject/djattendance/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/attendanceproject/djattendance/git/refs{/sha}","trees_url":"https://api.github.com/repos/attendanceproject/djattendance/git/trees{/sha}","statuses_url":"https://api.github.com/repos/attendanceproject/djattendance/statuses/{sha}","languages_url":"https://api.github.com/repos/attendanceproject/djattendance/languages","stargazers_url":"https://api.github.com/repos/attendanceproject/djattendance/stargazers","contributors_url":"https://api.github.com/repos/attendanceproject/djattendance/contributors","subscribers_url":"https://api.github.com/repos/attendanceproject/djattendance/subscribers","subscription_url":"https://api.github.com/repos/attendanceproject/djattendance/subscription","commits_url":"https://api.github.com/repos/attendanceproject/djattendance/commits{/sha}","git_commits_url":"https://api.github.com/repos/attendanceproject/djattendance/git/commits{/sha}","comments_url":"https://api.github.com/repos/attendanceproject/djattendance/comments{/number}","issue_comment_url":"https://api.github.com/repos/attendanceproject/djattendance/issues/comments{/number}","contents_url":"https://api.github.com/repos/attendanceproject/djattendance/contents/{+path}","compare_url":"https://api.github.com/repos/attendanceproject/djattendance/compare/{base}...{head}","merges_url":"https://api.github.com/repos/attendanceproject/djattendance/merges","archive_url":"https://api.github.com/repos/attendanceproject/djattendance/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/attendanceproject/djattendance/downloads","issues_url":"https://api.github.com/repos/attendanceproject/djattendance/issues{/number}","pulls_url":"https://api.github.com/repos/attendanceproject/djattendance/pulls{/number}","milestones_url":"https://api.github.com/repos/attendanceproject/djattendance/milestones{/number}","notifications_url":"https://api.github.com/repos/attendanceproject/djattendance/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/attendanceproject/djattendance/labels{/name}","releases_url":"https://api.github.com/repos/attendanceproject/djattendance/releases{/id}","deployments_url":"https://api.github.com/repos/attendanceproject/djattendance/deployments","created_at":"2013-07-07T12:16:10Z","updated_at":"2018-08-14T21:04:51Z","pushed_at":"2018-08-14T21:04:46Z","git_url":"git://github.com/attendanceproject/djattendance.git","ssh_url":"git@github.com:attendanceproject/djattendance.git","clone_url":"https://github.com/attendanceproject/djattendance.git","svn_url":"https://github.com/attendanceproject/djattendance","homepage":"","size":186067,"stargazers_count":27,"watchers_count":27,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":17,"mirror_url":null,"archived":false,"open_issues_count":106,"license":null,"forks":17,"open_issues":106,"watchers":27,"default_branch":"dev"}},"_links":{"self":{"href":"https://api.github.com/repos/attendanceproject/djattendance/pulls/1306"},"html":{"href":"https://github.com/attendanceproject/djattendance/pull/1306"},"issue":{"href":"https://api.github.com/repos/attendanceproject/djattendance/issues/1306"},"comments":{"href":"https://api.github.com/repos/attendanceproject/djattendance/issues/1306/comments"},"review_comments":{"href":"https://api.github.com/repos/attendanceproject/djattendance/pulls/1306/comments"},"review_comment":{"href":"https://api.github.com/repos/attendanceproject/djattendance/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/attendanceproject/djattendance/pulls/1306/commits"},"statuses":{"href":"https://api.github.com/repos/attendanceproject/djattendance/statuses/8aeffa8a77be2412b12fb87690ae472047fe607c"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"codacy-bot"}}