Skip to content

Conversation

@timbrigham-oc
Copy link
Contributor

I've been spending some quality time in the fact sources (see mitre/caldera#3177) and I'm more familiar with how they work now. Wanted to make the information that I've been dropping into a local debug log (fact names and associated values) visible in the UI.

Description

This updates the display on the factsources page.
Previous version only had source edge and target, but did not include the values for the relationships.

Type of change

Please delete options that are not relevant.

  • New feature (non-breaking change which adds functionality)
  • This change requires a documentation update

How Has This Been Tested?

Edited the Vue file locally, rebuilt and tested. Source and target values are now part of the output. See example.

image

Checklist:

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

Add display of the *values* not just the names of the facts to the fact table.
@timbrigham-oc
Copy link
Contributor Author

Additional note, I did leave these fields read only in the display process, wasn't sure if there was a risk in making them editable. I tested that as well and it didn't blow up my instance.. If that's a that more preferred option I'd be happy to update accordingly.

@deacon-mp deacon-mp requested a review from Copilot September 29, 2025 23:22
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR enhances the fact sources relationship table by adding source and target values to the display. Previously, the table only showed trait names (source trait, edge, target trait), but now it also displays the actual values associated with those traits for better visibility and debugging.

  • Added "Source Value" and "Target Value" columns to the relationship table
  • Updated column headers to be more descriptive ("Source Name" instead of "Source", "Target Name" instead of "Target")
  • Displayed relationship.source.value and relationship.target.value in the new columns

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

input.input(v-if="relationshipIndexToEdit === index" v-model="relationship.target.trait" placeholder="Relationship target")
span(v-else) {{ relationship.target.trait }}
td
span {{ relationship.target.value }}
Copy link

Copilot AI Sep 29, 2025

Choose a reason for hiding this comment

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

Inconsistent indentation: this line uses 7 spaces while other similar lines use 8 spaces for indentation. Should be aligned with the pattern used in line 60.

Suggested change
span {{ relationship.target.value }}
span {{ relationship.target.value }}

Copilot uses AI. Check for mistakes.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant