{"action":"created","comment":{"url":"https://api.github.com/repos/kids-first/kf-api-dataservice/pulls/comments/168195763","pull_request_review_id":96522366,"id":168195763,"diff_hunk":"@@ -0,0 +1,71 @@\n+from sqlalchemy.ext.associationproxy import association_proxy\n+\n+from dataservice.extensions import db\n+from dataservice.api.common.model import Base\n+from dataservice.api.genomic_file.models import GenomicFile\n+\n+\n+class Workflow(db.Model, Base):\n+    \"\"\"\n+    Workflow entity represents an executed bioinformatics pipeline\n+\n+    :param kf_id: Unique id given by the Kid's First DCC\n+    :param created_at: Time of object creation\n+    :param modified_at: Last time of object modification\n+    :param task_id: Id of executed task\n+    :param name: Name of workflow\n+    :param version: Version of workflow\n+    :param github_url: URL to repository hosted on GitHub\n+    \"\"\"\n+    __tablename__ = 'workflow'\n+\n+    task_id = db.Column(db.Text())\n+    name = db.Column(db.Text())\n+    version = db.Column(db.Text())\n+    github_url = db.Column(db.Text())","path":"dataservice/api/workflow/models.py","position":25,"original_position":25,"commit_id":"62c55595f28ed278e30904d4025330885df6109e","original_commit_id":"62c55595f28ed278e30904d4025330885df6109e","user":{"login":"znatty22","id":10283712,"avatar_url":"https://avatars2.githubusercontent.com/u/10283712?v=4","gravatar_id":"","url":"https://api.github.com/users/znatty22","html_url":"https://github.com/znatty22","followers_url":"https://api.github.com/users/znatty22/followers","following_url":"https://api.github.com/users/znatty22/following{/other_user}","gists_url":"https://api.github.com/users/znatty22/gists{/gist_id}","starred_url":"https://api.github.com/users/znatty22/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/znatty22/subscriptions","organizations_url":"https://api.github.com/users/znatty22/orgs","repos_url":"https://api.github.com/users/znatty22/repos","events_url":"https://api.github.com/users/znatty22/events{/privacy}","received_events_url":"https://api.github.com/users/znatty22/received_events","type":"User","site_admin":false},"body":"This library looks pretty cool: http://sqlalchemy-utils.readthedocs.io/en/latest/_modules/sqlalchemy_utils/types/url.html\r\n\r\nWe could probably use it for custom types like URLs and maybe even do some validation at the model level. Something to look into later ","created_at":"2018-02-14T14:47:28Z","updated_at":"2018-02-14T14:47:28Z","html_url":"https://github.com/kids-first/kf-api-dataservice/pull/126#discussion_r168195763","pull_request_url":"https://api.github.com/repos/kids-first/kf-api-dataservice/pulls/126","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/kids-first/kf-api-dataservice/pulls/comments/168195763"},"html":{"href":"https://github.com/kids-first/kf-api-dataservice/pull/126#discussion_r168195763"},"pull_request":{"href":"https://api.github.com/repos/kids-first/kf-api-dataservice/pulls/126"}}},"pull_request":{"url":"https://api.github.com/repos/kids-first/kf-api-dataservice/pulls/126","id":169018076,"html_url":"https://github.com/kids-first/kf-api-dataservice/pull/126","diff_url":"https://github.com/kids-first/kf-api-dataservice/pull/126.diff","patch_url":"https://github.com/kids-first/kf-api-dataservice/pull/126.patch","issue_url":"https://api.github.com/repos/kids-first/kf-api-dataservice/issues/126","number":126,"state":"open","locked":false,"title":"✨ Workflow model","user":{"login":"znatty22","id":10283712,"avatar_url":"https://avatars2.githubusercontent.com/u/10283712?v=4","gravatar_id":"","url":"https://api.github.com/users/znatty22","html_url":"https://github.com/znatty22","followers_url":"https://api.github.com/users/znatty22/followers","following_url":"https://api.github.com/users/znatty22/following{/other_user}","gists_url":"https://api.github.com/users/znatty22/gists{/gist_id}","starred_url":"https://api.github.com/users/znatty22/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/znatty22/subscriptions","organizations_url":"https://api.github.com/users/znatty22/orgs","repos_url":"https://api.github.com/users/znatty22/repos","events_url":"https://api.github.com/users/znatty22/events{/privacy}","received_events_url":"https://api.github.com/users/znatty22/received_events","type":"User","site_admin":false},"body":"Add workflow model (workflow table with workflow-genomic_file association)\r\nAdd workflow models unit tests\r\nAdd updated entity relationship diagram\r\nAdd updated mock data generator","created_at":"2018-02-14T04:13:15Z","updated_at":"2018-02-14T14:47:28Z","closed_at":null,"merged_at":null,"merge_commit_sha":"250cee57eb8589eeaccf32c31e0cb5d776958b8f","assignee":{"login":"znatty22","id":10283712,"avatar_url":"https://avatars2.githubusercontent.com/u/10283712?v=4","gravatar_id":"","url":"https://api.github.com/users/znatty22","html_url":"https://github.com/znatty22","followers_url":"https://api.github.com/users/znatty22/followers","following_url":"https://api.github.com/users/znatty22/following{/other_user}","gists_url":"https://api.github.com/users/znatty22/gists{/gist_id}","starred_url":"https://api.github.com/users/znatty22/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/znatty22/subscriptions","organizations_url":"https://api.github.com/users/znatty22/orgs","repos_url":"https://api.github.com/users/znatty22/repos","events_url":"https://api.github.com/users/znatty22/events{/privacy}","received_events_url":"https://api.github.com/users/znatty22/received_events","type":"User","site_admin":false},"assignees":[{"login":"znatty22","id":10283712,"avatar_url":"https://avatars2.githubusercontent.com/u/10283712?v=4","gravatar_id":"","url":"https://api.github.com/users/znatty22","html_url":"https://github.com/znatty22","followers_url":"https://api.github.com/users/znatty22/followers","following_url":"https://api.github.com/users/znatty22/following{/other_user}","gists_url":"https://api.github.com/users/znatty22/gists{/gist_id}","starred_url":"https://api.github.com/users/znatty22/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/znatty22/subscriptions","organizations_url":"https://api.github.com/users/znatty22/orgs","repos_url":"https://api.github.com/users/znatty22/repos","events_url":"https://api.github.com/users/znatty22/events{/privacy}","received_events_url":"https://api.github.com/users/znatty22/received_events","type":"User","site_admin":false}],"requested_reviewers":[{"login":"allisonheath","id":2213854,"avatar_url":"https://avatars3.githubusercontent.com/u/2213854?v=4","gravatar_id":"","url":"https://api.github.com/users/allisonheath","html_url":"https://github.com/allisonheath","followers_url":"https://api.github.com/users/allisonheath/followers","following_url":"https://api.github.com/users/allisonheath/following{/other_user}","gists_url":"https://api.github.com/users/allisonheath/gists{/gist_id}","starred_url":"https://api.github.com/users/allisonheath/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/allisonheath/subscriptions","organizations_url":"https://api.github.com/users/allisonheath/orgs","repos_url":"https://api.github.com/users/allisonheath/repos","events_url":"https://api.github.com/users/allisonheath/events{/privacy}","received_events_url":"https://api.github.com/users/allisonheath/received_events","type":"User","site_admin":false},{"login":"dankolbman","id":2495894,"avatar_url":"https://avatars0.githubusercontent.com/u/2495894?v=4","gravatar_id":"","url":"https://api.github.com/users/dankolbman","html_url":"https://github.com/dankolbman","followers_url":"https://api.github.com/users/dankolbman/followers","following_url":"https://api.github.com/users/dankolbman/following{/other_user}","gists_url":"https://api.github.com/users/dankolbman/gists{/gist_id}","starred_url":"https://api.github.com/users/dankolbman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dankolbman/subscriptions","organizations_url":"https://api.github.com/users/dankolbman/orgs","repos_url":"https://api.github.com/users/dankolbman/repos","events_url":"https://api.github.com/users/dankolbman/events{/privacy}","received_events_url":"https://api.github.com/users/dankolbman/received_events","type":"User","site_admin":false},{"login":"parimalak","id":20447220,"avatar_url":"https://avatars2.githubusercontent.com/u/20447220?v=4","gravatar_id":"","url":"https://api.github.com/users/parimalak","html_url":"https://github.com/parimalak","followers_url":"https://api.github.com/users/parimalak/followers","following_url":"https://api.github.com/users/parimalak/following{/other_user}","gists_url":"https://api.github.com/users/parimalak/gists{/gist_id}","starred_url":"https://api.github.com/users/parimalak/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/parimalak/subscriptions","organizations_url":"https://api.github.com/users/parimalak/orgs","repos_url":"https://api.github.com/users/parimalak/repos","events_url":"https://api.github.com/users/parimalak/events{/privacy}","received_events_url":"https://api.github.com/users/parimalak/received_events","type":"User","site_admin":false}],"requested_teams":[],"labels":[{"id":806490829,"url":"https://api.github.com/repos/kids-first/kf-api-dataservice/labels/data%20model","name":"data model","color":"027587","default":false}],"milestone":null,"commits_url":"https://api.github.com/repos/kids-first/kf-api-dataservice/pulls/126/commits","review_comments_url":"https://api.github.com/repos/kids-first/kf-api-dataservice/pulls/126/comments","review_comment_url":"https://api.github.com/repos/kids-first/kf-api-dataservice/pulls/comments{/number}","comments_url":"https://api.github.com/repos/kids-first/kf-api-dataservice/issues/126/comments","statuses_url":"https://api.github.com/repos/kids-first/kf-api-dataservice/statuses/62c55595f28ed278e30904d4025330885df6109e","head":{"label":"kids-first:workflow-model","ref":"workflow-model","sha":"62c55595f28ed278e30904d4025330885df6109e","user":{"login":"kids-first","id":29782953,"avatar_url":"https://avatars2.githubusercontent.com/u/29782953?v=4","gravatar_id":"","url":"https://api.github.com/users/kids-first","html_url":"https://github.com/kids-first","followers_url":"https://api.github.com/users/kids-first/followers","following_url":"https://api.github.com/users/kids-first/following{/other_user}","gists_url":"https://api.github.com/users/kids-first/gists{/gist_id}","starred_url":"https://api.github.com/users/kids-first/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kids-first/subscriptions","organizations_url":"https://api.github.com/users/kids-first/orgs","repos_url":"https://api.github.com/users/kids-first/repos","events_url":"https://api.github.com/users/kids-first/events{/privacy}","received_events_url":"https://api.github.com/users/kids-first/received_events","type":"Organization","site_admin":false},"repo":{"id":116870795,"name":"kf-api-dataservice","full_name":"kids-first/kf-api-dataservice","owner":{"login":"kids-first","id":29782953,"avatar_url":"https://avatars2.githubusercontent.com/u/29782953?v=4","gravatar_id":"","url":"https://api.github.com/users/kids-first","html_url":"https://github.com/kids-first","followers_url":"https://api.github.com/users/kids-first/followers","following_url":"https://api.github.com/users/kids-first/following{/other_user}","gists_url":"https://api.github.com/users/kids-first/gists{/gist_id}","starred_url":"https://api.github.com/users/kids-first/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kids-first/subscriptions","organizations_url":"https://api.github.com/users/kids-first/orgs","repos_url":"https://api.github.com/users/kids-first/repos","events_url":"https://api.github.com/users/kids-first/events{/privacy}","received_events_url":"https://api.github.com/users/kids-first/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/kids-first/kf-api-dataservice","description":":construction: Primary API for interacting with the Kids First datamodel","fork":false,"url":"https://api.github.com/repos/kids-first/kf-api-dataservice","forks_url":"https://api.github.com/repos/kids-first/kf-api-dataservice/forks","keys_url":"https://api.github.com/repos/kids-first/kf-api-dataservice/keys{/key_id}","collaborators_url":"https://api.github.com/repos/kids-first/kf-api-dataservice/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/kids-first/kf-api-dataservice/teams","hooks_url":"https://api.github.com/repos/kids-first/kf-api-dataservice/hooks","issue_events_url":"https://api.github.com/repos/kids-first/kf-api-dataservice/issues/events{/number}","events_url":"https://api.github.com/repos/kids-first/kf-api-dataservice/events","assignees_url":"https://api.github.com/repos/kids-first/kf-api-dataservice/assignees{/user}","branches_url":"https://api.github.com/repos/kids-first/kf-api-dataservice/branches{/branch}","tags_url":"https://api.github.com/repos/kids-first/kf-api-dataservice/tags","blobs_url":"https://api.github.com/repos/kids-first/kf-api-dataservice/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/kids-first/kf-api-dataservice/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/kids-first/kf-api-dataservice/git/refs{/sha}","trees_url":"https://api.github.com/repos/kids-first/kf-api-dataservice/git/trees{/sha}","statuses_url":"https://api.github.com/repos/kids-first/kf-api-dataservice/statuses/{sha}","languages_url":"https://api.github.com/repos/kids-first/kf-api-dataservice/languages","stargazers_url":"https://api.github.com/repos/kids-first/kf-api-dataservice/stargazers","contributors_url":"https://api.github.com/repos/kids-first/kf-api-dataservice/contributors","subscribers_url":"https://api.github.com/repos/kids-first/kf-api-dataservice/subscribers","subscription_url":"https://api.github.com/repos/kids-first/kf-api-dataservice/subscription","commits_url":"https://api.github.com/repos/kids-first/kf-api-dataservice/commits{/sha}","git_commits_url":"https://api.github.com/repos/kids-first/kf-api-dataservice/git/commits{/sha}","comments_url":"https://api.github.com/repos/kids-first/kf-api-dataservice/comments{/number}","issue_comment_url":"https://api.github.com/repos/kids-first/kf-api-dataservice/issues/comments{/number}","contents_url":"https://api.github.com/repos/kids-first/kf-api-dataservice/contents/{+path}","compare_url":"https://api.github.com/repos/kids-first/kf-api-dataservice/compare/{base}...{head}","merges_url":"https://api.github.com/repos/kids-first/kf-api-dataservice/merges","archive_url":"https://api.github.com/repos/kids-first/kf-api-dataservice/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/kids-first/kf-api-dataservice/downloads","issues_url":"https://api.github.com/repos/kids-first/kf-api-dataservice/issues{/number}","pulls_url":"https://api.github.com/repos/kids-first/kf-api-dataservice/pulls{/number}","milestones_url":"https://api.github.com/repos/kids-first/kf-api-dataservice/milestones{/number}","notifications_url":"https://api.github.com/repos/kids-first/kf-api-dataservice/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/kids-first/kf-api-dataservice/labels{/name}","releases_url":"https://api.github.com/repos/kids-first/kf-api-dataservice/releases{/id}","deployments_url":"https://api.github.com/repos/kids-first/kf-api-dataservice/deployments","created_at":"2018-01-09T21:06:39Z","updated_at":"2018-01-25T13:49:24Z","pushed_at":"2018-02-14T14:07:51Z","git_url":"git://github.com/kids-first/kf-api-dataservice.git","ssh_url":"git@github.com:kids-first/kf-api-dataservice.git","clone_url":"https://github.com/kids-first/kf-api-dataservice.git","svn_url":"https://github.com/kids-first/kf-api-dataservice","homepage":"","size":1633,"stargazers_count":1,"watchers_count":1,"language":"Python","has_issues":true,"has_projects":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":39,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0"},"forks":0,"open_issues":39,"watchers":1,"default_branch":"master"}},"base":{"label":"kids-first:master","ref":"master","sha":"82b32b222c9c49e616f9513816d3a4ef4ac300b4","user":{"login":"kids-first","id":29782953,"avatar_url":"https://avatars2.githubusercontent.com/u/29782953?v=4","gravatar_id":"","url":"https://api.github.com/users/kids-first","html_url":"https://github.com/kids-first","followers_url":"https://api.github.com/users/kids-first/followers","following_url":"https://api.github.com/users/kids-first/following{/other_user}","gists_url":"https://api.github.com/users/kids-first/gists{/gist_id}","starred_url":"https://api.github.com/users/kids-first/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kids-first/subscriptions","organizations_url":"https://api.github.com/users/kids-first/orgs","repos_url":"https://api.github.com/users/kids-first/repos","events_url":"https://api.github.com/users/kids-first/events{/privacy}","received_events_url":"https://api.github.com/users/kids-first/received_events","type":"Organization","site_admin":false},"repo":{"id":116870795,"name":"kf-api-dataservice","full_name":"kids-first/kf-api-dataservice","owner":{"login":"kids-first","id":29782953,"avatar_url":"https://avatars2.githubusercontent.com/u/29782953?v=4","gravatar_id":"","url":"https://api.github.com/users/kids-first","html_url":"https://github.com/kids-first","followers_url":"https://api.github.com/users/kids-first/followers","following_url":"https://api.github.com/users/kids-first/following{/other_user}","gists_url":"https://api.github.com/users/kids-first/gists{/gist_id}","starred_url":"https://api.github.com/users/kids-first/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kids-first/subscriptions","organizations_url":"https://api.github.com/users/kids-first/orgs","repos_url":"https://api.github.com/users/kids-first/repos","events_url":"https://api.github.com/users/kids-first/events{/privacy}","received_events_url":"https://api.github.com/users/kids-first/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/kids-first/kf-api-dataservice","description":":construction: Primary API for interacting with the Kids First datamodel","fork":false,"url":"https://api.github.com/repos/kids-first/kf-api-dataservice","forks_url":"https://api.github.com/repos/kids-first/kf-api-dataservice/forks","keys_url":"https://api.github.com/repos/kids-first/kf-api-dataservice/keys{/key_id}","collaborators_url":"https://api.github.com/repos/kids-first/kf-api-dataservice/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/kids-first/kf-api-dataservice/teams","hooks_url":"https://api.github.com/repos/kids-first/kf-api-dataservice/hooks","issue_events_url":"https://api.github.com/repos/kids-first/kf-api-dataservice/issues/events{/number}","events_url":"https://api.github.com/repos/kids-first/kf-api-dataservice/events","assignees_url":"https://api.github.com/repos/kids-first/kf-api-dataservice/assignees{/user}","branches_url":"https://api.github.com/repos/kids-first/kf-api-dataservice/branches{/branch}","tags_url":"https://api.github.com/repos/kids-first/kf-api-dataservice/tags","blobs_url":"https://api.github.com/repos/kids-first/kf-api-dataservice/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/kids-first/kf-api-dataservice/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/kids-first/kf-api-dataservice/git/refs{/sha}","trees_url":"https://api.github.com/repos/kids-first/kf-api-dataservice/git/trees{/sha}","statuses_url":"https://api.github.com/repos/kids-first/kf-api-dataservice/statuses/{sha}","languages_url":"https://api.github.com/repos/kids-first/kf-api-dataservice/languages","stargazers_url":"https://api.github.com/repos/kids-first/kf-api-dataservice/stargazers","contributors_url":"https://api.github.com/repos/kids-first/kf-api-dataservice/contributors","subscribers_url":"https://api.github.com/repos/kids-first/kf-api-dataservice/subscribers","subscription_url":"https://api.github.com/repos/kids-first/kf-api-dataservice/subscription","commits_url":"https://api.github.com/repos/kids-first/kf-api-dataservice/commits{/sha}","git_commits_url":"https://api.github.com/repos/kids-first/kf-api-dataservice/git/commits{/sha}","comments_url":"https://api.github.com/repos/kids-first/kf-api-dataservice/comments{/number}","issue_comment_url":"https://api.github.com/repos/kids-first/kf-api-dataservice/issues/comments{/number}","contents_url":"https://api.github.com/repos/kids-first/kf-api-dataservice/contents/{+path}","compare_url":"https://api.github.com/repos/kids-first/kf-api-dataservice/compare/{base}...{head}","merges_url":"https://api.github.com/repos/kids-first/kf-api-dataservice/merges","archive_url":"https://api.github.com/repos/kids-first/kf-api-dataservice/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/kids-first/kf-api-dataservice/downloads","issues_url":"https://api.github.com/repos/kids-first/kf-api-dataservice/issues{/number}","pulls_url":"https://api.github.com/repos/kids-first/kf-api-dataservice/pulls{/number}","milestones_url":"https://api.github.com/repos/kids-first/kf-api-dataservice/milestones{/number}","notifications_url":"https://api.github.com/repos/kids-first/kf-api-dataservice/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/kids-first/kf-api-dataservice/labels{/name}","releases_url":"https://api.github.com/repos/kids-first/kf-api-dataservice/releases{/id}","deployments_url":"https://api.github.com/repos/kids-first/kf-api-dataservice/deployments","created_at":"2018-01-09T21:06:39Z","updated_at":"2018-01-25T13:49:24Z","pushed_at":"2018-02-14T14:07:51Z","git_url":"git://github.com/kids-first/kf-api-dataservice.git","ssh_url":"git@github.com:kids-first/kf-api-dataservice.git","clone_url":"https://github.com/kids-first/kf-api-dataservice.git","svn_url":"https://github.com/kids-first/kf-api-dataservice","homepage":"","size":1633,"stargazers_count":1,"watchers_count":1,"language":"Python","has_issues":true,"has_projects":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":39,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0"},"forks":0,"open_issues":39,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/kids-first/kf-api-dataservice/pulls/126"},"html":{"href":"https://github.com/kids-first/kf-api-dataservice/pull/126"},"issue":{"href":"https://api.github.com/repos/kids-first/kf-api-dataservice/issues/126"},"comments":{"href":"https://api.github.com/repos/kids-first/kf-api-dataservice/issues/126/comments"},"review_comments":{"href":"https://api.github.com/repos/kids-first/kf-api-dataservice/pulls/126/comments"},"review_comment":{"href":"https://api.github.com/repos/kids-first/kf-api-dataservice/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/kids-first/kf-api-dataservice/pulls/126/commits"},"statuses":{"href":"https://api.github.com/repos/kids-first/kf-api-dataservice/statuses/62c55595f28ed278e30904d4025330885df6109e"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"znatty22"}}