{"action":"opened","number":2378,"pull_request":{"url":"https://api.github.com/repos/spinnaker/orca/pulls/2378","id":208698693,"node_id":"MDExOlB1bGxSZXF1ZXN0MjA4Njk4Njkz","html_url":"https://github.com/spinnaker/orca/pull/2378","diff_url":"https://github.com/spinnaker/orca/pull/2378.diff","patch_url":"https://github.com/spinnaker/orca/pull/2378.patch","issue_url":"https://api.github.com/repos/spinnaker/orca/issues/2378","number":2378,"state":"open","locked":false,"title":"feat(agents): store class names on MDC for sql query annotation","user":{"login":"asher","id":59994,"node_id":"MDQ6VXNlcjU5OTk0","avatar_url":"https://avatars1.githubusercontent.com/u/59994?v=4","gravatar_id":"","url":"https://api.github.com/users/asher","html_url":"https://github.com/asher","followers_url":"https://api.github.com/users/asher/followers","following_url":"https://api.github.com/users/asher/following{/other_user}","gists_url":"https://api.github.com/users/asher/gists{/gist_id}","starred_url":"https://api.github.com/users/asher/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/asher/subscriptions","organizations_url":"https://api.github.com/users/asher/orgs","repos_url":"https://api.github.com/users/asher/repos","events_url":"https://api.github.com/users/asher/events{/privacy}","received_events_url":"https://api.github.com/users/asher/received_events","type":"User","site_admin":false},"body":"This change supplies scheduled agent class names to a jooq `renderEnd` execution listener so that resulting `SqlExecutionRepository` statements are annotated with the agent class, such as:\r\n\r\n```select e.id, e.body, s.execution_id, s.body, e.status from (select `id`, `body`, `status` from orchestrations where (status IN ('BUFFERED')) order by id desc) as `e` left outer join (select `execution_id`, `body` from orchestration_stages) as `s` on (s.execution_id = e.id) -- agentClass: DefaultExecutionPromoter```","created_at":"2018-08-15T22:27:32Z","updated_at":"2018-08-15T22:27:32Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/spinnaker/orca/pulls/2378/commits","review_comments_url":"https://api.github.com/repos/spinnaker/orca/pulls/2378/comments","review_comment_url":"https://api.github.com/repos/spinnaker/orca/pulls/comments{/number}","comments_url":"https://api.github.com/repos/spinnaker/orca/issues/2378/comments","statuses_url":"https://api.github.com/repos/spinnaker/orca/statuses/de36f86029f7ebd45e83e37dae04b4b152ac3206","head":{"label":"asher:agent-annotation","ref":"agent-annotation","sha":"de36f86029f7ebd45e83e37dae04b4b152ac3206","user":{"login":"asher","id":59994,"node_id":"MDQ6VXNlcjU5OTk0","avatar_url":"https://avatars1.githubusercontent.com/u/59994?v=4","gravatar_id":"","url":"https://api.github.com/users/asher","html_url":"https://github.com/asher","followers_url":"https://api.github.com/users/asher/followers","following_url":"https://api.github.com/users/asher/following{/other_user}","gists_url":"https://api.github.com/users/asher/gists{/gist_id}","starred_url":"https://api.github.com/users/asher/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/asher/subscriptions","organizations_url":"https://api.github.com/users/asher/orgs","repos_url":"https://api.github.com/users/asher/repos","events_url":"https://api.github.com/users/asher/events{/privacy}","received_events_url":"https://api.github.com/users/asher/received_events","type":"User","site_admin":false},"repo":{"id":101103587,"node_id":"MDEwOlJlcG9zaXRvcnkxMDExMDM1ODc=","name":"orca","full_name":"asher/orca","owner":{"login":"asher","id":59994,"node_id":"MDQ6VXNlcjU5OTk0","avatar_url":"https://avatars1.githubusercontent.com/u/59994?v=4","gravatar_id":"","url":"https://api.github.com/users/asher","html_url":"https://github.com/asher","followers_url":"https://api.github.com/users/asher/followers","following_url":"https://api.github.com/users/asher/following{/other_user}","gists_url":"https://api.github.com/users/asher/gists{/gist_id}","starred_url":"https://api.github.com/users/asher/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/asher/subscriptions","organizations_url":"https://api.github.com/users/asher/orgs","repos_url":"https://api.github.com/users/asher/repos","events_url":"https://api.github.com/users/asher/events{/privacy}","received_events_url":"https://api.github.com/users/asher/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/asher/orca","description":"orchestration engine","fork":true,"url":"https://api.github.com/repos/asher/orca","forks_url":"https://api.github.com/repos/asher/orca/forks","keys_url":"https://api.github.com/repos/asher/orca/keys{/key_id}","collaborators_url":"https://api.github.com/repos/asher/orca/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/asher/orca/teams","hooks_url":"https://api.github.com/repos/asher/orca/hooks","issue_events_url":"https://api.github.com/repos/asher/orca/issues/events{/number}","events_url":"https://api.github.com/repos/asher/orca/events","assignees_url":"https://api.github.com/repos/asher/orca/assignees{/user}","branches_url":"https://api.github.com/repos/asher/orca/branches{/branch}","tags_url":"https://api.github.com/repos/asher/orca/tags","blobs_url":"https://api.github.com/repos/asher/orca/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/asher/orca/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/asher/orca/git/refs{/sha}","trees_url":"https://api.github.com/repos/asher/orca/git/trees{/sha}","statuses_url":"https://api.github.com/repos/asher/orca/statuses/{sha}","languages_url":"https://api.github.com/repos/asher/orca/languages","stargazers_url":"https://api.github.com/repos/asher/orca/stargazers","contributors_url":"https://api.github.com/repos/asher/orca/contributors","subscribers_url":"https://api.github.com/repos/asher/orca/subscribers","subscription_url":"https://api.github.com/repos/asher/orca/subscription","commits_url":"https://api.github.com/repos/asher/orca/commits{/sha}","git_commits_url":"https://api.github.com/repos/asher/orca/git/commits{/sha}","comments_url":"https://api.github.com/repos/asher/orca/comments{/number}","issue_comment_url":"https://api.github.com/repos/asher/orca/issues/comments{/number}","contents_url":"https://api.github.com/repos/asher/orca/contents/{+path}","compare_url":"https://api.github.com/repos/asher/orca/compare/{base}...{head}","merges_url":"https://api.github.com/repos/asher/orca/merges","archive_url":"https://api.github.com/repos/asher/orca/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/asher/orca/downloads","issues_url":"https://api.github.com/repos/asher/orca/issues{/number}","pulls_url":"https://api.github.com/repos/asher/orca/pulls{/number}","milestones_url":"https://api.github.com/repos/asher/orca/milestones{/number}","notifications_url":"https://api.github.com/repos/asher/orca/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/asher/orca/labels{/name}","releases_url":"https://api.github.com/repos/asher/orca/releases{/id}","deployments_url":"https://api.github.com/repos/asher/orca/deployments","created_at":"2017-08-22T20:16:35Z","updated_at":"2017-08-22T20:16:45Z","pushed_at":"2018-08-15T22:18:29Z","git_url":"git://github.com/asher/orca.git","ssh_url":"git@github.com:asher/orca.git","clone_url":"https://github.com/asher/orca.git","svn_url":"https://github.com/asher/orca","homepage":"","size":12632,"stargazers_count":0,"watchers_count":0,"language":"Groovy","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"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":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"spinnaker:master","ref":"master","sha":"98ef94fb7573e797e0777885935c87def67bd477","user":{"login":"spinnaker","id":7634182,"node_id":"MDEyOk9yZ2FuaXphdGlvbjc2MzQxODI=","avatar_url":"https://avatars1.githubusercontent.com/u/7634182?v=4","gravatar_id":"","url":"https://api.github.com/users/spinnaker","html_url":"https://github.com/spinnaker","followers_url":"https://api.github.com/users/spinnaker/followers","following_url":"https://api.github.com/users/spinnaker/following{/other_user}","gists_url":"https://api.github.com/users/spinnaker/gists{/gist_id}","starred_url":"https://api.github.com/users/spinnaker/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/spinnaker/subscriptions","organizations_url":"https://api.github.com/users/spinnaker/orgs","repos_url":"https://api.github.com/users/spinnaker/repos","events_url":"https://api.github.com/users/spinnaker/events{/privacy}","received_events_url":"https://api.github.com/users/spinnaker/received_events","type":"Organization","site_admin":false},"repo":{"id":19834314,"node_id":"MDEwOlJlcG9zaXRvcnkxOTgzNDMxNA==","name":"orca","full_name":"spinnaker/orca","owner":{"login":"spinnaker","id":7634182,"node_id":"MDEyOk9yZ2FuaXphdGlvbjc2MzQxODI=","avatar_url":"https://avatars1.githubusercontent.com/u/7634182?v=4","gravatar_id":"","url":"https://api.github.com/users/spinnaker","html_url":"https://github.com/spinnaker","followers_url":"https://api.github.com/users/spinnaker/followers","following_url":"https://api.github.com/users/spinnaker/following{/other_user}","gists_url":"https://api.github.com/users/spinnaker/gists{/gist_id}","starred_url":"https://api.github.com/users/spinnaker/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/spinnaker/subscriptions","organizations_url":"https://api.github.com/users/spinnaker/orgs","repos_url":"https://api.github.com/users/spinnaker/repos","events_url":"https://api.github.com/users/spinnaker/events{/privacy}","received_events_url":"https://api.github.com/users/spinnaker/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/spinnaker/orca","description":"orchestration engine","fork":false,"url":"https://api.github.com/repos/spinnaker/orca","forks_url":"https://api.github.com/repos/spinnaker/orca/forks","keys_url":"https://api.github.com/repos/spinnaker/orca/keys{/key_id}","collaborators_url":"https://api.github.com/repos/spinnaker/orca/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/spinnaker/orca/teams","hooks_url":"https://api.github.com/repos/spinnaker/orca/hooks","issue_events_url":"https://api.github.com/repos/spinnaker/orca/issues/events{/number}","events_url":"https://api.github.com/repos/spinnaker/orca/events","assignees_url":"https://api.github.com/repos/spinnaker/orca/assignees{/user}","branches_url":"https://api.github.com/repos/spinnaker/orca/branches{/branch}","tags_url":"https://api.github.com/repos/spinnaker/orca/tags","blobs_url":"https://api.github.com/repos/spinnaker/orca/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/spinnaker/orca/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/spinnaker/orca/git/refs{/sha}","trees_url":"https://api.github.com/repos/spinnaker/orca/git/trees{/sha}","statuses_url":"https://api.github.com/repos/spinnaker/orca/statuses/{sha}","languages_url":"https://api.github.com/repos/spinnaker/orca/languages","stargazers_url":"https://api.github.com/repos/spinnaker/orca/stargazers","contributors_url":"https://api.github.com/repos/spinnaker/orca/contributors","subscribers_url":"https://api.github.com/repos/spinnaker/orca/subscribers","subscription_url":"https://api.github.com/repos/spinnaker/orca/subscription","commits_url":"https://api.github.com/repos/spinnaker/orca/commits{/sha}","git_commits_url":"https://api.github.com/repos/spinnaker/orca/git/commits{/sha}","comments_url":"https://api.github.com/repos/spinnaker/orca/comments{/number}","issue_comment_url":"https://api.github.com/repos/spinnaker/orca/issues/comments{/number}","contents_url":"https://api.github.com/repos/spinnaker/orca/contents/{+path}","compare_url":"https://api.github.com/repos/spinnaker/orca/compare/{base}...{head}","merges_url":"https://api.github.com/repos/spinnaker/orca/merges","archive_url":"https://api.github.com/repos/spinnaker/orca/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/spinnaker/orca/downloads","issues_url":"https://api.github.com/repos/spinnaker/orca/issues{/number}","pulls_url":"https://api.github.com/repos/spinnaker/orca/pulls{/number}","milestones_url":"https://api.github.com/repos/spinnaker/orca/milestones{/number}","notifications_url":"https://api.github.com/repos/spinnaker/orca/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/spinnaker/orca/labels{/name}","releases_url":"https://api.github.com/repos/spinnaker/orca/releases{/id}","deployments_url":"https://api.github.com/repos/spinnaker/orca/deployments","created_at":"2014-05-15T20:33:00Z","updated_at":"2018-08-15T20:53:18Z","pushed_at":"2018-08-15T21:40:42Z","git_url":"git://github.com/spinnaker/orca.git","ssh_url":"git@github.com:spinnaker/orca.git","clone_url":"https://github.com/spinnaker/orca.git","svn_url":"https://github.com/spinnaker/orca","homepage":"","size":12811,"stargazers_count":99,"watchers_count":99,"language":"Groovy","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":297,"mirror_url":null,"archived":false,"open_issues_count":54,"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":297,"open_issues":54,"watchers":99,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/spinnaker/orca/pulls/2378"},"html":{"href":"https://github.com/spinnaker/orca/pull/2378"},"issue":{"href":"https://api.github.com/repos/spinnaker/orca/issues/2378"},"comments":{"href":"https://api.github.com/repos/spinnaker/orca/issues/2378/comments"},"review_comments":{"href":"https://api.github.com/repos/spinnaker/orca/pulls/2378/comments"},"review_comment":{"href":"https://api.github.com/repos/spinnaker/orca/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/spinnaker/orca/pulls/2378/commits"},"statuses":{"href":"https://api.github.com/repos/spinnaker/orca/statuses/de36f86029f7ebd45e83e37dae04b4b152ac3206"}},"author_association":"CONTRIBUTOR","merged":false,"mergeable":null,"rebaseable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"maintainer_can_modify":true,"commits":1,"additions":84,"deletions":55,"changed_files":4}}
{"actor":{"display_login":"asher"}}