Skip to content

Preserve immutable STIX fields during workflow updates - #497

Merged
jondricek merged 1 commit into
nextfrom
fix-relationship-creation
Sep 21, 2026
Merged

jondricek merged 1 commit into
nextfrom
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.

@jondricek
jondricek changed the base branch from beta to next September 21, 2026 18:13
@jondricek
jondricek merged commit 737d854 into next Sep 21, 2026
4 checks passed
@jondricek
jondricek deleted the fix-relationship-creation branch September 21, 2026 18:14
@github-actions

Copy link
Copy Markdown

🎉 This PR is included in version 4.21.1 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants