Skip to content

Transfer#254

Merged
jirhiker merged 15 commits into
stagingfrom
transfer
Nov 19, 2025
Merged

Transfer#254
jirhiker merged 15 commits into
stagingfrom
transfer

Conversation

@jirhiker

Copy link
Copy Markdown
Member

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

@codecov-commenter

codecov-commenter commented Nov 18, 2025

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 92.30769% with 2 lines in your changes missing coverage. Please review.
✅ All tests successful. No failed tests found.

Files with missing lines Patch % Lines
core/app.py 0.00% 1 Missing ⚠️
schemas/__init__.py 87.50% 1 Missing ⚠️
Files with missing lines Coverage Δ
core/initializers.py 87.95% <100.00%> (+1.93%) ⬆️
schemas/thing.py 98.14% <100.00%> (+0.47%) ⬆️
tests/__init__.py 100.00% <100.00%> (ø)
core/app.py 30.37% <0.00%> (+0.25%) ⬆️
schemas/__init__.py 85.10% <87.50%> (-1.57%) ⬇️

... and 22 files with indirect coverage changes

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

Copy link
Copy Markdown

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.

ℹ️ 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 thread transfers/metrics.py Outdated
@@ -1,4 +1,4 @@
# ===============================================================================
1 # ===============================================================================

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P0 Badge Remove stray literal breaking metrics import

The metrics module now begins with a bare 1 before the comment header, which makes Python raise SyntaxError: invalid decimal literal as soon as the file is imported. Any transfer entry point that imports Metrics (e.g., transfer_all or transfer_debugging) will fail immediately before executing, so the transfer scripts cannot run until this is removed.

Useful? React with 👍 / 👎.

Comment on lines +317 to +318
for well in session.query(Thing).filter(Thing.thing_type == "water well").all():
row = wdf[wdf["PointID"] == well.name].iloc[0]

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 Handle wells not present in current transfer batch

After committing new wells, the code now loops over all water wells in the database and does wdf[wdf["PointID"] == well.name].iloc[0]. When transfer_wells is run without wiping the database (the default in transfer_debugging), existing wells that are filtered out of wdf leave that selection empty, so .iloc[0] raises IndexError and the transfer aborts before provenance, notes, or monitoring statuses are written. The loop needs to skip wells not in the current dataframe or guard the lookup.

Useful? React with 👍 / 👎.

@jirhiker jirhiker merged commit 2e5c9c5 into staging Nov 19, 2025
5 checks passed
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.

3 participants