Skip to content

[CU-86b8p5pcj] Fix samples add command to update storage_account_id#155

Merged
patmagee merged 1 commit intomainfrom
fix-samples-add-storage-account-CU-86b8p5pcj
Feb 27, 2026
Merged

[CU-86b8p5pcj] Fix samples add command to update storage_account_id#155
patmagee merged 1 commit intomainfrom
fix-samples-add-storage-account-CU-86b8p5pcj

Conversation

@patmagee
Copy link
Contributor

Summary

  • Fix dnastack workbench runs samples add to update storage_account_id on existing samples when --storage-account is provided
  • Previously, existing samples were carried forward unchanged, leaving storage_account_id=null in the DB

Context

When re-adding samples with --storage-account, the CLI skipped existing samples entirely. This caused storage_account_id=null in the DB, which broke JSONB containment checks in EWES orchestration existing-run detection.

Related EWES fix: [CU-86b8p5pc7]

Test plan

  • test_add_existing_sample_updates_storage_account — verifies existing samples get storage_account_id updated
  • test_add_existing_sample_preserves_storage_account_when_not_provided — guard test, existing behavior preserved
  • All 361 unit tests pass

🤖 Generated with Claude Code

…n existing samples

When --storage-account is provided, existing samples that match the
provided sample IDs now have their storage_account_id updated.
Previously, existing samples were carried forward unchanged, causing
storage_account_id=null in the DB and breaking JSONB containment
checks in the orchestration existing-run detection.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@github-actions
Copy link

github-actions bot commented Feb 27, 2026

☂️ Python Coverage

current status: ✅

Overall Coverage

Lines Covered Coverage Threshold Status
10747 6005 56% 30% 🟢

New Files

No new covered files...

Modified Files

File Coverage Status
dnastack/cli/commands/workbench/runs/samples/commands.py 100% 🟢
TOTAL 100% 🟢

updated for commit: 9728c28 by action🐍

Copy link
Contributor

@mpanik mpanik left a comment

Choose a reason for hiding this comment

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

LGTM

@patmagee patmagee merged commit 5e4e022 into main Feb 27, 2026
6 checks passed
@patmagee patmagee deleted the fix-samples-add-storage-account-CU-86b8p5pcj branch February 27, 2026 18:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

3 participants