-
Notifications
You must be signed in to change notification settings - Fork 2
feat: add field parameters transfer and associated metrics handling #423
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
There was a problem hiding this 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 adds support for transferring field parameters data by introducing a new FieldParametersTransferer class and integrating it into the existing transfer pipeline with associated metrics tracking.
Changes:
- Added
transfer_field_parametersconfiguration option with environment variable support - Integrated field parameters transfer into both parallel and sequential transfer execution paths
- Added metrics handling for field parameters and NMA stratigraphy data
- Renamed "Stratigraphy" to "StratigraphyLegacy" for clarity in parallel transfer execution
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
| transfers/transfer.py | Added field parameters transfer configuration, import, and execution in both parallel and sequential paths; renamed stratigraphy label |
| transfers/metrics.py | Added metrics methods for field parameters and NMA stratigraphy with appropriate model imports |
There was a problem hiding this 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 46 out of 46 changed files in this pull request and generated 8 comments.
| from typing import Sequence, Union | ||
|
|
||
| from alembic import op |
Copilot
AI
Jan 23, 2026
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The migration file has removed imports for geoalchemy2, sqlalchemy, and sqlalchemy_utils. If these imports were removed because they're unused, this is good. However, verify that the migration still functions correctly without these dependencies.
There was a problem hiding this 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: 129668e75b
ℹ️ 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".
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
There was a problem hiding this 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 46 out of 46 changed files in this pull request and generated 3 comments.
| future = executor.submit( | ||
| _execute_transfer_with_timing, | ||
| "Stratigraphy", | ||
| "StratigraphyLegacy", |
Copilot
AI
Jan 23, 2026
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The display name "StratigraphyLegacy" is inconsistent with the actual transferer class name StratigraphyLegacyTransferer and doesn't match the pattern used elsewhere (e.g., "WaterLevelsPressureDaily" for NMA_WaterLevelsContinuous_Pressure_DailyTransferer). Consider using a name that better reflects the model being transferred, such as "NMA_Stratigraphy" to maintain consistency with other legacy table names.
chasetmartin
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
tests are passing now with a couple name fixes
Why
This PR addresses the following problem / context:
How
Implementation summary - the following was changed / added / removed:
Notes
Any special considerations, workarounds, or follow-up work to note?