Skip to content

Update superseded_by-syncing Dagster job to log initial value alongside new one - #1706

Merged
eecavanna merged 1 commit into
mainfrom
1612-update-synchronize_superseded_by_-dagster-op-to-log-initial-value-alongside-update-statement
Nov 28, 2026
Merged

eecavanna merged 1 commit into
mainfrom
1612-update-synchronize_superseded_by_-dagster-op-to-log-initial-value-alongside-update-statement

Conversation

@eecavanna

@eecavanna eecavanna commented Nov 28, 2026 •

Copy link
Copy Markdown
Collaborator

On this branch, I updated the Dagster job that synchronizes the superseded_by field with "other things" so that, when it logs the update statement that it generates, it also logs the initial value of the superseded_by field.

Details

I expect this to help with debugging in the future.

Related issue(s)

Fixes #1612

Related subsystem(s)

  • Runtime API (except the Minter)
  • Minter
  • Dagster
  • Project documentation (in the docs directory)
  • Translators (metadata ingest pipelines)
  • MongoDB migrations
  • Other

Testing

  • I tested these changes (explain below)
  • I did not test these changes

Yolo.

Documentation

  • I have not checked for relevant documentation yet (e.g. in the docs directory)
  • I have updated all relevant documentation so it will remain accurate
  • Other (explain below)

Maintainability

  • Every Python function I defined includes a docstring (test functions are exempt from this)
  • Every Python function parameter I introduced includes a type hint (e.g. study_id: str)
  • All "to do" or "fix me" Python comments I added begin with either # TODO or # FIXME
  • I used black to format all the Python files I created/modified
  • The PR title is in the imperative mood (e.g. "Do X") and not the declarative mood (e.g. "Does X" or "Did X")

Summary by CodeRabbit

  • Chores
    • Diagnostic logs now show the previously observed superseded_by value alongside generated update statements for workflow executions and data objects. This provides additional context when reviewing these operations.
    • No changes were made to update generation or database behavior.

@coderabbitai

coderabbitai Bot commented Nov 28, 2026 •

Copy link
Copy Markdown

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

Changes: Superseded-by update logging

Layer / File(s) Summary
Add initial values to update logs
nmdc_runtime/site/ops/superseded_by.py
The workflow execution and data object update logs include the initially observed superseded_by value alongside the generated update statement.

Change: Other

Merge Risk: Minimal · up to 06d71

This change adds the initial superseded_by value to debug logs for easier troubleshooting. It does not alter update behavior or stored data, so merge risk is minimal.

Architecture risk: Low · up to 06d71

The change affects 1 source area.

Changed areas: nmdc_runtime

Review details

Systems and components

  • observed — nmdc_runtime (api) was modified; 1 changed file maps to changed impact.

Before / after behavior

  • observed — Modified behavior in nmdc_runtime/site/ops/superseded_by.py: The workflow execution update log now appends the initially observed superseded_by value.
  • observed — Modified behavior in nmdc_runtime/site/ops/superseded_by.py: The data object update log now appends the initially observed superseded_by value.
Finishing Touches

Generate unit tests (beta)

  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Recent review info

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: f84e23c6-3943-4e10-9db9-dd0bd72929b8
Commits

Reviewing files that changed from the base of the PR and between 7154c07 and 06d7104.

Files selected for processing: 1

  • nmdc_runtime/site/ops/superseded_by.py

Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 8 remain after this review.

@eecavanna
eecavanna merged commit 726f157 into main Nov 28, 2026
3 checks passed
@eecavanna
eecavanna deleted the 1612-update-synchronize_superseded_by_-dagster-op-to-log-initial-value-alongside-update-statement branch November 28, 2026 08:33
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.

Update synchronize_superseded_by_... Dagster op to log initial value alongside update statement

1 participant