{"action":"created","comment":{"url":"https://api.github.com/repos/blackducksoftware/blackduck-alert/pulls/comments/255690896","pull_request_review_id":202334976,"id":255690896,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDI1NTY5MDg5Ng==","diff_hunk":"@@ -86,4 +98,39 @@ public FieldModel deleteConfig(final FieldModel fieldModel) {\n                    .findFirst()\n                    .map(providerDescriptor -> providerDescriptor.getActionApi(ConfigContextEnum.DISTRIBUTION).orElse(null));\n     }\n+\n+    @Override\n+    public Map<String, String> validateCreate(final FieldModel fieldModel) {\n+        final String jobNameError = validateJobNameUnique(fieldModel);\n+        if (StringUtils.isNotBlank(jobNameError)) {\n+            return Map.of(ChannelDistributionUIConfig.KEY_NAME, jobNameError);\n+        }\n+        return Map.of();\n+    }\n+\n+    private String validateJobNameUnique(final FieldModel fieldModel) {\n+        final String descriptorName = fieldModel.getDescriptorName();\n+        return fieldModel.getField(ChannelDistributionUIConfig.KEY_NAME).map(jobNameField -> {","path":"src/main/java/com/synopsys/integration/alert/common/descriptor/config/context/ChannelDistributionDescriptorActionApi.java","position":59,"original_position":59,"commit_id":"5658fb7511e9fb5e050dd96cbd5052e55d57802e","original_commit_id":"5658fb7511e9fb5e050dd96cbd5052e55d57802e","user":{"login":"gkillough","id":10451520,"node_id":"MDQ6VXNlcjEwNDUxNTIw","avatar_url":"https://avatars0.githubusercontent.com/u/10451520?v=4","gravatar_id":"","url":"https://api.github.com/users/gkillough","html_url":"https://github.com/gkillough","followers_url":"https://api.github.com/users/gkillough/followers","following_url":"https://api.github.com/users/gkillough/following{/other_user}","gists_url":"https://api.github.com/users/gkillough/gists{/gist_id}","starred_url":"https://api.github.com/users/gkillough/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gkillough/subscriptions","organizations_url":"https://api.github.com/users/gkillough/orgs","repos_url":"https://api.github.com/users/gkillough/repos","events_url":"https://api.github.com/users/gkillough/events{/privacy}","received_events_url":"https://api.github.com/users/gkillough/received_events","type":"User","site_admin":false},"body":"This is a pretty heavily loaded lambda. Can we break it up a little more for readability? Maybe an additional method or two.","created_at":"2019-02-11T21:01:29Z","updated_at":"2019-02-11T21:01:29Z","html_url":"https://github.com/blackducksoftware/blackduck-alert/pull/307#discussion_r255690896","pull_request_url":"https://api.github.com/repos/blackducksoftware/blackduck-alert/pulls/307","author_association":"COLLABORATOR","_links":{"self":{"href":"https://api.github.com/repos/blackducksoftware/blackduck-alert/pulls/comments/255690896"},"html":{"href":"https://github.com/blackducksoftware/blackduck-alert/pull/307#discussion_r255690896"},"pull_request":{"href":"https://api.github.com/repos/blackducksoftware/blackduck-alert/pulls/307"}}},"pull_request":{"url":"https://api.github.com/repos/blackducksoftware/blackduck-alert/pulls/307","id":252061774,"node_id":"MDExOlB1bGxSZXF1ZXN0MjUyMDYxNzc0","html_url":"https://github.com/blackducksoftware/blackduck-alert/pull/307","diff_url":"https://github.com/blackducksoftware/blackduck-alert/pull/307.diff","patch_url":"https://github.com/blackducksoftware/blackduck-alert/pull/307.patch","issue_url":"https://api.github.com/repos/blackducksoftware/blackduck-alert/issues/307","number":307,"state":"open","locked":false,"title":"Fixing validation","user":{"login":"jamesrichard91","id":12814963,"node_id":"MDQ6VXNlcjEyODE0OTYz","avatar_url":"https://avatars1.githubusercontent.com/u/12814963?v=4","gravatar_id":"","url":"https://api.github.com/users/jamesrichard91","html_url":"https://github.com/jamesrichard91","followers_url":"https://api.github.com/users/jamesrichard91/followers","following_url":"https://api.github.com/users/jamesrichard91/following{/other_user}","gists_url":"https://api.github.com/users/jamesrichard91/gists{/gist_id}","starred_url":"https://api.github.com/users/jamesrichard91/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jamesrichard91/subscriptions","organizations_url":"https://api.github.com/users/jamesrichard91/orgs","repos_url":"https://api.github.com/users/jamesrichard91/repos","events_url":"https://api.github.com/users/jamesrichard91/events{/privacy}","received_events_url":"https://api.github.com/users/jamesrichard91/received_events","type":"User","site_admin":false},"body":"","created_at":"2019-02-11T20:58:25Z","updated_at":"2019-02-11T21:01:29Z","closed_at":null,"merged_at":null,"merge_commit_sha":"b6f62a97323107408229087c3783d8c8f32a4e0f","assignee":null,"assignees":[],"requested_reviewers":[{"login":"bamandel","id":6484349,"node_id":"MDQ6VXNlcjY0ODQzNDk=","avatar_url":"https://avatars2.githubusercontent.com/u/6484349?v=4","gravatar_id":"","url":"https://api.github.com/users/bamandel","html_url":"https://github.com/bamandel","followers_url":"https://api.github.com/users/bamandel/followers","following_url":"https://api.github.com/users/bamandel/following{/other_user}","gists_url":"https://api.github.com/users/bamandel/gists{/gist_id}","starred_url":"https://api.github.com/users/bamandel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bamandel/subscriptions","organizations_url":"https://api.github.com/users/bamandel/orgs","repos_url":"https://api.github.com/users/bamandel/repos","events_url":"https://api.github.com/users/bamandel/events{/privacy}","received_events_url":"https://api.github.com/users/bamandel/received_events","type":"User","site_admin":false},{"login":"psantos1113","id":18164969,"node_id":"MDQ6VXNlcjE4MTY0OTY5","avatar_url":"https://avatars3.githubusercontent.com/u/18164969?v=4","gravatar_id":"","url":"https://api.github.com/users/psantos1113","html_url":"https://github.com/psantos1113","followers_url":"https://api.github.com/users/psantos1113/followers","following_url":"https://api.github.com/users/psantos1113/following{/other_user}","gists_url":"https://api.github.com/users/psantos1113/gists{/gist_id}","starred_url":"https://api.github.com/users/psantos1113/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/psantos1113/subscriptions","organizations_url":"https://api.github.com/users/psantos1113/orgs","repos_url":"https://api.github.com/users/psantos1113/repos","events_url":"https://api.github.com/users/psantos1113/events{/privacy}","received_events_url":"https://api.github.com/users/psantos1113/received_events","type":"User","site_admin":false}],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/blackducksoftware/blackduck-alert/pulls/307/commits","review_comments_url":"https://api.github.com/repos/blackducksoftware/blackduck-alert/pulls/307/comments","review_comment_url":"https://api.github.com/repos/blackducksoftware/blackduck-alert/pulls/comments{/number}","comments_url":"https://api.github.com/repos/blackducksoftware/blackduck-alert/issues/307/comments","statuses_url":"https://api.github.com/repos/blackducksoftware/blackduck-alert/statuses/5658fb7511e9fb5e050dd96cbd5052e55d57802e","head":{"label":"blackducksoftware:fixing-validation","ref":"fixing-validation","sha":"5658fb7511e9fb5e050dd96cbd5052e55d57802e","user":{"login":"blackducksoftware","id":431461,"node_id":"MDEyOk9yZ2FuaXphdGlvbjQzMTQ2MQ==","avatar_url":"https://avatars0.githubusercontent.com/u/431461?v=4","gravatar_id":"","url":"https://api.github.com/users/blackducksoftware","html_url":"https://github.com/blackducksoftware","followers_url":"https://api.github.com/users/blackducksoftware/followers","following_url":"https://api.github.com/users/blackducksoftware/following{/other_user}","gists_url":"https://api.github.com/users/blackducksoftware/gists{/gist_id}","starred_url":"https://api.github.com/users/blackducksoftware/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/blackducksoftware/subscriptions","organizations_url":"https://api.github.com/users/blackducksoftware/orgs","repos_url":"https://api.github.com/users/blackducksoftware/repos","events_url":"https://api.github.com/users/blackducksoftware/events{/privacy}","received_events_url":"https://api.github.com/users/blackducksoftware/received_events","type":"Organization","site_admin":false},"repo":{"id":105032211,"node_id":"MDEwOlJlcG9zaXRvcnkxMDUwMzIyMTE=","name":"blackduck-alert","full_name":"blackducksoftware/blackduck-alert","private":false,"owner":{"login":"blackducksoftware","id":431461,"node_id":"MDEyOk9yZ2FuaXphdGlvbjQzMTQ2MQ==","avatar_url":"https://avatars0.githubusercontent.com/u/431461?v=4","gravatar_id":"","url":"https://api.github.com/users/blackducksoftware","html_url":"https://github.com/blackducksoftware","followers_url":"https://api.github.com/users/blackducksoftware/followers","following_url":"https://api.github.com/users/blackducksoftware/following{/other_user}","gists_url":"https://api.github.com/users/blackducksoftware/gists{/gist_id}","starred_url":"https://api.github.com/users/blackducksoftware/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/blackducksoftware/subscriptions","organizations_url":"https://api.github.com/users/blackducksoftware/orgs","repos_url":"https://api.github.com/users/blackducksoftware/repos","events_url":"https://api.github.com/users/blackducksoftware/events{/privacy}","received_events_url":"https://api.github.com/users/blackducksoftware/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/blackducksoftware/blackduck-alert","description":"Processes notifications from providers and sends them to supported distribution channels","fork":false,"url":"https://api.github.com/repos/blackducksoftware/blackduck-alert","forks_url":"https://api.github.com/repos/blackducksoftware/blackduck-alert/forks","keys_url":"https://api.github.com/repos/blackducksoftware/blackduck-alert/keys{/key_id}","collaborators_url":"https://api.github.com/repos/blackducksoftware/blackduck-alert/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/blackducksoftware/blackduck-alert/teams","hooks_url":"https://api.github.com/repos/blackducksoftware/blackduck-alert/hooks","issue_events_url":"https://api.github.com/repos/blackducksoftware/blackduck-alert/issues/events{/number}","events_url":"https://api.github.com/repos/blackducksoftware/blackduck-alert/events","assignees_url":"https://api.github.com/repos/blackducksoftware/blackduck-alert/assignees{/user}","branches_url":"https://api.github.com/repos/blackducksoftware/blackduck-alert/branches{/branch}","tags_url":"https://api.github.com/repos/blackducksoftware/blackduck-alert/tags","blobs_url":"https://api.github.com/repos/blackducksoftware/blackduck-alert/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/blackducksoftware/blackduck-alert/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/blackducksoftware/blackduck-alert/git/refs{/sha}","trees_url":"https://api.github.com/repos/blackducksoftware/blackduck-alert/git/trees{/sha}","statuses_url":"https://api.github.com/repos/blackducksoftware/blackduck-alert/statuses/{sha}","languages_url":"https://api.github.com/repos/blackducksoftware/blackduck-alert/languages","stargazers_url":"https://api.github.com/repos/blackducksoftware/blackduck-alert/stargazers","contributors_url":"https://api.github.com/repos/blackducksoftware/blackduck-alert/contributors","subscribers_url":"https://api.github.com/repos/blackducksoftware/blackduck-alert/subscribers","subscription_url":"https://api.github.com/repos/blackducksoftware/blackduck-alert/subscription","commits_url":"https://api.github.com/repos/blackducksoftware/blackduck-alert/commits{/sha}","git_commits_url":"https://api.github.com/repos/blackducksoftware/blackduck-alert/git/commits{/sha}","comments_url":"https://api.github.com/repos/blackducksoftware/blackduck-alert/comments{/number}","issue_comment_url":"https://api.github.com/repos/blackducksoftware/blackduck-alert/issues/comments{/number}","contents_url":"https://api.github.com/repos/blackducksoftware/blackduck-alert/contents/{+path}","compare_url":"https://api.github.com/repos/blackducksoftware/blackduck-alert/compare/{base}...{head}","merges_url":"https://api.github.com/repos/blackducksoftware/blackduck-alert/merges","archive_url":"https://api.github.com/repos/blackducksoftware/blackduck-alert/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/blackducksoftware/blackduck-alert/downloads","issues_url":"https://api.github.com/repos/blackducksoftware/blackduck-alert/issues{/number}","pulls_url":"https://api.github.com/repos/blackducksoftware/blackduck-alert/pulls{/number}","milestones_url":"https://api.github.com/repos/blackducksoftware/blackduck-alert/milestones{/number}","notifications_url":"https://api.github.com/repos/blackducksoftware/blackduck-alert/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/blackducksoftware/blackduck-alert/labels{/name}","releases_url":"https://api.github.com/repos/blackducksoftware/blackduck-alert/releases{/id}","deployments_url":"https://api.github.com/repos/blackducksoftware/blackduck-alert/deployments","created_at":"2017-09-27T14:58:15Z","updated_at":"2019-02-11T20:28:30Z","pushed_at":"2019-02-11T20:58:25Z","git_url":"git://github.com/blackducksoftware/blackduck-alert.git","ssh_url":"git@github.com:blackducksoftware/blackduck-alert.git","clone_url":"https://github.com/blackducksoftware/blackduck-alert.git","svn_url":"https://github.com/blackducksoftware/blackduck-alert","homepage":"","size":10668,"stargazers_count":4,"watchers_count":4,"language":"Java","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":10,"mirror_url":null,"archived":false,"open_issues_count":1,"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":10,"open_issues":1,"watchers":4,"default_branch":"master"}},"base":{"label":"blackducksoftware:master","ref":"master","sha":"076532f5ac3038191ff301b471ba79e20ed3864e","user":{"login":"blackducksoftware","id":431461,"node_id":"MDEyOk9yZ2FuaXphdGlvbjQzMTQ2MQ==","avatar_url":"https://avatars0.githubusercontent.com/u/431461?v=4","gravatar_id":"","url":"https://api.github.com/users/blackducksoftware","html_url":"https://github.com/blackducksoftware","followers_url":"https://api.github.com/users/blackducksoftware/followers","following_url":"https://api.github.com/users/blackducksoftware/following{/other_user}","gists_url":"https://api.github.com/users/blackducksoftware/gists{/gist_id}","starred_url":"https://api.github.com/users/blackducksoftware/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/blackducksoftware/subscriptions","organizations_url":"https://api.github.com/users/blackducksoftware/orgs","repos_url":"https://api.github.com/users/blackducksoftware/repos","events_url":"https://api.github.com/users/blackducksoftware/events{/privacy}","received_events_url":"https://api.github.com/users/blackducksoftware/received_events","type":"Organization","site_admin":false},"repo":{"id":105032211,"node_id":"MDEwOlJlcG9zaXRvcnkxMDUwMzIyMTE=","name":"blackduck-alert","full_name":"blackducksoftware/blackduck-alert","private":false,"owner":{"login":"blackducksoftware","id":431461,"node_id":"MDEyOk9yZ2FuaXphdGlvbjQzMTQ2MQ==","avatar_url":"https://avatars0.githubusercontent.com/u/431461?v=4","gravatar_id":"","url":"https://api.github.com/users/blackducksoftware","html_url":"https://github.com/blackducksoftware","followers_url":"https://api.github.com/users/blackducksoftware/followers","following_url":"https://api.github.com/users/blackducksoftware/following{/other_user}","gists_url":"https://api.github.com/users/blackducksoftware/gists{/gist_id}","starred_url":"https://api.github.com/users/blackducksoftware/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/blackducksoftware/subscriptions","organizations_url":"https://api.github.com/users/blackducksoftware/orgs","repos_url":"https://api.github.com/users/blackducksoftware/repos","events_url":"https://api.github.com/users/blackducksoftware/events{/privacy}","received_events_url":"https://api.github.com/users/blackducksoftware/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/blackducksoftware/blackduck-alert","description":"Processes notifications from providers and sends them to supported distribution channels","fork":false,"url":"https://api.github.com/repos/blackducksoftware/blackduck-alert","forks_url":"https://api.github.com/repos/blackducksoftware/blackduck-alert/forks","keys_url":"https://api.github.com/repos/blackducksoftware/blackduck-alert/keys{/key_id}","collaborators_url":"https://api.github.com/repos/blackducksoftware/blackduck-alert/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/blackducksoftware/blackduck-alert/teams","hooks_url":"https://api.github.com/repos/blackducksoftware/blackduck-alert/hooks","issue_events_url":"https://api.github.com/repos/blackducksoftware/blackduck-alert/issues/events{/number}","events_url":"https://api.github.com/repos/blackducksoftware/blackduck-alert/events","assignees_url":"https://api.github.com/repos/blackducksoftware/blackduck-alert/assignees{/user}","branches_url":"https://api.github.com/repos/blackducksoftware/blackduck-alert/branches{/branch}","tags_url":"https://api.github.com/repos/blackducksoftware/blackduck-alert/tags","blobs_url":"https://api.github.com/repos/blackducksoftware/blackduck-alert/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/blackducksoftware/blackduck-alert/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/blackducksoftware/blackduck-alert/git/refs{/sha}","trees_url":"https://api.github.com/repos/blackducksoftware/blackduck-alert/git/trees{/sha}","statuses_url":"https://api.github.com/repos/blackducksoftware/blackduck-alert/statuses/{sha}","languages_url":"https://api.github.com/repos/blackducksoftware/blackduck-alert/languages","stargazers_url":"https://api.github.com/repos/blackducksoftware/blackduck-alert/stargazers","contributors_url":"https://api.github.com/repos/blackducksoftware/blackduck-alert/contributors","subscribers_url":"https://api.github.com/repos/blackducksoftware/blackduck-alert/subscribers","subscription_url":"https://api.github.com/repos/blackducksoftware/blackduck-alert/subscription","commits_url":"https://api.github.com/repos/blackducksoftware/blackduck-alert/commits{/sha}","git_commits_url":"https://api.github.com/repos/blackducksoftware/blackduck-alert/git/commits{/sha}","comments_url":"https://api.github.com/repos/blackducksoftware/blackduck-alert/comments{/number}","issue_comment_url":"https://api.github.com/repos/blackducksoftware/blackduck-alert/issues/comments{/number}","contents_url":"https://api.github.com/repos/blackducksoftware/blackduck-alert/contents/{+path}","compare_url":"https://api.github.com/repos/blackducksoftware/blackduck-alert/compare/{base}...{head}","merges_url":"https://api.github.com/repos/blackducksoftware/blackduck-alert/merges","archive_url":"https://api.github.com/repos/blackducksoftware/blackduck-alert/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/blackducksoftware/blackduck-alert/downloads","issues_url":"https://api.github.com/repos/blackducksoftware/blackduck-alert/issues{/number}","pulls_url":"https://api.github.com/repos/blackducksoftware/blackduck-alert/pulls{/number}","milestones_url":"https://api.github.com/repos/blackducksoftware/blackduck-alert/milestones{/number}","notifications_url":"https://api.github.com/repos/blackducksoftware/blackduck-alert/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/blackducksoftware/blackduck-alert/labels{/name}","releases_url":"https://api.github.com/repos/blackducksoftware/blackduck-alert/releases{/id}","deployments_url":"https://api.github.com/repos/blackducksoftware/blackduck-alert/deployments","created_at":"2017-09-27T14:58:15Z","updated_at":"2019-02-11T20:28:30Z","pushed_at":"2019-02-11T20:58:25Z","git_url":"git://github.com/blackducksoftware/blackduck-alert.git","ssh_url":"git@github.com:blackducksoftware/blackduck-alert.git","clone_url":"https://github.com/blackducksoftware/blackduck-alert.git","svn_url":"https://github.com/blackducksoftware/blackduck-alert","homepage":"","size":10668,"stargazers_count":4,"watchers_count":4,"language":"Java","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":10,"mirror_url":null,"archived":false,"open_issues_count":1,"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":10,"open_issues":1,"watchers":4,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/blackducksoftware/blackduck-alert/pulls/307"},"html":{"href":"https://github.com/blackducksoftware/blackduck-alert/pull/307"},"issue":{"href":"https://api.github.com/repos/blackducksoftware/blackduck-alert/issues/307"},"comments":{"href":"https://api.github.com/repos/blackducksoftware/blackduck-alert/issues/307/comments"},"review_comments":{"href":"https://api.github.com/repos/blackducksoftware/blackduck-alert/pulls/307/comments"},"review_comment":{"href":"https://api.github.com/repos/blackducksoftware/blackduck-alert/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/blackducksoftware/blackduck-alert/pulls/307/commits"},"statuses":{"href":"https://api.github.com/repos/blackducksoftware/blackduck-alert/statuses/5658fb7511e9fb5e050dd96cbd5052e55d57802e"}},"author_association":"COLLABORATOR"}}
{"actor":{"display_login":"gkillough"}}