Skip to content

fix: update fastapi version and correct variable name for sample poin…#499

Merged
jirhiker merged 1 commit intostagingfrom
transfer-fix
Feb 13, 2026
Merged

fix: update fastapi version and correct variable name for sample poin…#499
jirhiker merged 1 commit intostagingfrom
transfer-fix

Conversation

@jirhiker
Copy link
Copy Markdown
Member

…t ID

Why

This PR addresses the following problem / context:

  • Use bullet points here

How

Implementation summary - the following was changed / added / removed:

  • Use bullet points here

Notes

Any special considerations, workarounds, or follow-up work to note?

  • Use bullet points here

Copilot AI review requested due to automatic review settings February 13, 2026 04:55
@jirhiker jirhiker merged commit 2fd43f8 into staging Feb 13, 2026
11 checks passed
Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: b423397401

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment on lines +396 to 398
fastapi==0.128.0 \
--hash=sha256:6314385777a507bb19b34bd064829fddaea0eea54436deb632b5de587554055c \
--hash=sha256:72e188f01f360e2f59da51c8822cbe4bca210c35daaae6321b1b724109101c00
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P1 Badge Regenerate FastAPI hashes after version bump

The requirement was updated to fastapi==0.128.0, but the two hashes on this entry are still the previous release hashes (they no longer match the 0.128.0 artifacts recorded in uv.lock around the FastAPI package block). Any environment installing from this pinned, hash-based requirements file in hash-checking mode (e.g., pip install --require-hashes -r requirements.txt) will fail with a hash mismatch and block dependency installation.

Useful? React with 👍 / 👎.

Copy link
Copy Markdown
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 updates the project’s FastAPI dependency and adjusts the MinorTraceChemistry transfer upsert mapping for the legacy SamplePointID field.

Changes:

  • Bump FastAPI from 0.124.2 to 0.128.0 across dependency manifests/locks.
  • Update the MinorTraceChemistry upsert set_ mapping to use nma_SamplePointID.

Reviewed changes

Copilot reviewed 2 out of 4 changed files in this pull request and generated 1 comment.

File Description
uv.lock Locks FastAPI to 0.128.0 with updated artifact metadata.
requirements.txt Pins FastAPI to 0.128.0 (but hashes need regeneration).
pyproject.toml Updates project dependency pin for FastAPI to 0.128.0.
transfers/minor_trace_chemistry_transfer.py Adjusts upsert update mapping key for SamplePointID.

"chemistry_sample_info_id": excluded.chemistry_sample_info_id,
"nma_chemistry_sample_info_uuid": excluded.nma_chemistry_sample_info_uuid,
"nma_sample_point_id": excluded.nma_sample_point_id,
"nma_SamplePointID": excluded.nma_SamplePointID,
Copy link

Copilot AI Feb 13, 2026

Choose a reason for hiding this comment

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

The upsert set_ mapping now uses nma_SamplePointID, but _row_to_dict() still populates nma_sample_point_id for inserts (and tests assert that key). This means inserts and conflict-updates are using different column keys and is likely to raise “unconsumed column names”/missing attribute errors or silently skip updates depending on SQLAlchemy’s column key resolution. Align on a single key (most other transfers use the DB column name nma_SamplePointID) and update _row_to_dict() and its tests accordingly.

Suggested change
"nma_SamplePointID": excluded.nma_SamplePointID,
"nma_sample_point_id": excluded.nma_sample_point_id,

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.

2 participants