{"action":"created","comment":{"url":"https://api.github.com/repos/quipucords/quipucords/pulls/comments/175476007","pull_request_review_id":105010270,"id":175476007,"diff_hunk":"@@ -0,0 +1,42 @@\n+System Deduplication and Merging\n+================================\n+Quipucords is used to inspect and gather information about your IT infrastructure.  System information can be gathered using the following types of sources:\n+\n+- network\n+- vcenter\n+- satellite\n+\n+A scan is composed of one or more sources.  A single system may be seen through multiple sources during a scan.  For example, a vcenter VM may be running a Satellite managed RHEL OS installation.  A network source could also be used to scan this system.  In this case, the system will be reported via vcenter, satellite, and network sources during a scan.  Quipucords feeds unprocessed system facts from a scan into a fingerprint engine.  The fingerprint engine matches and merges data for systems seen in more than one source.\n+\n+Deduplication of Systems\n+------------------------\n+Quipucords uses specific system facts to identify duplicate systems.  The following phases remove duplicate systems:\n+\n+1. All systems from network sources are combined into a single network system set.  Systems are considered to be a duplicate if they have the same fact value for ``subscription_manager_id`` or ``bios_uuid``.\n+2. All systems from vcenter sources are combined into a single vcenter system set.  Systems are considered to be a duplicate if they have the same fact value for ``vm_uuid``.\n+3. All systems from satellite sources are combined into a single satellite system set.  Systems are considered to be a duplicate if they have the same fact value for ``subscription_manager_id``.\n+4. The network system set is merged with the satellite system set to form a single network-satellite system set.  Systems are considered to be a duplicate if they have the same fact value for ``subscription_manager_id`` or a matching MAC address in the ``mac_addresses`` fact.\n+5. The network-satellite system set is merged with the vcenter system set to form the complete system set.  Systems are considered to be a duplicate if they a matching MAC address in the ``mac_addresses`` fact or if the vcenter fact value of ``vm_uuid`` matches the network/satellite value of ``bios_uuid``.\n+\n+Merging Systems\n+---------------\n+Once Quipucords determines that two systems are duplicates it performs a merge.  The merged system will have a union of system facts from each source.  When merging a fact that appears in both systems, the precedence from highest to lower is:\n+\n+1. network\n+2. satellite\n+3. vcenter\n+\n+\n+Post Processing\n+---------------\n+After deduplication and merging have completed, there is a post processing phase used to create derived system facts.  Derived system facts are generated from more than one system fact.\n+\n+System Creation Date\n+^^^^^^^^^^^^^^^^^^^^\n+``system_creation_date`` is a derived system fact.  The ``system_creation_date`` is determine by the following primitive facts.  The primitive facts below are ordered according to the accuracy of matching the real system creation time.  The highest non-empty value will be used.","path":"docs/source/deduplication.rst","position":36,"original_position":36,"commit_id":"e3ebe51401aea32babc13616c252834f817684f4","original_commit_id":"e3ebe51401aea32babc13616c252834f817684f4","user":{"login":"abaiken","id":34656858,"avatar_url":"https://avatars0.githubusercontent.com/u/34656858?v=4","gravatar_id":"","url":"https://api.github.com/users/abaiken","html_url":"https://github.com/abaiken","followers_url":"https://api.github.com/users/abaiken/followers","following_url":"https://api.github.com/users/abaiken/following{/other_user}","gists_url":"https://api.github.com/users/abaiken/gists{/gist_id}","starred_url":"https://api.github.com/users/abaiken/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/abaiken/subscriptions","organizations_url":"https://api.github.com/users/abaiken/orgs","repos_url":"https://api.github.com/users/abaiken/repos","events_url":"https://api.github.com/users/abaiken/events{/privacy}","received_events_url":"https://api.github.com/users/abaiken/received_events","type":"User","site_admin":false},"body":"The \"system_creation_date\" is determine --> The \"system_creation_date\" is determined","created_at":"2018-03-19T15:26:14Z","updated_at":"2018-03-19T15:26:14Z","html_url":"https://github.com/quipucords/quipucords/pull/1075#discussion_r175476007","pull_request_url":"https://api.github.com/repos/quipucords/quipucords/pulls/1075","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/quipucords/quipucords/pulls/comments/175476007"},"html":{"href":"https://github.com/quipucords/quipucords/pull/1075#discussion_r175476007"},"pull_request":{"href":"https://api.github.com/repos/quipucords/quipucords/pulls/1075"}}},"pull_request":{"url":"https://api.github.com/repos/quipucords/quipucords/pulls/1075","id":175924632,"html_url":"https://github.com/quipucords/quipucords/pull/1075","diff_url":"https://github.com/quipucords/quipucords/pull/1075.diff","patch_url":"https://github.com/quipucords/quipucords/pull/1075.patch","issue_url":"https://api.github.com/repos/quipucords/quipucords/issues/1075","number":1075,"state":"open","locked":false,"title":"Add documentation regarding the merge and deduplication logic","user":{"login":"kholdaway","id":32331547,"avatar_url":"https://avatars0.githubusercontent.com/u/32331547?v=4","gravatar_id":"","url":"https://api.github.com/users/kholdaway","html_url":"https://github.com/kholdaway","followers_url":"https://api.github.com/users/kholdaway/followers","following_url":"https://api.github.com/users/kholdaway/following{/other_user}","gists_url":"https://api.github.com/users/kholdaway/gists{/gist_id}","starred_url":"https://api.github.com/users/kholdaway/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kholdaway/subscriptions","organizations_url":"https://api.github.com/users/kholdaway/orgs","repos_url":"https://api.github.com/users/kholdaway/repos","events_url":"https://api.github.com/users/kholdaway/events{/privacy}","received_events_url":"https://api.github.com/users/kholdaway/received_events","type":"User","site_admin":false},"body":"Closes #894 ","created_at":"2018-03-19T14:53:56Z","updated_at":"2018-03-19T15:26:14Z","closed_at":null,"merged_at":null,"merge_commit_sha":"f6f5d09f96972367e321bf685a74e64e2cc29bea","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[{"name":"Documentation","id":2627320,"slug":"documentation","description":"Documentation","privacy":"closed","url":"https://api.github.com/teams/2627320","members_url":"https://api.github.com/teams/2627320/members{/member}","repositories_url":"https://api.github.com/teams/2627320/repos","permission":"pull"}],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/quipucords/quipucords/pulls/1075/commits","review_comments_url":"https://api.github.com/repos/quipucords/quipucords/pulls/1075/comments","review_comment_url":"https://api.github.com/repos/quipucords/quipucords/pulls/comments{/number}","comments_url":"https://api.github.com/repos/quipucords/quipucords/issues/1075/comments","statuses_url":"https://api.github.com/repos/quipucords/quipucords/statuses/e3ebe51401aea32babc13616c252834f817684f4","head":{"label":"quipucords:issues/894","ref":"issues/894","sha":"e3ebe51401aea32babc13616c252834f817684f4","user":{"login":"quipucords","id":29148065,"avatar_url":"https://avatars0.githubusercontent.com/u/29148065?v=4","gravatar_id":"","url":"https://api.github.com/users/quipucords","html_url":"https://github.com/quipucords","followers_url":"https://api.github.com/users/quipucords/followers","following_url":"https://api.github.com/users/quipucords/following{/other_user}","gists_url":"https://api.github.com/users/quipucords/gists{/gist_id}","starred_url":"https://api.github.com/users/quipucords/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/quipucords/subscriptions","organizations_url":"https://api.github.com/users/quipucords/orgs","repos_url":"https://api.github.com/users/quipucords/repos","events_url":"https://api.github.com/users/quipucords/events{/privacy}","received_events_url":"https://api.github.com/users/quipucords/received_events","type":"Organization","site_admin":false},"repo":{"id":94471461,"name":"quipucords","full_name":"quipucords/quipucords","owner":{"login":"quipucords","id":29148065,"avatar_url":"https://avatars0.githubusercontent.com/u/29148065?v=4","gravatar_id":"","url":"https://api.github.com/users/quipucords","html_url":"https://github.com/quipucords","followers_url":"https://api.github.com/users/quipucords/followers","following_url":"https://api.github.com/users/quipucords/following{/other_user}","gists_url":"https://api.github.com/users/quipucords/gists{/gist_id}","starred_url":"https://api.github.com/users/quipucords/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/quipucords/subscriptions","organizations_url":"https://api.github.com/users/quipucords/orgs","repos_url":"https://api.github.com/users/quipucords/repos","events_url":"https://api.github.com/users/quipucords/events{/privacy}","received_events_url":"https://api.github.com/users/quipucords/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/quipucords/quipucords","description":"A tool for discovery, inspection, collection/deduplication, and reporting on an IT environment","fork":false,"url":"https://api.github.com/repos/quipucords/quipucords","forks_url":"https://api.github.com/repos/quipucords/quipucords/forks","keys_url":"https://api.github.com/repos/quipucords/quipucords/keys{/key_id}","collaborators_url":"https://api.github.com/repos/quipucords/quipucords/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/quipucords/quipucords/teams","hooks_url":"https://api.github.com/repos/quipucords/quipucords/hooks","issue_events_url":"https://api.github.com/repos/quipucords/quipucords/issues/events{/number}","events_url":"https://api.github.com/repos/quipucords/quipucords/events","assignees_url":"https://api.github.com/repos/quipucords/quipucords/assignees{/user}","branches_url":"https://api.github.com/repos/quipucords/quipucords/branches{/branch}","tags_url":"https://api.github.com/repos/quipucords/quipucords/tags","blobs_url":"https://api.github.com/repos/quipucords/quipucords/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/quipucords/quipucords/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/quipucords/quipucords/git/refs{/sha}","trees_url":"https://api.github.com/repos/quipucords/quipucords/git/trees{/sha}","statuses_url":"https://api.github.com/repos/quipucords/quipucords/statuses/{sha}","languages_url":"https://api.github.com/repos/quipucords/quipucords/languages","stargazers_url":"https://api.github.com/repos/quipucords/quipucords/stargazers","contributors_url":"https://api.github.com/repos/quipucords/quipucords/contributors","subscribers_url":"https://api.github.com/repos/quipucords/quipucords/subscribers","subscription_url":"https://api.github.com/repos/quipucords/quipucords/subscription","commits_url":"https://api.github.com/repos/quipucords/quipucords/commits{/sha}","git_commits_url":"https://api.github.com/repos/quipucords/quipucords/git/commits{/sha}","comments_url":"https://api.github.com/repos/quipucords/quipucords/comments{/number}","issue_comment_url":"https://api.github.com/repos/quipucords/quipucords/issues/comments{/number}","contents_url":"https://api.github.com/repos/quipucords/quipucords/contents/{+path}","compare_url":"https://api.github.com/repos/quipucords/quipucords/compare/{base}...{head}","merges_url":"https://api.github.com/repos/quipucords/quipucords/merges","archive_url":"https://api.github.com/repos/quipucords/quipucords/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/quipucords/quipucords/downloads","issues_url":"https://api.github.com/repos/quipucords/quipucords/issues{/number}","pulls_url":"https://api.github.com/repos/quipucords/quipucords/pulls{/number}","milestones_url":"https://api.github.com/repos/quipucords/quipucords/milestones{/number}","notifications_url":"https://api.github.com/repos/quipucords/quipucords/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/quipucords/quipucords/labels{/name}","releases_url":"https://api.github.com/repos/quipucords/quipucords/releases{/id}","deployments_url":"https://api.github.com/repos/quipucords/quipucords/deployments","created_at":"2017-06-15T19:19:03Z","updated_at":"2018-03-19T14:22:36Z","pushed_at":"2018-03-19T14:53:57Z","git_url":"git://github.com/quipucords/quipucords.git","ssh_url":"git@github.com:quipucords/quipucords.git","clone_url":"https://github.com/quipucords/quipucords.git","svn_url":"https://github.com/quipucords/quipucords","homepage":"http://quipucords.readthedocs.io/en/latest/","size":2502,"stargazers_count":12,"watchers_count":12,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":8,"mirror_url":null,"archived":false,"open_issues_count":29,"license":{"key":"gpl-3.0","name":"GNU General Public License v3.0","spdx_id":"GPL-3.0","url":"https://api.github.com/licenses/gpl-3.0"},"forks":8,"open_issues":29,"watchers":12,"default_branch":"master"}},"base":{"label":"quipucords:master","ref":"master","sha":"e9c9bfbdeeda32f12078fe953dcff2a11e91da60","user":{"login":"quipucords","id":29148065,"avatar_url":"https://avatars0.githubusercontent.com/u/29148065?v=4","gravatar_id":"","url":"https://api.github.com/users/quipucords","html_url":"https://github.com/quipucords","followers_url":"https://api.github.com/users/quipucords/followers","following_url":"https://api.github.com/users/quipucords/following{/other_user}","gists_url":"https://api.github.com/users/quipucords/gists{/gist_id}","starred_url":"https://api.github.com/users/quipucords/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/quipucords/subscriptions","organizations_url":"https://api.github.com/users/quipucords/orgs","repos_url":"https://api.github.com/users/quipucords/repos","events_url":"https://api.github.com/users/quipucords/events{/privacy}","received_events_url":"https://api.github.com/users/quipucords/received_events","type":"Organization","site_admin":false},"repo":{"id":94471461,"name":"quipucords","full_name":"quipucords/quipucords","owner":{"login":"quipucords","id":29148065,"avatar_url":"https://avatars0.githubusercontent.com/u/29148065?v=4","gravatar_id":"","url":"https://api.github.com/users/quipucords","html_url":"https://github.com/quipucords","followers_url":"https://api.github.com/users/quipucords/followers","following_url":"https://api.github.com/users/quipucords/following{/other_user}","gists_url":"https://api.github.com/users/quipucords/gists{/gist_id}","starred_url":"https://api.github.com/users/quipucords/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/quipucords/subscriptions","organizations_url":"https://api.github.com/users/quipucords/orgs","repos_url":"https://api.github.com/users/quipucords/repos","events_url":"https://api.github.com/users/quipucords/events{/privacy}","received_events_url":"https://api.github.com/users/quipucords/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/quipucords/quipucords","description":"A tool for discovery, inspection, collection/deduplication, and reporting on an IT environment","fork":false,"url":"https://api.github.com/repos/quipucords/quipucords","forks_url":"https://api.github.com/repos/quipucords/quipucords/forks","keys_url":"https://api.github.com/repos/quipucords/quipucords/keys{/key_id}","collaborators_url":"https://api.github.com/repos/quipucords/quipucords/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/quipucords/quipucords/teams","hooks_url":"https://api.github.com/repos/quipucords/quipucords/hooks","issue_events_url":"https://api.github.com/repos/quipucords/quipucords/issues/events{/number}","events_url":"https://api.github.com/repos/quipucords/quipucords/events","assignees_url":"https://api.github.com/repos/quipucords/quipucords/assignees{/user}","branches_url":"https://api.github.com/repos/quipucords/quipucords/branches{/branch}","tags_url":"https://api.github.com/repos/quipucords/quipucords/tags","blobs_url":"https://api.github.com/repos/quipucords/quipucords/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/quipucords/quipucords/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/quipucords/quipucords/git/refs{/sha}","trees_url":"https://api.github.com/repos/quipucords/quipucords/git/trees{/sha}","statuses_url":"https://api.github.com/repos/quipucords/quipucords/statuses/{sha}","languages_url":"https://api.github.com/repos/quipucords/quipucords/languages","stargazers_url":"https://api.github.com/repos/quipucords/quipucords/stargazers","contributors_url":"https://api.github.com/repos/quipucords/quipucords/contributors","subscribers_url":"https://api.github.com/repos/quipucords/quipucords/subscribers","subscription_url":"https://api.github.com/repos/quipucords/quipucords/subscription","commits_url":"https://api.github.com/repos/quipucords/quipucords/commits{/sha}","git_commits_url":"https://api.github.com/repos/quipucords/quipucords/git/commits{/sha}","comments_url":"https://api.github.com/repos/quipucords/quipucords/comments{/number}","issue_comment_url":"https://api.github.com/repos/quipucords/quipucords/issues/comments{/number}","contents_url":"https://api.github.com/repos/quipucords/quipucords/contents/{+path}","compare_url":"https://api.github.com/repos/quipucords/quipucords/compare/{base}...{head}","merges_url":"https://api.github.com/repos/quipucords/quipucords/merges","archive_url":"https://api.github.com/repos/quipucords/quipucords/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/quipucords/quipucords/downloads","issues_url":"https://api.github.com/repos/quipucords/quipucords/issues{/number}","pulls_url":"https://api.github.com/repos/quipucords/quipucords/pulls{/number}","milestones_url":"https://api.github.com/repos/quipucords/quipucords/milestones{/number}","notifications_url":"https://api.github.com/repos/quipucords/quipucords/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/quipucords/quipucords/labels{/name}","releases_url":"https://api.github.com/repos/quipucords/quipucords/releases{/id}","deployments_url":"https://api.github.com/repos/quipucords/quipucords/deployments","created_at":"2017-06-15T19:19:03Z","updated_at":"2018-03-19T14:22:36Z","pushed_at":"2018-03-19T14:53:57Z","git_url":"git://github.com/quipucords/quipucords.git","ssh_url":"git@github.com:quipucords/quipucords.git","clone_url":"https://github.com/quipucords/quipucords.git","svn_url":"https://github.com/quipucords/quipucords","homepage":"http://quipucords.readthedocs.io/en/latest/","size":2502,"stargazers_count":12,"watchers_count":12,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":8,"mirror_url":null,"archived":false,"open_issues_count":29,"license":{"key":"gpl-3.0","name":"GNU General Public License v3.0","spdx_id":"GPL-3.0","url":"https://api.github.com/licenses/gpl-3.0"},"forks":8,"open_issues":29,"watchers":12,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/quipucords/quipucords/pulls/1075"},"html":{"href":"https://github.com/quipucords/quipucords/pull/1075"},"issue":{"href":"https://api.github.com/repos/quipucords/quipucords/issues/1075"},"comments":{"href":"https://api.github.com/repos/quipucords/quipucords/issues/1075/comments"},"review_comments":{"href":"https://api.github.com/repos/quipucords/quipucords/pulls/1075/comments"},"review_comment":{"href":"https://api.github.com/repos/quipucords/quipucords/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/quipucords/quipucords/pulls/1075/commits"},"statuses":{"href":"https://api.github.com/repos/quipucords/quipucords/statuses/e3ebe51401aea32babc13616c252834f817684f4"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"abaiken"}}