Skip to content

VIRTS-3499 Update to use list of strings (Link IDs) instead of list of Links#56

Merged
mchan143 merged 1 commit into
masterfrom
fact-table-fix
Jan 10, 2022
Merged

VIRTS-3499 Update to use list of strings (Link IDs) instead of list of Links#56
mchan143 merged 1 commit into
masterfrom
fact-table-fix

Conversation

@mchan143

@mchan143 mchan143 commented Jan 6, 2022

Copy link
Copy Markdown
Collaborator

Description

This PR resolves a bug that caused the fact graph to not render when selecting an operation in the Debrief GUI and the PDF download to fail (an empty PDF is generated) when the Fact Table section is included in the PDF. The cause of the bug was a list of Links being used instead of a list of strings (Link IDs) when using Fact.links.

The proposed change will also account for Facts that have been discovered by multiple agents (more than one paw listed in collected_by) and also, therefore, multiple commands ran to discover the same Fact. If the commands ran that discovered the same Fact are also the same, the command is only shown once in the Fact Table.

Investigating this bug also led to the discovery of a different (unrelated) bug in core: apache/caldera#2432

Type of change

  • Bug fix (non-breaking change which fixes an issue)

How Has This Been Tested?

Ran an operation against two agents that discovered the same facts and ensure the graphs were generated as expected in the debrief GUI and the Fact table in the PDF downloaded is rendered properly.

Checklist:

  • My code follows the style guidelines of this project
  • I have performed a self-review of my own code
  • [N/A] I have made corresponding changes to the documentation
  • [N/A] I have added tests that prove my fix is effective or that my feature works

@mchan143 mchan143 added the bug Something isn't working label Jan 6, 2022
@sonarqubecloud

sonarqubecloud Bot commented Jan 6, 2022

Copy link
Copy Markdown

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

@mchan143
mchan143 requested review from cmagone and removed request for ArtificialErmine January 6, 2022 22:16
@cmagone cmagone self-assigned this Jan 7, 2022

@cmagone cmagone left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested in AWS. Works well.

@mchan143
mchan143 merged commit a892b94 into master Jan 10, 2022
@mchan143
mchan143 deleted the fact-table-fix branch January 10, 2022 13:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants