Skip to content

Preserve immutable STIX fields during workflow updates - #497

Open
adpare wants to merge 1 commit into
betafrom
fix-relationship-creation
Open

adpare wants to merge 1 commit into
betafrom
fix-relationship-creation

Conversation

@adpare

@adpare adpare commented Sep 17, 2026

Copy link
Copy Markdown
Contributor

Saving a relationship updates the workflow state of its source and target through PUTs. Those requests omitted a couple of stored STIX fields, and the backend interpreted their absence as an attempt to alter an immutable revision.

Any new relationship created was causing this issue. This PR addresses that by persisting the x_mitre_modief_by_ref and object_marking_refs values.

Related to PR open on the workbench frontend

@codecov-commenter

Copy link
Copy Markdown

⚠️ Please install the 'codecov app svg image' to ensure uploads and comments are reliably processed by Codecov.

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 81.12%. Comparing base (65ebb4e) to head (b12204c).
❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files
@@           Coverage Diff           @@
##             beta     #497   +/-   ##
=======================================
  Coverage   81.12%   81.12%           
=======================================
  Files         245      245           
  Lines       39356    39366   +10     
  Branches     4820     4822    +2     
=======================================
+ Hits        31926    31936   +10     
  Misses       7342     7342           
  Partials       88       88           

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

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.

2 participants