Skip to content

BDMS-520-1-1-Cleanup-2.0#450

Merged
jirhiker merged 28 commits intostagingfrom
BDMS-520-1-1-Cleanup-2.0
Jan 31, 2026
Merged

BDMS-520-1-1-Cleanup-2.0#450
jirhiker merged 28 commits intostagingfrom
BDMS-520-1-1-Cleanup-2.0

Conversation

@jirhiker
Copy link
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

ksmuczynski and others added 15 commits January 28, 2026 15:11
…uous_Pressure_Daily

Context: updates db/nma_legacy.py to map GlobalID and WellID as UUID(as_uuid=True) and documents the WellID FK to Thing for the continuous pressure daily model.
- Define read-only Starlette Admin view with full legacy-order fields
- Register view in admin/views/__init__.py and admin/config.py
…acy.py for UUID IDs

- Updated the test helper to return UUIDs for GlobalID and WellID in legacy model tests
- Changed well_id to use a UUID so it matches the model mapping.
- Added migrations for thing_id FK and UUID column alignment
- Updated pressure daily legacy tests for Thing linkage and FK enforcement
- Cache Thing IDs and map PointID to thing_id to satisfy new FK
- Filter orphan rows to prevent invalid inserts
- Add focused transfer unit test to validate mapping and filtering
Copilot AI review requested due to automatic review settings January 30, 2026 23:31
Copy link
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 implements cleanup and refactoring changes to the data transfer pipeline, focusing on improving code organization, adding limit functionality for testing, and fixing data type handling issues.

Changes:

  • Added LIMIT flag support to reduce dataset sizes during parallel transfers for testing purposes
  • Fixed data type conversion in stratigraphy legacy transfers (StratTop/StratBottom now use int instead of float)
  • Added WCLab_ID field to minor trace chemistry transfer with test coverage
  • Reorganized transfer options loading and improved logging configuration in alembic

Reviewed changes

Copilot reviewed 7 out of 7 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
transfers/well_transfer.py Added LIMIT flag support to restrict dataframe size in parallel transfers
transfers/transfer.py Implemented limit scaling logic for parallel transfers and reorganized transfer options initialization
transfers/stratigraphy_legacy.py Changed StratTop/StratBottom fields from float to int conversion
transfers/minor_trace_chemistry_transfer.py Added WCLab_ID field to row dict and upsert statement
transfers/logger.py Separated log filename from path and removed commented code
tests/test_minor_trace_chemistry_transfer.py Added test coverage for WCLab_ID field inclusion
alembic/env.py Improved logging configuration with environment variable control and better handler inheritance

Copy link

@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: a1f00e1b6c

ℹ️ 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".

…refactor transfer logic for parallel execution
Copilot AI review requested due to automatic review settings January 30, 2026 23:51
Copy link
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

Copilot reviewed 18 out of 18 changed files in this pull request and generated no new comments.

Comments suppressed due to low confidence (1)

tests/test_waterlevelscontinuous_pressure_daily_legacy.py:2

  • The copyright year is set to 2026, which is in the future. This should be updated to the current year (2025 or earlier).
# Copyright 2026 ross

jirhiker and others added 2 commits January 31, 2026 11:16
# Conflicts:
#	db/nma_legacy.py
#	db/thing.py
#	transfers/minor_trace_chemistry_transfer.py
#	transfers/stratigraphy_legacy.py
#	transfers/transfer.py
Copilot AI review requested due to automatic review settings January 31, 2026 00:17
Copy link
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.

Copilot encountered an error and was unable to review this pull request. You can try again by re-requesting a review.

Copilot AI review requested due to automatic review settings January 31, 2026 01:20
Copy link
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

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

Copilot AI review requested due to automatic review settings January 31, 2026 02:49
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Copy link
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

Copilot reviewed 26 out of 26 changed files in this pull request and generated 2 comments.

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Copilot AI review requested due to automatic review settings January 31, 2026 02:51
Copy link
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

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

Copilot AI review requested due to automatic review settings January 31, 2026 02:54
Copy link
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

Copilot reviewed 26 out of 26 changed files in this pull request and generated no new comments.

@jirhiker jirhiker merged commit 89d13d1 into staging Jan 31, 2026
6 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.

2 participants