{"action":"created","comment":{"url":"https://api.github.com/repos/caskdata/cdap/pulls/comments/205839931","pull_request_review_id":141192824,"id":205839931,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIwNTgzOTkzMQ==","diff_hunk":"@@ -1302,3 +1333,55 @@ with the metadata returned as a JSON string in the return body::\n      - The properties requested were returned as a JSON string in the body of the response\n    * - ``404 NOT FOUND``\n      - The entity, program, or run for which properties are being requested was not found\n+\n+**Note**: The metadata aggregation of program, application, stream and dataset associated with a program is\n+deprecated and program runs are treated like any other entity to which metadata can be associated directly.\n+To retrieve the direct metadata of program run please refer to\n+:ref:`Metadata Properties <http-restful-api-metadata-properties>` and\n+:ref:`Metadata Tags <http-restful-api-metadata-tags>`. An additional query parameter ``aggregateRun`` must be set to\n+``false`` while operating with metadata directly associated with program runs.\n+\n+Metadata for Custom Entities\n+============================\n+\n+Metadata can also be associated with custom entities. In CDAP entities are separated into two kinds:\n+\n+- CDAP Entities: These entities are entities which are defined by CDAP and have special meaning in CDAP. ``Namespace``,``Stream``, ``Application``, ``Dataset`` etc. are example of CDAP Entities.\n+\n+- Custom Entities: These entities are user defined entities to represent a resource which exists in CDAP. Custom Entities are represented as a hierarchical key-value pair and can optionally have a explicitly defined type.","path":"cdap-docs/reference-manual/source/http-restful-api/metadata.rst","position":404,"original_position":404,"commit_id":"d866454e054f6873a731bb785d2455a9ed2813f1","original_commit_id":"d866454e054f6873a731bb785d2455a9ed2813f1","user":{"login":"rohitsinha54","id":1472867,"node_id":"MDQ6VXNlcjE0NzI4Njc=","avatar_url":"https://avatars3.githubusercontent.com/u/1472867?v=4","gravatar_id":"","url":"https://api.github.com/users/rohitsinha54","html_url":"https://github.com/rohitsinha54","followers_url":"https://api.github.com/users/rohitsinha54/followers","following_url":"https://api.github.com/users/rohitsinha54/following{/other_user}","gists_url":"https://api.github.com/users/rohitsinha54/gists{/gist_id}","starred_url":"https://api.github.com/users/rohitsinha54/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rohitsinha54/subscriptions","organizations_url":"https://api.github.com/users/rohitsinha54/orgs","repos_url":"https://api.github.com/users/rohitsinha54/repos","events_url":"https://api.github.com/users/rohitsinha54/events{/privacy}","received_events_url":"https://api.github.com/users/rohitsinha54/received_events","type":"User","site_admin":false},"body":"Done.","created_at":"2018-07-27T17:08:59Z","updated_at":"2018-07-27T17:49:44Z","html_url":"https://github.com/caskdata/cdap/pull/10442#discussion_r205839931","pull_request_url":"https://api.github.com/repos/caskdata/cdap/pulls/10442","author_association":"MEMBER","_links":{"self":{"href":"https://api.github.com/repos/caskdata/cdap/pulls/comments/205839931"},"html":{"href":"https://github.com/caskdata/cdap/pull/10442#discussion_r205839931"},"pull_request":{"href":"https://api.github.com/repos/caskdata/cdap/pulls/10442"}},"in_reply_to_id":205831625},"pull_request":{"url":"https://api.github.com/repos/caskdata/cdap/pulls/10442","id":203717045,"node_id":"MDExOlB1bGxSZXF1ZXN0MjAzNzE3MDQ1","html_url":"https://github.com/caskdata/cdap/pull/10442","diff_url":"https://github.com/caskdata/cdap/pull/10442.diff","patch_url":"https://github.com/caskdata/cdap/pull/10442.patch","issue_url":"https://api.github.com/repos/caskdata/cdap/issues/10442","number":10442,"state":"open","locked":false,"title":"CDAP-13260 Metadata Rest APIs update and custom entity [Part 1]","user":{"login":"rohitsinha54","id":1472867,"node_id":"MDQ6VXNlcjE0NzI4Njc=","avatar_url":"https://avatars3.githubusercontent.com/u/1472867?v=4","gravatar_id":"","url":"https://api.github.com/users/rohitsinha54","html_url":"https://github.com/rohitsinha54","followers_url":"https://api.github.com/users/rohitsinha54/followers","following_url":"https://api.github.com/users/rohitsinha54/following{/other_user}","gists_url":"https://api.github.com/users/rohitsinha54/gists{/gist_id}","starred_url":"https://api.github.com/users/rohitsinha54/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rohitsinha54/subscriptions","organizations_url":"https://api.github.com/users/rohitsinha54/orgs","repos_url":"https://api.github.com/users/rohitsinha54/repos","events_url":"https://api.github.com/users/rohitsinha54/events{/privacy}","received_events_url":"https://api.github.com/users/rohitsinha54/received_events","type":"User","site_admin":false},"body":"## Metadata 5.0 Docs\r\n### Part 1\r\n\r\n- Updates to existing rest API to show example of field metadata specifically\r\n- Updates to search api to document `showCustom`\r\n- Added a new sub section on custom entity\r\n\r\nBuild: https://builds.cask.co/browse/CDAP-DQB408-2\r\n\r\nRendered Page: https://builds.cask.co/artifact/CDAP-DQB408/shared/build-2/Docs-HTML/html/reference-manual/http-restful-api/metadata.html","created_at":"2018-07-25T04:17:22Z","updated_at":"2018-07-27T17:49:44Z","closed_at":null,"merged_at":null,"merge_commit_sha":"4b56cfb81879540f44df1be871b14cd0e175f806","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[{"id":673594855,"node_id":"MDU6TGFiZWw2NzM1OTQ4NTU=","url":"https://api.github.com/repos/caskdata/cdap/labels/5.0","name":"5.0","color":"ff6600","default":false},{"id":120134824,"node_id":"MDU6TGFiZWwxMjAxMzQ4MjQ=","url":"https://api.github.com/repos/caskdata/cdap/labels/Docs","name":"Docs","color":"009800","default":false}],"milestone":{"url":"https://api.github.com/repos/caskdata/cdap/milestones/34","html_url":"https://github.com/caskdata/cdap/milestone/34","labels_url":"https://api.github.com/repos/caskdata/cdap/milestones/34/labels","id":2904475,"node_id":"MDk6TWlsZXN0b25lMjkwNDQ3NQ==","number":34,"title":"5.0","description":null,"creator":{"login":"rohitsinha54","id":1472867,"node_id":"MDQ6VXNlcjE0NzI4Njc=","avatar_url":"https://avatars3.githubusercontent.com/u/1472867?v=4","gravatar_id":"","url":"https://api.github.com/users/rohitsinha54","html_url":"https://github.com/rohitsinha54","followers_url":"https://api.github.com/users/rohitsinha54/followers","following_url":"https://api.github.com/users/rohitsinha54/following{/other_user}","gists_url":"https://api.github.com/users/rohitsinha54/gists{/gist_id}","starred_url":"https://api.github.com/users/rohitsinha54/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rohitsinha54/subscriptions","organizations_url":"https://api.github.com/users/rohitsinha54/orgs","repos_url":"https://api.github.com/users/rohitsinha54/repos","events_url":"https://api.github.com/users/rohitsinha54/events{/privacy}","received_events_url":"https://api.github.com/users/rohitsinha54/received_events","type":"User","site_admin":false},"open_issues":2,"closed_issues":25,"state":"open","created_at":"2017-11-10T20:10:34Z","updated_at":"2018-07-27T16:25:45Z","due_on":null,"closed_at":null},"commits_url":"https://api.github.com/repos/caskdata/cdap/pulls/10442/commits","review_comments_url":"https://api.github.com/repos/caskdata/cdap/pulls/10442/comments","review_comment_url":"https://api.github.com/repos/caskdata/cdap/pulls/comments{/number}","comments_url":"https://api.github.com/repos/caskdata/cdap/issues/10442/comments","statuses_url":"https://api.github.com/repos/caskdata/cdap/statuses/d866454e054f6873a731bb785d2455a9ed2813f1","head":{"label":"caskdata:feature-docs/CDAP-13260-metadata-rest-api","ref":"feature-docs/CDAP-13260-metadata-rest-api","sha":"d866454e054f6873a731bb785d2455a9ed2813f1","user":{"login":"caskdata","id":8123023,"node_id":"MDEyOk9yZ2FuaXphdGlvbjgxMjMwMjM=","avatar_url":"https://avatars2.githubusercontent.com/u/8123023?v=4","gravatar_id":"","url":"https://api.github.com/users/caskdata","html_url":"https://github.com/caskdata","followers_url":"https://api.github.com/users/caskdata/followers","following_url":"https://api.github.com/users/caskdata/following{/other_user}","gists_url":"https://api.github.com/users/caskdata/gists{/gist_id}","starred_url":"https://api.github.com/users/caskdata/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/caskdata/subscriptions","organizations_url":"https://api.github.com/users/caskdata/orgs","repos_url":"https://api.github.com/users/caskdata/repos","events_url":"https://api.github.com/users/caskdata/events{/privacy}","received_events_url":"https://api.github.com/users/caskdata/received_events","type":"Organization","site_admin":false},"repo":{"id":22542759,"node_id":"MDEwOlJlcG9zaXRvcnkyMjU0Mjc1OQ==","name":"cdap","full_name":"caskdata/cdap","owner":{"login":"caskdata","id":8123023,"node_id":"MDEyOk9yZ2FuaXphdGlvbjgxMjMwMjM=","avatar_url":"https://avatars2.githubusercontent.com/u/8123023?v=4","gravatar_id":"","url":"https://api.github.com/users/caskdata","html_url":"https://github.com/caskdata","followers_url":"https://api.github.com/users/caskdata/followers","following_url":"https://api.github.com/users/caskdata/following{/other_user}","gists_url":"https://api.github.com/users/caskdata/gists{/gist_id}","starred_url":"https://api.github.com/users/caskdata/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/caskdata/subscriptions","organizations_url":"https://api.github.com/users/caskdata/orgs","repos_url":"https://api.github.com/users/caskdata/repos","events_url":"https://api.github.com/users/caskdata/events{/privacy}","received_events_url":"https://api.github.com/users/caskdata/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/caskdata/cdap","description":"A Unified Integration Platform - Cask Data Application Platform (CDAP)","fork":false,"url":"https://api.github.com/repos/caskdata/cdap","forks_url":"https://api.github.com/repos/caskdata/cdap/forks","keys_url":"https://api.github.com/repos/caskdata/cdap/keys{/key_id}","collaborators_url":"https://api.github.com/repos/caskdata/cdap/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/caskdata/cdap/teams","hooks_url":"https://api.github.com/repos/caskdata/cdap/hooks","issue_events_url":"https://api.github.com/repos/caskdata/cdap/issues/events{/number}","events_url":"https://api.github.com/repos/caskdata/cdap/events","assignees_url":"https://api.github.com/repos/caskdata/cdap/assignees{/user}","branches_url":"https://api.github.com/repos/caskdata/cdap/branches{/branch}","tags_url":"https://api.github.com/repos/caskdata/cdap/tags","blobs_url":"https://api.github.com/repos/caskdata/cdap/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/caskdata/cdap/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/caskdata/cdap/git/refs{/sha}","trees_url":"https://api.github.com/repos/caskdata/cdap/git/trees{/sha}","statuses_url":"https://api.github.com/repos/caskdata/cdap/statuses/{sha}","languages_url":"https://api.github.com/repos/caskdata/cdap/languages","stargazers_url":"https://api.github.com/repos/caskdata/cdap/stargazers","contributors_url":"https://api.github.com/repos/caskdata/cdap/contributors","subscribers_url":"https://api.github.com/repos/caskdata/cdap/subscribers","subscription_url":"https://api.github.com/repos/caskdata/cdap/subscription","commits_url":"https://api.github.com/repos/caskdata/cdap/commits{/sha}","git_commits_url":"https://api.github.com/repos/caskdata/cdap/git/commits{/sha}","comments_url":"https://api.github.com/repos/caskdata/cdap/comments{/number}","issue_comment_url":"https://api.github.com/repos/caskdata/cdap/issues/comments{/number}","contents_url":"https://api.github.com/repos/caskdata/cdap/contents/{+path}","compare_url":"https://api.github.com/repos/caskdata/cdap/compare/{base}...{head}","merges_url":"https://api.github.com/repos/caskdata/cdap/merges","archive_url":"https://api.github.com/repos/caskdata/cdap/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/caskdata/cdap/downloads","issues_url":"https://api.github.com/repos/caskdata/cdap/issues{/number}","pulls_url":"https://api.github.com/repos/caskdata/cdap/pulls{/number}","milestones_url":"https://api.github.com/repos/caskdata/cdap/milestones{/number}","notifications_url":"https://api.github.com/repos/caskdata/cdap/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/caskdata/cdap/labels{/name}","releases_url":"https://api.github.com/repos/caskdata/cdap/releases{/id}","deployments_url":"https://api.github.com/repos/caskdata/cdap/deployments","created_at":"2014-08-02T09:00:10Z","updated_at":"2018-07-27T16:25:49Z","pushed_at":"2018-07-27T16:58:36Z","git_url":"git://github.com/caskdata/cdap.git","ssh_url":"git@github.com:caskdata/cdap.git","clone_url":"https://github.com/caskdata/cdap.git","svn_url":"https://github.com/caskdata/cdap","homepage":"http://docs.cask.co/cdap","size":546911,"stargazers_count":244,"watchers_count":244,"language":"Java","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":true,"forks_count":122,"mirror_url":null,"archived":false,"open_issues_count":7,"license":{"key":"other","name":"Other","spdx_id":null,"url":null,"node_id":"MDc6TGljZW5zZTA="},"forks":122,"open_issues":7,"watchers":244,"default_branch":"release/5.0"}},"base":{"label":"caskdata:release/5.0","ref":"release/5.0","sha":"92c79d44f25ea36d728e6f10f6957b0f3c5e92b0","user":{"login":"caskdata","id":8123023,"node_id":"MDEyOk9yZ2FuaXphdGlvbjgxMjMwMjM=","avatar_url":"https://avatars2.githubusercontent.com/u/8123023?v=4","gravatar_id":"","url":"https://api.github.com/users/caskdata","html_url":"https://github.com/caskdata","followers_url":"https://api.github.com/users/caskdata/followers","following_url":"https://api.github.com/users/caskdata/following{/other_user}","gists_url":"https://api.github.com/users/caskdata/gists{/gist_id}","starred_url":"https://api.github.com/users/caskdata/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/caskdata/subscriptions","organizations_url":"https://api.github.com/users/caskdata/orgs","repos_url":"https://api.github.com/users/caskdata/repos","events_url":"https://api.github.com/users/caskdata/events{/privacy}","received_events_url":"https://api.github.com/users/caskdata/received_events","type":"Organization","site_admin":false},"repo":{"id":22542759,"node_id":"MDEwOlJlcG9zaXRvcnkyMjU0Mjc1OQ==","name":"cdap","full_name":"caskdata/cdap","owner":{"login":"caskdata","id":8123023,"node_id":"MDEyOk9yZ2FuaXphdGlvbjgxMjMwMjM=","avatar_url":"https://avatars2.githubusercontent.com/u/8123023?v=4","gravatar_id":"","url":"https://api.github.com/users/caskdata","html_url":"https://github.com/caskdata","followers_url":"https://api.github.com/users/caskdata/followers","following_url":"https://api.github.com/users/caskdata/following{/other_user}","gists_url":"https://api.github.com/users/caskdata/gists{/gist_id}","starred_url":"https://api.github.com/users/caskdata/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/caskdata/subscriptions","organizations_url":"https://api.github.com/users/caskdata/orgs","repos_url":"https://api.github.com/users/caskdata/repos","events_url":"https://api.github.com/users/caskdata/events{/privacy}","received_events_url":"https://api.github.com/users/caskdata/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/caskdata/cdap","description":"A Unified Integration Platform - Cask Data Application Platform (CDAP)","fork":false,"url":"https://api.github.com/repos/caskdata/cdap","forks_url":"https://api.github.com/repos/caskdata/cdap/forks","keys_url":"https://api.github.com/repos/caskdata/cdap/keys{/key_id}","collaborators_url":"https://api.github.com/repos/caskdata/cdap/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/caskdata/cdap/teams","hooks_url":"https://api.github.com/repos/caskdata/cdap/hooks","issue_events_url":"https://api.github.com/repos/caskdata/cdap/issues/events{/number}","events_url":"https://api.github.com/repos/caskdata/cdap/events","assignees_url":"https://api.github.com/repos/caskdata/cdap/assignees{/user}","branches_url":"https://api.github.com/repos/caskdata/cdap/branches{/branch}","tags_url":"https://api.github.com/repos/caskdata/cdap/tags","blobs_url":"https://api.github.com/repos/caskdata/cdap/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/caskdata/cdap/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/caskdata/cdap/git/refs{/sha}","trees_url":"https://api.github.com/repos/caskdata/cdap/git/trees{/sha}","statuses_url":"https://api.github.com/repos/caskdata/cdap/statuses/{sha}","languages_url":"https://api.github.com/repos/caskdata/cdap/languages","stargazers_url":"https://api.github.com/repos/caskdata/cdap/stargazers","contributors_url":"https://api.github.com/repos/caskdata/cdap/contributors","subscribers_url":"https://api.github.com/repos/caskdata/cdap/subscribers","subscription_url":"https://api.github.com/repos/caskdata/cdap/subscription","commits_url":"https://api.github.com/repos/caskdata/cdap/commits{/sha}","git_commits_url":"https://api.github.com/repos/caskdata/cdap/git/commits{/sha}","comments_url":"https://api.github.com/repos/caskdata/cdap/comments{/number}","issue_comment_url":"https://api.github.com/repos/caskdata/cdap/issues/comments{/number}","contents_url":"https://api.github.com/repos/caskdata/cdap/contents/{+path}","compare_url":"https://api.github.com/repos/caskdata/cdap/compare/{base}...{head}","merges_url":"https://api.github.com/repos/caskdata/cdap/merges","archive_url":"https://api.github.com/repos/caskdata/cdap/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/caskdata/cdap/downloads","issues_url":"https://api.github.com/repos/caskdata/cdap/issues{/number}","pulls_url":"https://api.github.com/repos/caskdata/cdap/pulls{/number}","milestones_url":"https://api.github.com/repos/caskdata/cdap/milestones{/number}","notifications_url":"https://api.github.com/repos/caskdata/cdap/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/caskdata/cdap/labels{/name}","releases_url":"https://api.github.com/repos/caskdata/cdap/releases{/id}","deployments_url":"https://api.github.com/repos/caskdata/cdap/deployments","created_at":"2014-08-02T09:00:10Z","updated_at":"2018-07-27T16:25:49Z","pushed_at":"2018-07-27T16:58:36Z","git_url":"git://github.com/caskdata/cdap.git","ssh_url":"git@github.com:caskdata/cdap.git","clone_url":"https://github.com/caskdata/cdap.git","svn_url":"https://github.com/caskdata/cdap","homepage":"http://docs.cask.co/cdap","size":546911,"stargazers_count":244,"watchers_count":244,"language":"Java","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":true,"forks_count":122,"mirror_url":null,"archived":false,"open_issues_count":7,"license":{"key":"other","name":"Other","spdx_id":null,"url":null,"node_id":"MDc6TGljZW5zZTA="},"forks":122,"open_issues":7,"watchers":244,"default_branch":"release/5.0"}},"_links":{"self":{"href":"https://api.github.com/repos/caskdata/cdap/pulls/10442"},"html":{"href":"https://github.com/caskdata/cdap/pull/10442"},"issue":{"href":"https://api.github.com/repos/caskdata/cdap/issues/10442"},"comments":{"href":"https://api.github.com/repos/caskdata/cdap/issues/10442/comments"},"review_comments":{"href":"https://api.github.com/repos/caskdata/cdap/pulls/10442/comments"},"review_comment":{"href":"https://api.github.com/repos/caskdata/cdap/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/caskdata/cdap/pulls/10442/commits"},"statuses":{"href":"https://api.github.com/repos/caskdata/cdap/statuses/d866454e054f6873a731bb785d2455a9ed2813f1"}},"author_association":"MEMBER"}}
{"actor":{"display_login":"rohitsinha54"}}