Skip to content

bugfix: increase length of LithologicModifier field to accommodate larger values#429

Merged
chasetmartin merged 7 commits into
stagingfrom
staging-misc
Jan 27, 2026
Merged

bugfix: increase length of LithologicModifier field to accommodate larger values#429
chasetmartin merged 7 commits into
stagingfrom
staging-misc

Conversation

@jirhiker

@jirhiker jirhiker commented Jan 24, 2026

Copy link
Copy Markdown
Member

Why

transfer was failing to transfer NMA_Stratigraphy because of inaccurate ORM/alembic definition

CRITI [transfers.logger] Parallel task StratigraphyLegacy failed: (pg8000.exceptions.DatabaseError) {'S': 'ERROR', 'V': 'ERROR', 'C': '22001', 'M': 'value too long for type character varying(100)', 'F': 'varchar.c', 'L': '640', 'R': 'varchar'}

Copilot AI review requested due to automatic review settings January 24, 2026 06:07

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

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 increases the maximum length of the LithologicModifier field from 100 to 250 characters to accommodate larger values in the NMA stratigraphy data model.

Changes:

  • Updated the LithologicModifier field length constraint from String(100) to String(250) in both the SQLAlchemy model and the Alembic migration

Reviewed changes

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

File Description
db/nma_legacy.py Updated the lithologic_modifier field's String type length from 100 to 250 in the NMA_Stratigraphy model
alembic/versions/1d2c3b4a5e67_create_nma_stratigraphy_table.py Updated the LithologicModifier column definition to use String(250) instead of String(100) in the table creation migration

@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.

Reviewed commit: ead4baf874

ℹ️ 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 alembic/versions/1d2c3b4a5e67_create_nma_stratigraphy_table.py Outdated
@jirhiker jirhiker requested a review from chasetmartin January 24, 2026 06:21
Copilot AI review requested due to automatic review settings January 24, 2026 09:03

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

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 3 out of 3 changed files in this pull request and generated 4 comments.

Comment thread db/nma_legacy.py
Comment thread db/nma_legacy.py
Comment thread db/nma_legacy.py
Comment thread transfers/waterlevels_transducer_transfer.py
@jirhiker jirhiker changed the title feat: increase length of LithologicModifier field to accommodate larger values bugfix: increase length of LithologicModifier field to accommodate larger values Jan 24, 2026
Copilot AI review requested due to automatic review settings January 24, 2026 12:14

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

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 4 out of 4 changed files in this pull request and generated 2 comments.

Comment thread AGENTS.MD Outdated
Comment thread alembic/versions/1d2c3b4a5e67_create_nma_stratigraphy_table.py
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Copilot AI review requested due to automatic review settings January 24, 2026 12:33

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

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 4 out of 4 changed files in this pull request and generated 3 comments.

Comment thread alembic/versions/1d2c3b4a5e67_create_nma_stratigraphy_table.py
Comment thread alembic/versions/1d2c3b4a5e67_create_nma_stratigraphy_table.py
Comment thread transfers/waterlevels_transducer_transfer.py Outdated
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Copilot AI review requested due to automatic review settings January 24, 2026 12:42

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

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 4 out of 4 changed files in this pull request and generated 1 comment.

Comment thread transfers/waterlevels_transducer_transfer.py

@chasetmartin chasetmartin left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Nice, looking forward to trying this in the transfer

We should continue updating an AGENTS.MD as needed, good to add it.

@chasetmartin chasetmartin merged commit 4d97cb9 into staging Jan 27, 2026
6 checks passed
@TylerAdamMartinez TylerAdamMartinez deleted the staging-misc branch February 26, 2026 18:25
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