{"action":"created","comment":{"url":"https://api.github.com/repos/aniehuser/senior-design-group10/pulls/comments/243835190","pull_request_review_id":187704973,"id":243835190,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDI0MzgzNTE5MA==","diff_hunk":"@@ -30,36 +30,30 @@ def home(request):\n     documents = paginator.get_page(page)\n     return render(request, 'website/home.html', { 'document_list': documents })\n \n-def model_form_upload(request):\n-    if request.method == 'POST':\n-        form = DocumentForm(request.POST, request.FILES)\n-        form2 = ImageUploadForm(request.POST, request.FILES)\n-        if form.is_valid():\n-            form.save()\n-            if form2.is_valid():\n-                m = ExampleModel.objects.get(pk=course_id)\n-                m.workflow = form.cleaned_data['image']\n-                form2.save()\n-            return redirect('home')\n-    else:\n-        form = DocumentForm()\n-    return render(request, 'script_upload/upload_form.html', {\n-        'form': form\n-    })\n+def my_workflows(request):\n+    # TODO: Handle unathenticated user? Right now will just load an empty table.\n+    documents_list = Workflow.objects.all().filter(user=request.user)\n+    for document in documents_list:\n+        latest_version = Version.objects.filter(workflow_id=document.id).order_by('last_modified').first()\n+        document.graph = latest_version.yw_graph_output if latest_version is not None else \"\"\n+    \n+    paginator = Paginator(documents_list, 10)\n+    page = request.GET.get('page')\n+    documents = paginator.get_page(page)\n+    return render(request, 'website/home.html', { 'document_list': documents })\n \n # Added this\n-def detailed_workflow(request):\n+def detailed_workflow(request, document_id):","path":"yw_website/website/views.py","position":34,"original_position":34,"commit_id":"07b2f3494a20f21472d8b2bce82af46296d306ea","original_commit_id":"07b2f3494a20f21472d8b2bce82af46296d306ea","user":{"login":"clundin55","id":23748429,"node_id":"MDQ6VXNlcjIzNzQ4NDI5","avatar_url":"https://avatars3.githubusercontent.com/u/23748429?v=4","gravatar_id":"","url":"https://api.github.com/users/clundin55","html_url":"https://github.com/clundin55","followers_url":"https://api.github.com/users/clundin55/followers","following_url":"https://api.github.com/users/clundin55/following{/other_user}","gists_url":"https://api.github.com/users/clundin55/gists{/gist_id}","starred_url":"https://api.github.com/users/clundin55/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/clundin55/subscriptions","organizations_url":"https://api.github.com/users/clundin55/orgs","repos_url":"https://api.github.com/users/clundin55/repos","events_url":"https://api.github.com/users/clundin55/events{/privacy}","received_events_url":"https://api.github.com/users/clundin55/received_events","type":"User","site_admin":false},"body":"Yup, same as above. I'd prefer to do a separate pr/commit for it if you agree. That way I can try and refactor the html and other files too and maintain the readability of the PR","created_at":"2018-12-24T14:43:18Z","updated_at":"2018-12-24T14:43:18Z","html_url":"https://github.com/aniehuser/senior-design-group10/pull/35#discussion_r243835190","pull_request_url":"https://api.github.com/repos/aniehuser/senior-design-group10/pulls/35","author_association":"COLLABORATOR","_links":{"self":{"href":"https://api.github.com/repos/aniehuser/senior-design-group10/pulls/comments/243835190"},"html":{"href":"https://github.com/aniehuser/senior-design-group10/pull/35#discussion_r243835190"},"pull_request":{"href":"https://api.github.com/repos/aniehuser/senior-design-group10/pulls/35"}},"in_reply_to_id":243786229},"pull_request":{"url":"https://api.github.com/repos/aniehuser/senior-design-group10/pulls/35","id":240653891,"node_id":"MDExOlB1bGxSZXF1ZXN0MjQwNjUzODkx","html_url":"https://github.com/aniehuser/senior-design-group10/pull/35","diff_url":"https://github.com/aniehuser/senior-design-group10/pull/35.diff","patch_url":"https://github.com/aniehuser/senior-design-group10/pull/35.patch","issue_url":"https://api.github.com/repos/aniehuser/senior-design-group10/issues/35","number":35,"state":"open","locked":false,"title":"Feature/dynamic detailed page","user":{"login":"clundin55","id":23748429,"node_id":"MDQ6VXNlcjIzNzQ4NDI5","avatar_url":"https://avatars3.githubusercontent.com/u/23748429?v=4","gravatar_id":"","url":"https://api.github.com/users/clundin55","html_url":"https://github.com/clundin55","followers_url":"https://api.github.com/users/clundin55/followers","following_url":"https://api.github.com/users/clundin55/following{/other_user}","gists_url":"https://api.github.com/users/clundin55/gists{/gist_id}","starred_url":"https://api.github.com/users/clundin55/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/clundin55/subscriptions","organizations_url":"https://api.github.com/users/clundin55/orgs","repos_url":"https://api.github.com/users/clundin55/repos","events_url":"https://api.github.com/users/clundin55/events{/privacy}","received_events_url":"https://api.github.com/users/clundin55/received_events","type":"User","site_admin":false},"body":"Added dynamic data when opening a detailed page. Runs and some other stuff are still hard coded but now the workflow is the one that was clicked. Also added support for only showing the user's workflows under my workflows, as well as displaying visually if they are logged in. Hacky way to display the username as an <a> because I don't know CSS that well. Also removed the myworkflows html as there was no difference to home, and we can just inherit from that template and make our changes for editing later.","created_at":"2018-12-22T21:15:47Z","updated_at":"2018-12-24T14:43:18Z","closed_at":null,"merged_at":null,"merge_commit_sha":"13a42e3bfdd629257e291888d85776083390db4f","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/aniehuser/senior-design-group10/pulls/35/commits","review_comments_url":"https://api.github.com/repos/aniehuser/senior-design-group10/pulls/35/comments","review_comment_url":"https://api.github.com/repos/aniehuser/senior-design-group10/pulls/comments{/number}","comments_url":"https://api.github.com/repos/aniehuser/senior-design-group10/issues/35/comments","statuses_url":"https://api.github.com/repos/aniehuser/senior-design-group10/statuses/07b2f3494a20f21472d8b2bce82af46296d306ea","head":{"label":"aniehuser:feature/dynamic_detailed_page","ref":"feature/dynamic_detailed_page","sha":"07b2f3494a20f21472d8b2bce82af46296d306ea","user":{"login":"aniehuser","id":33637158,"node_id":"MDQ6VXNlcjMzNjM3MTU4","avatar_url":"https://avatars0.githubusercontent.com/u/33637158?v=4","gravatar_id":"","url":"https://api.github.com/users/aniehuser","html_url":"https://github.com/aniehuser","followers_url":"https://api.github.com/users/aniehuser/followers","following_url":"https://api.github.com/users/aniehuser/following{/other_user}","gists_url":"https://api.github.com/users/aniehuser/gists{/gist_id}","starred_url":"https://api.github.com/users/aniehuser/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aniehuser/subscriptions","organizations_url":"https://api.github.com/users/aniehuser/orgs","repos_url":"https://api.github.com/users/aniehuser/repos","events_url":"https://api.github.com/users/aniehuser/events{/privacy}","received_events_url":"https://api.github.com/users/aniehuser/received_events","type":"User","site_admin":false},"repo":{"id":147257854,"node_id":"MDEwOlJlcG9zaXRvcnkxNDcyNTc4NTQ=","name":"senior-design-group10","full_name":"aniehuser/senior-design-group10","private":false,"owner":{"login":"aniehuser","id":33637158,"node_id":"MDQ6VXNlcjMzNjM3MTU4","avatar_url":"https://avatars0.githubusercontent.com/u/33637158?v=4","gravatar_id":"","url":"https://api.github.com/users/aniehuser","html_url":"https://github.com/aniehuser","followers_url":"https://api.github.com/users/aniehuser/followers","following_url":"https://api.github.com/users/aniehuser/following{/other_user}","gists_url":"https://api.github.com/users/aniehuser/gists{/gist_id}","starred_url":"https://api.github.com/users/aniehuser/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aniehuser/subscriptions","organizations_url":"https://api.github.com/users/aniehuser/orgs","repos_url":"https://api.github.com/users/aniehuser/repos","events_url":"https://api.github.com/users/aniehuser/events{/privacy}","received_events_url":"https://api.github.com/users/aniehuser/received_events","type":"User","site_admin":false},"html_url":"https://github.com/aniehuser/senior-design-group10","description":"Document sharing between team members, sponsors, faculty advisors, and DAB members for the Senior Design Software Project","fork":false,"url":"https://api.github.com/repos/aniehuser/senior-design-group10","forks_url":"https://api.github.com/repos/aniehuser/senior-design-group10/forks","keys_url":"https://api.github.com/repos/aniehuser/senior-design-group10/keys{/key_id}","collaborators_url":"https://api.github.com/repos/aniehuser/senior-design-group10/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/aniehuser/senior-design-group10/teams","hooks_url":"https://api.github.com/repos/aniehuser/senior-design-group10/hooks","issue_events_url":"https://api.github.com/repos/aniehuser/senior-design-group10/issues/events{/number}","events_url":"https://api.github.com/repos/aniehuser/senior-design-group10/events","assignees_url":"https://api.github.com/repos/aniehuser/senior-design-group10/assignees{/user}","branches_url":"https://api.github.com/repos/aniehuser/senior-design-group10/branches{/branch}","tags_url":"https://api.github.com/repos/aniehuser/senior-design-group10/tags","blobs_url":"https://api.github.com/repos/aniehuser/senior-design-group10/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/aniehuser/senior-design-group10/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/aniehuser/senior-design-group10/git/refs{/sha}","trees_url":"https://api.github.com/repos/aniehuser/senior-design-group10/git/trees{/sha}","statuses_url":"https://api.github.com/repos/aniehuser/senior-design-group10/statuses/{sha}","languages_url":"https://api.github.com/repos/aniehuser/senior-design-group10/languages","stargazers_url":"https://api.github.com/repos/aniehuser/senior-design-group10/stargazers","contributors_url":"https://api.github.com/repos/aniehuser/senior-design-group10/contributors","subscribers_url":"https://api.github.com/repos/aniehuser/senior-design-group10/subscribers","subscription_url":"https://api.github.com/repos/aniehuser/senior-design-group10/subscription","commits_url":"https://api.github.com/repos/aniehuser/senior-design-group10/commits{/sha}","git_commits_url":"https://api.github.com/repos/aniehuser/senior-design-group10/git/commits{/sha}","comments_url":"https://api.github.com/repos/aniehuser/senior-design-group10/comments{/number}","issue_comment_url":"https://api.github.com/repos/aniehuser/senior-design-group10/issues/comments{/number}","contents_url":"https://api.github.com/repos/aniehuser/senior-design-group10/contents/{+path}","compare_url":"https://api.github.com/repos/aniehuser/senior-design-group10/compare/{base}...{head}","merges_url":"https://api.github.com/repos/aniehuser/senior-design-group10/merges","archive_url":"https://api.github.com/repos/aniehuser/senior-design-group10/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/aniehuser/senior-design-group10/downloads","issues_url":"https://api.github.com/repos/aniehuser/senior-design-group10/issues{/number}","pulls_url":"https://api.github.com/repos/aniehuser/senior-design-group10/pulls{/number}","milestones_url":"https://api.github.com/repos/aniehuser/senior-design-group10/milestones{/number}","notifications_url":"https://api.github.com/repos/aniehuser/senior-design-group10/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/aniehuser/senior-design-group10/labels{/name}","releases_url":"https://api.github.com/repos/aniehuser/senior-design-group10/releases{/id}","deployments_url":"https://api.github.com/repos/aniehuser/senior-design-group10/deployments","created_at":"2018-09-03T22:06:45Z","updated_at":"2018-12-24T04:18:33Z","pushed_at":"2018-12-24T05:12:19Z","git_url":"git://github.com/aniehuser/senior-design-group10.git","ssh_url":"git@github.com:aniehuser/senior-design-group10.git","clone_url":"https://github.com/aniehuser/senior-design-group10.git","svn_url":"https://github.com/aniehuser/senior-design-group10","homepage":null,"size":19816,"stargazers_count":1,"watchers_count":1,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":5,"license":null,"forks":0,"open_issues":5,"watchers":1,"default_branch":"master"}},"base":{"label":"aniehuser:master","ref":"master","sha":"57eeca11601f7a61c48aef27650023949eeca89b","user":{"login":"aniehuser","id":33637158,"node_id":"MDQ6VXNlcjMzNjM3MTU4","avatar_url":"https://avatars0.githubusercontent.com/u/33637158?v=4","gravatar_id":"","url":"https://api.github.com/users/aniehuser","html_url":"https://github.com/aniehuser","followers_url":"https://api.github.com/users/aniehuser/followers","following_url":"https://api.github.com/users/aniehuser/following{/other_user}","gists_url":"https://api.github.com/users/aniehuser/gists{/gist_id}","starred_url":"https://api.github.com/users/aniehuser/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aniehuser/subscriptions","organizations_url":"https://api.github.com/users/aniehuser/orgs","repos_url":"https://api.github.com/users/aniehuser/repos","events_url":"https://api.github.com/users/aniehuser/events{/privacy}","received_events_url":"https://api.github.com/users/aniehuser/received_events","type":"User","site_admin":false},"repo":{"id":147257854,"node_id":"MDEwOlJlcG9zaXRvcnkxNDcyNTc4NTQ=","name":"senior-design-group10","full_name":"aniehuser/senior-design-group10","private":false,"owner":{"login":"aniehuser","id":33637158,"node_id":"MDQ6VXNlcjMzNjM3MTU4","avatar_url":"https://avatars0.githubusercontent.com/u/33637158?v=4","gravatar_id":"","url":"https://api.github.com/users/aniehuser","html_url":"https://github.com/aniehuser","followers_url":"https://api.github.com/users/aniehuser/followers","following_url":"https://api.github.com/users/aniehuser/following{/other_user}","gists_url":"https://api.github.com/users/aniehuser/gists{/gist_id}","starred_url":"https://api.github.com/users/aniehuser/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aniehuser/subscriptions","organizations_url":"https://api.github.com/users/aniehuser/orgs","repos_url":"https://api.github.com/users/aniehuser/repos","events_url":"https://api.github.com/users/aniehuser/events{/privacy}","received_events_url":"https://api.github.com/users/aniehuser/received_events","type":"User","site_admin":false},"html_url":"https://github.com/aniehuser/senior-design-group10","description":"Document sharing between team members, sponsors, faculty advisors, and DAB members for the Senior Design Software Project","fork":false,"url":"https://api.github.com/repos/aniehuser/senior-design-group10","forks_url":"https://api.github.com/repos/aniehuser/senior-design-group10/forks","keys_url":"https://api.github.com/repos/aniehuser/senior-design-group10/keys{/key_id}","collaborators_url":"https://api.github.com/repos/aniehuser/senior-design-group10/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/aniehuser/senior-design-group10/teams","hooks_url":"https://api.github.com/repos/aniehuser/senior-design-group10/hooks","issue_events_url":"https://api.github.com/repos/aniehuser/senior-design-group10/issues/events{/number}","events_url":"https://api.github.com/repos/aniehuser/senior-design-group10/events","assignees_url":"https://api.github.com/repos/aniehuser/senior-design-group10/assignees{/user}","branches_url":"https://api.github.com/repos/aniehuser/senior-design-group10/branches{/branch}","tags_url":"https://api.github.com/repos/aniehuser/senior-design-group10/tags","blobs_url":"https://api.github.com/repos/aniehuser/senior-design-group10/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/aniehuser/senior-design-group10/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/aniehuser/senior-design-group10/git/refs{/sha}","trees_url":"https://api.github.com/repos/aniehuser/senior-design-group10/git/trees{/sha}","statuses_url":"https://api.github.com/repos/aniehuser/senior-design-group10/statuses/{sha}","languages_url":"https://api.github.com/repos/aniehuser/senior-design-group10/languages","stargazers_url":"https://api.github.com/repos/aniehuser/senior-design-group10/stargazers","contributors_url":"https://api.github.com/repos/aniehuser/senior-design-group10/contributors","subscribers_url":"https://api.github.com/repos/aniehuser/senior-design-group10/subscribers","subscription_url":"https://api.github.com/repos/aniehuser/senior-design-group10/subscription","commits_url":"https://api.github.com/repos/aniehuser/senior-design-group10/commits{/sha}","git_commits_url":"https://api.github.com/repos/aniehuser/senior-design-group10/git/commits{/sha}","comments_url":"https://api.github.com/repos/aniehuser/senior-design-group10/comments{/number}","issue_comment_url":"https://api.github.com/repos/aniehuser/senior-design-group10/issues/comments{/number}","contents_url":"https://api.github.com/repos/aniehuser/senior-design-group10/contents/{+path}","compare_url":"https://api.github.com/repos/aniehuser/senior-design-group10/compare/{base}...{head}","merges_url":"https://api.github.com/repos/aniehuser/senior-design-group10/merges","archive_url":"https://api.github.com/repos/aniehuser/senior-design-group10/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/aniehuser/senior-design-group10/downloads","issues_url":"https://api.github.com/repos/aniehuser/senior-design-group10/issues{/number}","pulls_url":"https://api.github.com/repos/aniehuser/senior-design-group10/pulls{/number}","milestones_url":"https://api.github.com/repos/aniehuser/senior-design-group10/milestones{/number}","notifications_url":"https://api.github.com/repos/aniehuser/senior-design-group10/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/aniehuser/senior-design-group10/labels{/name}","releases_url":"https://api.github.com/repos/aniehuser/senior-design-group10/releases{/id}","deployments_url":"https://api.github.com/repos/aniehuser/senior-design-group10/deployments","created_at":"2018-09-03T22:06:45Z","updated_at":"2018-12-24T04:18:33Z","pushed_at":"2018-12-24T05:12:19Z","git_url":"git://github.com/aniehuser/senior-design-group10.git","ssh_url":"git@github.com:aniehuser/senior-design-group10.git","clone_url":"https://github.com/aniehuser/senior-design-group10.git","svn_url":"https://github.com/aniehuser/senior-design-group10","homepage":null,"size":19816,"stargazers_count":1,"watchers_count":1,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":5,"license":null,"forks":0,"open_issues":5,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/aniehuser/senior-design-group10/pulls/35"},"html":{"href":"https://github.com/aniehuser/senior-design-group10/pull/35"},"issue":{"href":"https://api.github.com/repos/aniehuser/senior-design-group10/issues/35"},"comments":{"href":"https://api.github.com/repos/aniehuser/senior-design-group10/issues/35/comments"},"review_comments":{"href":"https://api.github.com/repos/aniehuser/senior-design-group10/pulls/35/comments"},"review_comment":{"href":"https://api.github.com/repos/aniehuser/senior-design-group10/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/aniehuser/senior-design-group10/pulls/35/commits"},"statuses":{"href":"https://api.github.com/repos/aniehuser/senior-design-group10/statuses/07b2f3494a20f21472d8b2bce82af46296d306ea"}},"author_association":"COLLABORATOR"}}
{"actor":{"display_login":"clundin55"}}