{"action":"created","comment":{"url":"https://api.github.com/repos/MarquezProject/marquez/pulls/comments/241920201","pull_request_review_id":185321816,"id":241920201,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDI0MTkyMDIwMQ==","diff_hunk":"@@ -0,0 +1,60 @@\n+package marquez.api.resources;\n+\n+import static javax.ws.rs.core.MediaType.APPLICATION_JSON;\n+import static javax.ws.rs.core.Response.Status.NOT_FOUND;\n+\n+import com.codahale.metrics.annotation.ExceptionMetered;\n+import com.codahale.metrics.annotation.ResponseMetered;\n+import com.codahale.metrics.annotation.Timed;\n+import java.util.List;\n+import javax.ws.rs.DefaultValue;\n+import javax.ws.rs.GET;\n+import javax.ws.rs.Path;\n+import javax.ws.rs.PathParam;\n+import javax.ws.rs.Produces;\n+import javax.ws.rs.QueryParam;\n+import javax.ws.rs.WebApplicationException;\n+import javax.ws.rs.core.Response;\n+import lombok.NonNull;\n+import marquez.api.mappers.DatasetResponseMapper;\n+import marquez.api.models.DatasetResponse;\n+import marquez.api.models.DatasetsResponse;\n+import marquez.common.models.Namespace;\n+import marquez.core.exceptions.UnexpectedException;\n+import marquez.core.services.NamespaceService;\n+import marquez.service.DatasetService;\n+import marquez.service.models.Dataset;\n+\n+@Path(\"/api/v1/namespaces/{namespace}\")\n+public final class DatasetResource {\n+  private final DatasetResponseMapper datasetResponseMapper = new DatasetResponseMapper();\n+  private final NamespaceService namespaceService;\n+  private final DatasetService datasetService;\n+\n+  public DatasetResource(\n+      @NonNull final NamespaceService namespaceService,\n+      @NonNull final DatasetService datasetService) {\n+    this.namespaceService = namespaceService;\n+    this.datasetService = datasetService;\n+  }\n+\n+  @GET\n+  @ResponseMetered\n+  @ExceptionMetered\n+  @Timed\n+  @Path(\"/datasets\")\n+  @Produces(APPLICATION_JSON)\n+  public Response list(\n+      @PathParam(\"namespace\") String namespace,\n+      @QueryParam(\"limit\") @DefaultValue(\"100\") Integer limit,\n+      @QueryParam(\"offset\") @DefaultValue(\"0\") Integer offset)\n+      throws UnexpectedException, WebApplicationException {\n+    if (!namespaceService.exists(namespace)) {\n+      throw new WebApplicationException(\n+          String.format(\"The namespace %s does not exist.\", namespace), NOT_FOUND);","path":"src/main/java/marquez/api/resources/DatasetResource.java","position":54,"original_position":54,"commit_id":"bd775ee974bfedc8080e26d6298d39ad3973baaa","original_commit_id":"bd775ee974bfedc8080e26d6298d39ad3973baaa","user":{"login":"wslulciuc","id":1553185,"node_id":"MDQ6VXNlcjE1NTMxODU=","avatar_url":"https://avatars2.githubusercontent.com/u/1553185?v=4","gravatar_id":"","url":"https://api.github.com/users/wslulciuc","html_url":"https://github.com/wslulciuc","followers_url":"https://api.github.com/users/wslulciuc/followers","following_url":"https://api.github.com/users/wslulciuc/following{/other_user}","gists_url":"https://api.github.com/users/wslulciuc/gists{/gist_id}","starred_url":"https://api.github.com/users/wslulciuc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wslulciuc/subscriptions","organizations_url":"https://api.github.com/users/wslulciuc/orgs","repos_url":"https://api.github.com/users/wslulciuc/repos","events_url":"https://api.github.com/users/wslulciuc/events{/privacy}","received_events_url":"https://api.github.com/users/wslulciuc/received_events","type":"User","site_admin":false},"body":"/cc @ashulmanWeWork :)","created_at":"2018-12-14T23:33:13Z","updated_at":"2018-12-14T23:33:13Z","html_url":"https://github.com/MarquezProject/marquez/pull/194#discussion_r241920201","pull_request_url":"https://api.github.com/repos/MarquezProject/marquez/pulls/194","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/MarquezProject/marquez/pulls/comments/241920201"},"html":{"href":"https://github.com/MarquezProject/marquez/pull/194#discussion_r241920201"},"pull_request":{"href":"https://api.github.com/repos/MarquezProject/marquez/pulls/194"}},"in_reply_to_id":241909033},"pull_request":{"url":"https://api.github.com/repos/MarquezProject/marquez/pulls/194","id":238853795,"node_id":"MDExOlB1bGxSZXF1ZXN0MjM4ODUzNzk1","html_url":"https://github.com/MarquezProject/marquez/pull/194","diff_url":"https://github.com/MarquezProject/marquez/pull/194.diff","patch_url":"https://github.com/MarquezProject/marquez/pull/194.patch","issue_url":"https://api.github.com/repos/MarquezProject/marquez/issues/194","number":194,"state":"open","locked":false,"title":"Add DatasetAPI","user":{"login":"wslulciuc","id":1553185,"node_id":"MDQ6VXNlcjE1NTMxODU=","avatar_url":"https://avatars2.githubusercontent.com/u/1553185?v=4","gravatar_id":"","url":"https://api.github.com/users/wslulciuc","html_url":"https://github.com/wslulciuc","followers_url":"https://api.github.com/users/wslulciuc/followers","following_url":"https://api.github.com/users/wslulciuc/following{/other_user}","gists_url":"https://api.github.com/users/wslulciuc/gists{/gist_id}","starred_url":"https://api.github.com/users/wslulciuc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wslulciuc/subscriptions","organizations_url":"https://api.github.com/users/wslulciuc/orgs","repos_url":"https://api.github.com/users/wslulciuc/repos","events_url":"https://api.github.com/users/wslulciuc/events{/privacy}","received_events_url":"https://api.github.com/users/wslulciuc/received_events","type":"User","site_admin":false},"body":"This PR adds the following #100:\r\n\r\n- An endpoint to list datasets\r\n- [`DatasetService`](https://github.com/MarquezProject/marquez/blob/add-dataset-api/src/main/java/marquez/service/DatasetService.java) **class**\r\n- [`DatasetDao`](https://github.com/MarquezProject/marquez/blob/add-dataset-api/src/main/java/marquez/db/DatasetDao.java) **class**\r\n- More lombok usage!\r\n- A set of common models: [`Urn`](https://github.com/MarquezProject/marquez/blob/add-dataset-api/src/main/java/marquez/common/models/Urn.java) **class**, [`Namespace`](https://github.com/MarquezProject/marquez/blob/add-dataset-api/src/main/java/marquez/common/models/Namespace.java) **class**, etc","created_at":"2018-12-14T21:57:16Z","updated_at":"2018-12-14T23:33:13Z","closed_at":null,"merged_at":null,"merge_commit_sha":"47c5c00ecd7695a53743eb182b42845b456c79ff","assignee":null,"assignees":[],"requested_reviewers":[{"login":"ashulmanWeWork","id":41963174,"node_id":"MDQ6VXNlcjQxOTYzMTc0","avatar_url":"https://avatars0.githubusercontent.com/u/41963174?v=4","gravatar_id":"","url":"https://api.github.com/users/ashulmanWeWork","html_url":"https://github.com/ashulmanWeWork","followers_url":"https://api.github.com/users/ashulmanWeWork/followers","following_url":"https://api.github.com/users/ashulmanWeWork/following{/other_user}","gists_url":"https://api.github.com/users/ashulmanWeWork/gists{/gist_id}","starred_url":"https://api.github.com/users/ashulmanWeWork/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ashulmanWeWork/subscriptions","organizations_url":"https://api.github.com/users/ashulmanWeWork/orgs","repos_url":"https://api.github.com/users/ashulmanWeWork/repos","events_url":"https://api.github.com/users/ashulmanWeWork/events{/privacy}","received_events_url":"https://api.github.com/users/ashulmanWeWork/received_events","type":"User","site_admin":false}],"requested_teams":[],"labels":[{"id":1031442295,"node_id":"MDU6TGFiZWwxMDMxNDQyMjk1","url":"https://api.github.com/repos/MarquezProject/marquez/labels/cleanup","name":"cleanup","color":"ecccff","default":false},{"id":985287741,"node_id":"MDU6TGFiZWw5ODUyODc3NDE=","url":"https://api.github.com/repos/MarquezProject/marquez/labels/enhancement","name":"enhancement","color":"c2cafc","default":true},{"id":1016879333,"node_id":"MDU6TGFiZWwxMDE2ODc5MzMz","url":"https://api.github.com/repos/MarquezProject/marquez/labels/in%20progress","name":"in progress","color":"fce9c2","default":false}],"milestone":null,"commits_url":"https://api.github.com/repos/MarquezProject/marquez/pulls/194/commits","review_comments_url":"https://api.github.com/repos/MarquezProject/marquez/pulls/194/comments","review_comment_url":"https://api.github.com/repos/MarquezProject/marquez/pulls/comments{/number}","comments_url":"https://api.github.com/repos/MarquezProject/marquez/issues/194/comments","statuses_url":"https://api.github.com/repos/MarquezProject/marquez/statuses/bd775ee974bfedc8080e26d6298d39ad3973baaa","head":{"label":"MarquezProject:add-dataset-api","ref":"add-dataset-api","sha":"bd775ee974bfedc8080e26d6298d39ad3973baaa","user":{"login":"MarquezProject","id":40306238,"node_id":"MDEyOk9yZ2FuaXphdGlvbjQwMzA2MjM4","avatar_url":"https://avatars1.githubusercontent.com/u/40306238?v=4","gravatar_id":"","url":"https://api.github.com/users/MarquezProject","html_url":"https://github.com/MarquezProject","followers_url":"https://api.github.com/users/MarquezProject/followers","following_url":"https://api.github.com/users/MarquezProject/following{/other_user}","gists_url":"https://api.github.com/users/MarquezProject/gists{/gist_id}","starred_url":"https://api.github.com/users/MarquezProject/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MarquezProject/subscriptions","organizations_url":"https://api.github.com/users/MarquezProject/orgs","repos_url":"https://api.github.com/users/MarquezProject/repos","events_url":"https://api.github.com/users/MarquezProject/events{/privacy}","received_events_url":"https://api.github.com/users/MarquezProject/received_events","type":"Organization","site_admin":false},"repo":{"id":139907613,"node_id":"MDEwOlJlcG9zaXRvcnkxMzk5MDc2MTM=","name":"marquez","full_name":"MarquezProject/marquez","private":false,"owner":{"login":"MarquezProject","id":40306238,"node_id":"MDEyOk9yZ2FuaXphdGlvbjQwMzA2MjM4","avatar_url":"https://avatars1.githubusercontent.com/u/40306238?v=4","gravatar_id":"","url":"https://api.github.com/users/MarquezProject","html_url":"https://github.com/MarquezProject","followers_url":"https://api.github.com/users/MarquezProject/followers","following_url":"https://api.github.com/users/MarquezProject/following{/other_user}","gists_url":"https://api.github.com/users/MarquezProject/gists{/gist_id}","starred_url":"https://api.github.com/users/MarquezProject/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MarquezProject/subscriptions","organizations_url":"https://api.github.com/users/MarquezProject/orgs","repos_url":"https://api.github.com/users/MarquezProject/repos","events_url":"https://api.github.com/users/MarquezProject/events{/privacy}","received_events_url":"https://api.github.com/users/MarquezProject/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/MarquezProject/marquez","description":"Marquez is an open source metadata service for the collection, aggregation, and visualization of a data ecosystem's metadata","fork":false,"url":"https://api.github.com/repos/MarquezProject/marquez","forks_url":"https://api.github.com/repos/MarquezProject/marquez/forks","keys_url":"https://api.github.com/repos/MarquezProject/marquez/keys{/key_id}","collaborators_url":"https://api.github.com/repos/MarquezProject/marquez/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/MarquezProject/marquez/teams","hooks_url":"https://api.github.com/repos/MarquezProject/marquez/hooks","issue_events_url":"https://api.github.com/repos/MarquezProject/marquez/issues/events{/number}","events_url":"https://api.github.com/repos/MarquezProject/marquez/events","assignees_url":"https://api.github.com/repos/MarquezProject/marquez/assignees{/user}","branches_url":"https://api.github.com/repos/MarquezProject/marquez/branches{/branch}","tags_url":"https://api.github.com/repos/MarquezProject/marquez/tags","blobs_url":"https://api.github.com/repos/MarquezProject/marquez/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/MarquezProject/marquez/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/MarquezProject/marquez/git/refs{/sha}","trees_url":"https://api.github.com/repos/MarquezProject/marquez/git/trees{/sha}","statuses_url":"https://api.github.com/repos/MarquezProject/marquez/statuses/{sha}","languages_url":"https://api.github.com/repos/MarquezProject/marquez/languages","stargazers_url":"https://api.github.com/repos/MarquezProject/marquez/stargazers","contributors_url":"https://api.github.com/repos/MarquezProject/marquez/contributors","subscribers_url":"https://api.github.com/repos/MarquezProject/marquez/subscribers","subscription_url":"https://api.github.com/repos/MarquezProject/marquez/subscription","commits_url":"https://api.github.com/repos/MarquezProject/marquez/commits{/sha}","git_commits_url":"https://api.github.com/repos/MarquezProject/marquez/git/commits{/sha}","comments_url":"https://api.github.com/repos/MarquezProject/marquez/comments{/number}","issue_comment_url":"https://api.github.com/repos/MarquezProject/marquez/issues/comments{/number}","contents_url":"https://api.github.com/repos/MarquezProject/marquez/contents/{+path}","compare_url":"https://api.github.com/repos/MarquezProject/marquez/compare/{base}...{head}","merges_url":"https://api.github.com/repos/MarquezProject/marquez/merges","archive_url":"https://api.github.com/repos/MarquezProject/marquez/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/MarquezProject/marquez/downloads","issues_url":"https://api.github.com/repos/MarquezProject/marquez/issues{/number}","pulls_url":"https://api.github.com/repos/MarquezProject/marquez/pulls{/number}","milestones_url":"https://api.github.com/repos/MarquezProject/marquez/milestones{/number}","notifications_url":"https://api.github.com/repos/MarquezProject/marquez/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/MarquezProject/marquez/labels{/name}","releases_url":"https://api.github.com/repos/MarquezProject/marquez/releases{/id}","deployments_url":"https://api.github.com/repos/MarquezProject/marquez/deployments","created_at":"2018-07-05T22:43:20Z","updated_at":"2018-12-14T02:30:28Z","pushed_at":"2018-12-14T23:16:14Z","git_url":"git://github.com/MarquezProject/marquez.git","ssh_url":"git@github.com:MarquezProject/marquez.git","clone_url":"https://github.com/MarquezProject/marquez.git","svn_url":"https://github.com/MarquezProject/marquez","homepage":"","size":784,"stargazers_count":48,"watchers_count":48,"language":"Java","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":5,"mirror_url":null,"archived":false,"open_issues_count":47,"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":5,"open_issues":47,"watchers":48,"default_branch":"master"}},"base":{"label":"MarquezProject:issue-100","ref":"issue-100","sha":"690e965a4b004413b70c22b3f2901dadad37a8dd","user":{"login":"MarquezProject","id":40306238,"node_id":"MDEyOk9yZ2FuaXphdGlvbjQwMzA2MjM4","avatar_url":"https://avatars1.githubusercontent.com/u/40306238?v=4","gravatar_id":"","url":"https://api.github.com/users/MarquezProject","html_url":"https://github.com/MarquezProject","followers_url":"https://api.github.com/users/MarquezProject/followers","following_url":"https://api.github.com/users/MarquezProject/following{/other_user}","gists_url":"https://api.github.com/users/MarquezProject/gists{/gist_id}","starred_url":"https://api.github.com/users/MarquezProject/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MarquezProject/subscriptions","organizations_url":"https://api.github.com/users/MarquezProject/orgs","repos_url":"https://api.github.com/users/MarquezProject/repos","events_url":"https://api.github.com/users/MarquezProject/events{/privacy}","received_events_url":"https://api.github.com/users/MarquezProject/received_events","type":"Organization","site_admin":false},"repo":{"id":139907613,"node_id":"MDEwOlJlcG9zaXRvcnkxMzk5MDc2MTM=","name":"marquez","full_name":"MarquezProject/marquez","private":false,"owner":{"login":"MarquezProject","id":40306238,"node_id":"MDEyOk9yZ2FuaXphdGlvbjQwMzA2MjM4","avatar_url":"https://avatars1.githubusercontent.com/u/40306238?v=4","gravatar_id":"","url":"https://api.github.com/users/MarquezProject","html_url":"https://github.com/MarquezProject","followers_url":"https://api.github.com/users/MarquezProject/followers","following_url":"https://api.github.com/users/MarquezProject/following{/other_user}","gists_url":"https://api.github.com/users/MarquezProject/gists{/gist_id}","starred_url":"https://api.github.com/users/MarquezProject/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MarquezProject/subscriptions","organizations_url":"https://api.github.com/users/MarquezProject/orgs","repos_url":"https://api.github.com/users/MarquezProject/repos","events_url":"https://api.github.com/users/MarquezProject/events{/privacy}","received_events_url":"https://api.github.com/users/MarquezProject/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/MarquezProject/marquez","description":"Marquez is an open source metadata service for the collection, aggregation, and visualization of a data ecosystem's metadata","fork":false,"url":"https://api.github.com/repos/MarquezProject/marquez","forks_url":"https://api.github.com/repos/MarquezProject/marquez/forks","keys_url":"https://api.github.com/repos/MarquezProject/marquez/keys{/key_id}","collaborators_url":"https://api.github.com/repos/MarquezProject/marquez/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/MarquezProject/marquez/teams","hooks_url":"https://api.github.com/repos/MarquezProject/marquez/hooks","issue_events_url":"https://api.github.com/repos/MarquezProject/marquez/issues/events{/number}","events_url":"https://api.github.com/repos/MarquezProject/marquez/events","assignees_url":"https://api.github.com/repos/MarquezProject/marquez/assignees{/user}","branches_url":"https://api.github.com/repos/MarquezProject/marquez/branches{/branch}","tags_url":"https://api.github.com/repos/MarquezProject/marquez/tags","blobs_url":"https://api.github.com/repos/MarquezProject/marquez/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/MarquezProject/marquez/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/MarquezProject/marquez/git/refs{/sha}","trees_url":"https://api.github.com/repos/MarquezProject/marquez/git/trees{/sha}","statuses_url":"https://api.github.com/repos/MarquezProject/marquez/statuses/{sha}","languages_url":"https://api.github.com/repos/MarquezProject/marquez/languages","stargazers_url":"https://api.github.com/repos/MarquezProject/marquez/stargazers","contributors_url":"https://api.github.com/repos/MarquezProject/marquez/contributors","subscribers_url":"https://api.github.com/repos/MarquezProject/marquez/subscribers","subscription_url":"https://api.github.com/repos/MarquezProject/marquez/subscription","commits_url":"https://api.github.com/repos/MarquezProject/marquez/commits{/sha}","git_commits_url":"https://api.github.com/repos/MarquezProject/marquez/git/commits{/sha}","comments_url":"https://api.github.com/repos/MarquezProject/marquez/comments{/number}","issue_comment_url":"https://api.github.com/repos/MarquezProject/marquez/issues/comments{/number}","contents_url":"https://api.github.com/repos/MarquezProject/marquez/contents/{+path}","compare_url":"https://api.github.com/repos/MarquezProject/marquez/compare/{base}...{head}","merges_url":"https://api.github.com/repos/MarquezProject/marquez/merges","archive_url":"https://api.github.com/repos/MarquezProject/marquez/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/MarquezProject/marquez/downloads","issues_url":"https://api.github.com/repos/MarquezProject/marquez/issues{/number}","pulls_url":"https://api.github.com/repos/MarquezProject/marquez/pulls{/number}","milestones_url":"https://api.github.com/repos/MarquezProject/marquez/milestones{/number}","notifications_url":"https://api.github.com/repos/MarquezProject/marquez/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/MarquezProject/marquez/labels{/name}","releases_url":"https://api.github.com/repos/MarquezProject/marquez/releases{/id}","deployments_url":"https://api.github.com/repos/MarquezProject/marquez/deployments","created_at":"2018-07-05T22:43:20Z","updated_at":"2018-12-14T02:30:28Z","pushed_at":"2018-12-14T23:16:14Z","git_url":"git://github.com/MarquezProject/marquez.git","ssh_url":"git@github.com:MarquezProject/marquez.git","clone_url":"https://github.com/MarquezProject/marquez.git","svn_url":"https://github.com/MarquezProject/marquez","homepage":"","size":784,"stargazers_count":48,"watchers_count":48,"language":"Java","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":5,"mirror_url":null,"archived":false,"open_issues_count":47,"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":5,"open_issues":47,"watchers":48,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/MarquezProject/marquez/pulls/194"},"html":{"href":"https://github.com/MarquezProject/marquez/pull/194"},"issue":{"href":"https://api.github.com/repos/MarquezProject/marquez/issues/194"},"comments":{"href":"https://api.github.com/repos/MarquezProject/marquez/issues/194/comments"},"review_comments":{"href":"https://api.github.com/repos/MarquezProject/marquez/pulls/194/comments"},"review_comment":{"href":"https://api.github.com/repos/MarquezProject/marquez/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/MarquezProject/marquez/pulls/194/commits"},"statuses":{"href":"https://api.github.com/repos/MarquezProject/marquez/statuses/bd775ee974bfedc8080e26d6298d39ad3973baaa"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"wslulciuc"}}