{"action":"created","comment":{"url":"https://api.github.com/repos/codice/ddf/pulls/comments/262756868","pull_request_review_id":210995248,"id":262756868,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDI2Mjc1Njg2OA==","diff_hunk":"@@ -0,0 +1,74 @@\n+/**\n+ * Copyright (c) Codice Foundation\n+ *\n+ * This is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation, either\n+ * version 3 of the License, or any later version.\n+ *\n+ * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.\n+ * See the GNU Lesser General Public License for more details. A copy of the GNU Lesser General Public License is distributed along with this program and can be found at\n+ * <http://www.gnu.org/licenses/lgpl.html>.\n+ *\n+ **/\n+\n+import { hot } from 'react-hot-loader'\n+import * as React from 'react'\n+import UserBlackListPresentation from '../../presentation/user-blacklist'\n+import withListenTo, { WithBackboneProps } from '../backbone-container'\n+\n+const user = require('../../../component/singletons/user-instance.js')\n+type State = {\n+  blacklist: Backbone.Collection<Backbone.Model>\n+  clearing: boolean\n+}\n+\n+class UserBlacklistContainer extends React.Component<WithBackboneProps, State> {\n+  constructor(props: WithBackboneProps) {\n+    super(props)\n+    this.state = {\n+      blacklist: this.getBlacklist(),\n+      clearing: false,\n+    }\n+  }\n+\n+  componentDidMount = () => {\n+    this.props.listenTo(\n+      this.getBlacklist(),\n+      'add remove reset update',\n+      this.updateBlacklist\n+    )\n+  }\n+\n+  updateBlacklist = () => {\n+    this.setState({\n+      blacklist: this.getBlacklist(),\n+    })\n+  }\n+\n+  getBlacklist = () => {\n+    return user\n+      .get('user')\n+      .get('preferences')\n+      .get('resultBlacklist')\n+  }\n+\n+  clearBlacklist = () => {\n+    this.setState({ clearing: true })\n+    setTimeout(() => {\n+      this.getBlacklist().reset()\n+      user.savePreferences()\n+      this.setState({ clearing: false })\n+    }, 250)\n+  }\n+\n+  render() {\n+    return (\n+      <UserBlackListPresentation\n+        clearBlacklist={this.clearBlacklist}","path":"ui/packages/catalog-ui-search/src/main/webapp/react-component/container/user-blacklist/user-blacklist.tsx","position":66,"original_position":66,"commit_id":"593275cd89dd42648887b35e8976a28eedfc154e","original_commit_id":"593275cd89dd42648887b35e8976a28eedfc154e","user":{"login":"adimka","id":10200041,"node_id":"MDQ6VXNlcjEwMjAwMDQx","avatar_url":"https://avatars0.githubusercontent.com/u/10200041?v=4","gravatar_id":"","url":"https://api.github.com/users/adimka","html_url":"https://github.com/adimka","followers_url":"https://api.github.com/users/adimka/followers","following_url":"https://api.github.com/users/adimka/following{/other_user}","gists_url":"https://api.github.com/users/adimka/gists{/gist_id}","starred_url":"https://api.github.com/users/adimka/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/adimka/subscriptions","organizations_url":"https://api.github.com/users/adimka/orgs","repos_url":"https://api.github.com/users/adimka/repos","events_url":"https://api.github.com/users/adimka/events{/privacy}","received_events_url":"https://api.github.com/users/adimka/received_events","type":"User","site_admin":false},"body":"Same style choice comment about functions vs. properties","created_at":"2019-03-06T01:12:03Z","updated_at":"2019-03-06T01:13:03Z","html_url":"https://github.com/codice/ddf/pull/4450#discussion_r262756868","pull_request_url":"https://api.github.com/repos/codice/ddf/pulls/4450","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/codice/ddf/pulls/comments/262756868"},"html":{"href":"https://github.com/codice/ddf/pull/4450#discussion_r262756868"},"pull_request":{"href":"https://api.github.com/repos/codice/ddf/pulls/4450"}}},"pull_request":{"url":"https://api.github.com/repos/codice/ddf/pulls/4450","id":256322497,"node_id":"MDExOlB1bGxSZXF1ZXN0MjU2MzIyNDk3","html_url":"https://github.com/codice/ddf/pull/4450","diff_url":"https://github.com/codice/ddf/pull/4450.diff","patch_url":"https://github.com/codice/ddf/pull/4450.patch","issue_url":"https://api.github.com/repos/codice/ddf/issues/4450","number":4450,"state":"open","locked":false,"title":"DDF-04447 Migrate the user-blacklist component to React","user":{"login":"willwill96","id":10997562,"node_id":"MDQ6VXNlcjEwOTk3NTYy","avatar_url":"https://avatars1.githubusercontent.com/u/10997562?v=4","gravatar_id":"","url":"https://api.github.com/users/willwill96","html_url":"https://github.com/willwill96","followers_url":"https://api.github.com/users/willwill96/followers","following_url":"https://api.github.com/users/willwill96/following{/other_user}","gists_url":"https://api.github.com/users/willwill96/gists{/gist_id}","starred_url":"https://api.github.com/users/willwill96/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/willwill96/subscriptions","organizations_url":"https://api.github.com/users/willwill96/orgs","repos_url":"https://api.github.com/users/willwill96/repos","events_url":"https://api.github.com/users/willwill96/events{/privacy}","received_events_url":"https://api.github.com/users/willwill96/received_events","type":"User","site_admin":false},"body":"<!--\r\n** For commits created to resolve GH Issues during the pilot and beyond, please prefix the\r\nissue number with a 0 until we roll over at issue #10000, ie: `DDF-0####`. This kludgy solution\r\nwill avoid overlap with issues created in Jira.**\r\n\r\nSee https://github.com/codice/ddf/wiki/%5BGH-ISSUES-PILOT%5D-Pull-Request-Guidelines\r\nfor more info.\r\n-->\r\n\r\n<!--\r\nUncomment this block and include PR # of change against 2.13.x where appropriate.\r\nWhen doing so, it is reasonable to delete much of the rest of the PR description, leaving only:\r\n- This uncommented block with link to 2.13.x PR\r\n- Reviewers tagged\r\n- Teams tagged\r\n- Committers tagged\r\n- The link to the \"Notes on Review Process\"\r\n\r\n##### ABBREVIATED REVIEW BETWEEN 2.13.X AND MASTER IS IN EFFECT\r\nLink to 2.13.x PR: #XXXX\r\n____\r\n-->\r\n\r\n#### What does this PR do?\r\nMigrates the user-blacklist component to React\r\n#### Who is reviewing it? \r\n@gjvera \r\n@mojogitoverhere \r\n#### Select relevant component teams: \r\n<!--\r\n@codice/build \r\n@codice/continuous-integration \r\n@codice/core-apis \r\n@codice/data \r\n@codice/docs \r\n@codice/io \r\n@codice/ogc \r\n@codice/security \r\n@codice/solr \r\n@codice/test \r\n@codice/ui \r\n@codice/website \r\n-->\r\n#### Ask 2 committers to review/merge the PR and tag them here.\r\n\r\n@bdeining\r\n@djblue \r\n\r\n#### How should this be tested?\r\n1. Ingest some data\r\n2. Run a search\r\n3. Hide some of the results by using the 3 dot menu on the individual results\r\n4. View the blacklist by clicking the cog in the top right corner of intrigue and then clicking `Hidden`\r\n5. Ensure no regressions are present\r\n#### Any background context you want to provide?\r\nThe CSS was somehow hiding the unhide button on the individual records on master, so I had to guess as to what that should look like.\r\n\r\n#### What are the relevant tickets?\r\nFor Jira:\r\n[](https://codice.atlassian.net/browse/)\r\n\r\nFor GH Issues:\r\nFixes: #4447 \r\n\r\n#### Screenshots\r\n<!--(if appropriate)-->\r\n![image](https://user-images.githubusercontent.com/10997562/53422015-e834cf80-399b-11e9-9df3-6f0f6b42c067.png)\r\n\r\n#### Checklist:\r\n- [ ] Documentation Updated\r\n- [ ] Update / Add Threat Dragon models\r\n- [ ] Update / Add Unit Tests\r\n- [ ] Update / Add Integration Tests\r\n\r\n#### Notes on Review Process\r\nPlease see [Notes on Review Process](https://codice.atlassian.net/wiki/spaces/DDF/pages/71946981/Pull+Request+Guidelines) for further guidance on requirements for merging and abbreviated reviews. \r\n\r\n#### Review Comment Legend:\r\n- ✏️ (Pencil) This comment is a nitpick or style suggestion, no action required for approval. This comment should provide a suggestion either as an in line code snippet or a gist. \r\n- ❓ (Question Mark) This comment is to gain a clearer understanding of design or code choices, clarification is required but action may not be necessary for approval.\r\n- ❗ (Exclamation Mark) This comment is critical and requires clarification or action before approval.\r\n","created_at":"2019-02-26T15:11:33Z","updated_at":"2019-03-06T01:13:03Z","closed_at":null,"merged_at":null,"merge_commit_sha":"2b26d7daa223d4263f69bd97660acc9882b7c8d2","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[{"id":1112998962,"node_id":"MDU6TGFiZWwxMTEyOTk4OTYy","url":"https://api.github.com/repos/codice/ddf/labels/%F0%9F%91%A4%20UI","name":"👤 UI","color":"dcc9ff","default":false}],"milestone":null,"commits_url":"https://api.github.com/repos/codice/ddf/pulls/4450/commits","review_comments_url":"https://api.github.com/repos/codice/ddf/pulls/4450/comments","review_comment_url":"https://api.github.com/repos/codice/ddf/pulls/comments{/number}","comments_url":"https://api.github.com/repos/codice/ddf/issues/4450/comments","statuses_url":"https://api.github.com/repos/codice/ddf/statuses/593275cd89dd42648887b35e8976a28eedfc154e","head":{"label":"willwill96:DDF-04447","ref":"DDF-04447","sha":"593275cd89dd42648887b35e8976a28eedfc154e","user":{"login":"willwill96","id":10997562,"node_id":"MDQ6VXNlcjEwOTk3NTYy","avatar_url":"https://avatars1.githubusercontent.com/u/10997562?v=4","gravatar_id":"","url":"https://api.github.com/users/willwill96","html_url":"https://github.com/willwill96","followers_url":"https://api.github.com/users/willwill96/followers","following_url":"https://api.github.com/users/willwill96/following{/other_user}","gists_url":"https://api.github.com/users/willwill96/gists{/gist_id}","starred_url":"https://api.github.com/users/willwill96/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/willwill96/subscriptions","organizations_url":"https://api.github.com/users/willwill96/orgs","repos_url":"https://api.github.com/users/willwill96/repos","events_url":"https://api.github.com/users/willwill96/events{/privacy}","received_events_url":"https://api.github.com/users/willwill96/received_events","type":"User","site_admin":false},"repo":{"id":139872610,"node_id":"MDEwOlJlcG9zaXRvcnkxMzk4NzI2MTA=","name":"ddf","full_name":"willwill96/ddf","private":false,"owner":{"login":"willwill96","id":10997562,"node_id":"MDQ6VXNlcjEwOTk3NTYy","avatar_url":"https://avatars1.githubusercontent.com/u/10997562?v=4","gravatar_id":"","url":"https://api.github.com/users/willwill96","html_url":"https://github.com/willwill96","followers_url":"https://api.github.com/users/willwill96/followers","following_url":"https://api.github.com/users/willwill96/following{/other_user}","gists_url":"https://api.github.com/users/willwill96/gists{/gist_id}","starred_url":"https://api.github.com/users/willwill96/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/willwill96/subscriptions","organizations_url":"https://api.github.com/users/willwill96/orgs","repos_url":"https://api.github.com/users/willwill96/repos","events_url":"https://api.github.com/users/willwill96/events{/privacy}","received_events_url":"https://api.github.com/users/willwill96/received_events","type":"User","site_admin":false},"html_url":"https://github.com/willwill96/ddf","description":"DDF Distributed Data Framework - an open source, modular integration framework.","fork":true,"url":"https://api.github.com/repos/willwill96/ddf","forks_url":"https://api.github.com/repos/willwill96/ddf/forks","keys_url":"https://api.github.com/repos/willwill96/ddf/keys{/key_id}","collaborators_url":"https://api.github.com/repos/willwill96/ddf/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/willwill96/ddf/teams","hooks_url":"https://api.github.com/repos/willwill96/ddf/hooks","issue_events_url":"https://api.github.com/repos/willwill96/ddf/issues/events{/number}","events_url":"https://api.github.com/repos/willwill96/ddf/events","assignees_url":"https://api.github.com/repos/willwill96/ddf/assignees{/user}","branches_url":"https://api.github.com/repos/willwill96/ddf/branches{/branch}","tags_url":"https://api.github.com/repos/willwill96/ddf/tags","blobs_url":"https://api.github.com/repos/willwill96/ddf/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/willwill96/ddf/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/willwill96/ddf/git/refs{/sha}","trees_url":"https://api.github.com/repos/willwill96/ddf/git/trees{/sha}","statuses_url":"https://api.github.com/repos/willwill96/ddf/statuses/{sha}","languages_url":"https://api.github.com/repos/willwill96/ddf/languages","stargazers_url":"https://api.github.com/repos/willwill96/ddf/stargazers","contributors_url":"https://api.github.com/repos/willwill96/ddf/contributors","subscribers_url":"https://api.github.com/repos/willwill96/ddf/subscribers","subscription_url":"https://api.github.com/repos/willwill96/ddf/subscription","commits_url":"https://api.github.com/repos/willwill96/ddf/commits{/sha}","git_commits_url":"https://api.github.com/repos/willwill96/ddf/git/commits{/sha}","comments_url":"https://api.github.com/repos/willwill96/ddf/comments{/number}","issue_comment_url":"https://api.github.com/repos/willwill96/ddf/issues/comments{/number}","contents_url":"https://api.github.com/repos/willwill96/ddf/contents/{+path}","compare_url":"https://api.github.com/repos/willwill96/ddf/compare/{base}...{head}","merges_url":"https://api.github.com/repos/willwill96/ddf/merges","archive_url":"https://api.github.com/repos/willwill96/ddf/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/willwill96/ddf/downloads","issues_url":"https://api.github.com/repos/willwill96/ddf/issues{/number}","pulls_url":"https://api.github.com/repos/willwill96/ddf/pulls{/number}","milestones_url":"https://api.github.com/repos/willwill96/ddf/milestones{/number}","notifications_url":"https://api.github.com/repos/willwill96/ddf/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/willwill96/ddf/labels{/name}","releases_url":"https://api.github.com/repos/willwill96/ddf/releases{/id}","deployments_url":"https://api.github.com/repos/willwill96/ddf/deployments","created_at":"2018-07-05T16:05:21Z","updated_at":"2018-07-18T18:08:59Z","pushed_at":"2019-03-05T19:35:48Z","git_url":"git://github.com/willwill96/ddf.git","ssh_url":"git@github.com:willwill96/ddf.git","clone_url":"https://github.com/willwill96/ddf.git","svn_url":"https://github.com/willwill96/ddf","homepage":"http://ddf.codice.org","size":399161,"stargazers_count":0,"watchers_count":0,"language":"Java","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":"other","name":"Other","spdx_id":"NOASSERTION","url":null,"node_id":"MDc6TGljZW5zZTA="},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"codice:master","ref":"master","sha":"b0c01268d576f9b78de0c954b3c308d94ca1df7d","user":{"login":"codice","id":2386734,"node_id":"MDEyOk9yZ2FuaXphdGlvbjIzODY3MzQ=","avatar_url":"https://avatars2.githubusercontent.com/u/2386734?v=4","gravatar_id":"","url":"https://api.github.com/users/codice","html_url":"https://github.com/codice","followers_url":"https://api.github.com/users/codice/followers","following_url":"https://api.github.com/users/codice/following{/other_user}","gists_url":"https://api.github.com/users/codice/gists{/gist_id}","starred_url":"https://api.github.com/users/codice/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/codice/subscriptions","organizations_url":"https://api.github.com/users/codice/orgs","repos_url":"https://api.github.com/users/codice/repos","events_url":"https://api.github.com/users/codice/events{/privacy}","received_events_url":"https://api.github.com/users/codice/received_events","type":"Organization","site_admin":false},"repo":{"id":15173563,"node_id":"MDEwOlJlcG9zaXRvcnkxNTE3MzU2Mw==","name":"ddf","full_name":"codice/ddf","private":false,"owner":{"login":"codice","id":2386734,"node_id":"MDEyOk9yZ2FuaXphdGlvbjIzODY3MzQ=","avatar_url":"https://avatars2.githubusercontent.com/u/2386734?v=4","gravatar_id":"","url":"https://api.github.com/users/codice","html_url":"https://github.com/codice","followers_url":"https://api.github.com/users/codice/followers","following_url":"https://api.github.com/users/codice/following{/other_user}","gists_url":"https://api.github.com/users/codice/gists{/gist_id}","starred_url":"https://api.github.com/users/codice/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/codice/subscriptions","organizations_url":"https://api.github.com/users/codice/orgs","repos_url":"https://api.github.com/users/codice/repos","events_url":"https://api.github.com/users/codice/events{/privacy}","received_events_url":"https://api.github.com/users/codice/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/codice/ddf","description":"DDF Distributed Data Framework - an open source, modular integration framework.","fork":false,"url":"https://api.github.com/repos/codice/ddf","forks_url":"https://api.github.com/repos/codice/ddf/forks","keys_url":"https://api.github.com/repos/codice/ddf/keys{/key_id}","collaborators_url":"https://api.github.com/repos/codice/ddf/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/codice/ddf/teams","hooks_url":"https://api.github.com/repos/codice/ddf/hooks","issue_events_url":"https://api.github.com/repos/codice/ddf/issues/events{/number}","events_url":"https://api.github.com/repos/codice/ddf/events","assignees_url":"https://api.github.com/repos/codice/ddf/assignees{/user}","branches_url":"https://api.github.com/repos/codice/ddf/branches{/branch}","tags_url":"https://api.github.com/repos/codice/ddf/tags","blobs_url":"https://api.github.com/repos/codice/ddf/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/codice/ddf/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/codice/ddf/git/refs{/sha}","trees_url":"https://api.github.com/repos/codice/ddf/git/trees{/sha}","statuses_url":"https://api.github.com/repos/codice/ddf/statuses/{sha}","languages_url":"https://api.github.com/repos/codice/ddf/languages","stargazers_url":"https://api.github.com/repos/codice/ddf/stargazers","contributors_url":"https://api.github.com/repos/codice/ddf/contributors","subscribers_url":"https://api.github.com/repos/codice/ddf/subscribers","subscription_url":"https://api.github.com/repos/codice/ddf/subscription","commits_url":"https://api.github.com/repos/codice/ddf/commits{/sha}","git_commits_url":"https://api.github.com/repos/codice/ddf/git/commits{/sha}","comments_url":"https://api.github.com/repos/codice/ddf/comments{/number}","issue_comment_url":"https://api.github.com/repos/codice/ddf/issues/comments{/number}","contents_url":"https://api.github.com/repos/codice/ddf/contents/{+path}","compare_url":"https://api.github.com/repos/codice/ddf/compare/{base}...{head}","merges_url":"https://api.github.com/repos/codice/ddf/merges","archive_url":"https://api.github.com/repos/codice/ddf/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/codice/ddf/downloads","issues_url":"https://api.github.com/repos/codice/ddf/issues{/number}","pulls_url":"https://api.github.com/repos/codice/ddf/pulls{/number}","milestones_url":"https://api.github.com/repos/codice/ddf/milestones{/number}","notifications_url":"https://api.github.com/repos/codice/ddf/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/codice/ddf/labels{/name}","releases_url":"https://api.github.com/repos/codice/ddf/releases{/id}","deployments_url":"https://api.github.com/repos/codice/ddf/deployments","created_at":"2013-12-13T20:38:28Z","updated_at":"2019-03-05T17:23:54Z","pushed_at":"2019-03-05T22:02:58Z","git_url":"git://github.com/codice/ddf.git","ssh_url":"git@github.com:codice/ddf.git","clone_url":"https://github.com/codice/ddf.git","svn_url":"https://github.com/codice/ddf","homepage":"http://ddf.codice.org","size":421956,"stargazers_count":93,"watchers_count":93,"language":"Java","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":164,"mirror_url":null,"archived":false,"open_issues_count":94,"license":{"key":"other","name":"Other","spdx_id":"NOASSERTION","url":null,"node_id":"MDc6TGljZW5zZTA="},"forks":164,"open_issues":94,"watchers":93,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/codice/ddf/pulls/4450"},"html":{"href":"https://github.com/codice/ddf/pull/4450"},"issue":{"href":"https://api.github.com/repos/codice/ddf/issues/4450"},"comments":{"href":"https://api.github.com/repos/codice/ddf/issues/4450/comments"},"review_comments":{"href":"https://api.github.com/repos/codice/ddf/pulls/4450/comments"},"review_comment":{"href":"https://api.github.com/repos/codice/ddf/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/codice/ddf/pulls/4450/commits"},"statuses":{"href":"https://api.github.com/repos/codice/ddf/statuses/593275cd89dd42648887b35e8976a28eedfc154e"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"adimka"}}