Skip to content

Fix investment schema compatibility - #5

Open
marcomc wants to merge 12 commits into
mainfrom
feat/moneywiz-read-compatibility
Open

marcomc wants to merge 12 commits into
mainfrom
feat/moneywiz-read-compatibility

Conversation

@marcomc

@marcomc marcomc commented Sep 25, 2026 •

Copy link
Copy Markdown
Owner

Investment schema compatibility

Summary

  • Adapt investment compatibility to the shared SchemaProfile and SchemaProfileResolver introduced in upstream Refactor schema profiles and resolution ileodo/moneywiz-api#42.
  • Resolve holding and buy/sell column mappings separately, preserve custom baseline aliases and inherited field definitions, and reject ambiguous populated investment layouts.
  • Reject duplicate IDs and GIDs before changing manager indexes, and continue loading later valid rows.
  • Reject zero-rate transfer withdrawals whether their original amount is stored or reconstructed.
  • Report malformed rows through load_errors while preserving direct-accessor, callable-constructor, dynamic-tag and rounded-transfer compatibility.

Review context

This is the fork review PR for upstream ileodo#37. Both PRs use feat/moneywiz-read-compatibility and share its head. The fork's main is synchronized with upstream at c1815de, including ileodo#42.

Validation

  • Python 3.10, 3.11, 3.12, 3.13 and 3.14: 85 unit tests passed on each runtime.
  • Full pytest/doctest suite: 85 passed; 15 opt-in integration tests skipped with MONEYWIZ_TEST_DB_PATH unset. Database-backed unit tests use temporary synthetic SQLite stores.
  • Ruff lint and formatting, mypy src tests, README markdownlint, package build and wheel contents, and Git whitespace checks passed.
  • Independent local review passed on the complete candidate; committed content matches the validated snapshot.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Sep 25, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-14T19:31:21.334205Z ddfece8 Manual request
🔒 Security Review ✅ Completed 2026-09-25T16:46:00.390858Z 00b3233 Manual 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" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@marcomc

marcomc commented Sep 25, 2026

Copy link
Copy Markdown
Owner Author

@codex review

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

ℹ️ 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 src/moneywiz_api/model/schema_mapped_row.py Outdated
@marcomc

marcomc commented Sep 25, 2026

Copy link
Copy Markdown
Owner Author

@codex review

@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: 813a2d2b1b

ℹ️ 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 src/moneywiz_api/database_accessor.py Outdated
@marcomc

marcomc commented Sep 25, 2026

Copy link
Copy Markdown
Owner Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Swish!

Reviewed commit: 00b3233a5a

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

@marcomc

marcomc commented Sep 25, 2026

Copy link
Copy Markdown
Owner Author

@codex security review

@chatgpt-codex-connector

Copy link
Copy Markdown

🛡️ Codex Security Review

Security review completed. No security issues were found in this pull request.

Reviewed commit: 00b3233a5a

View security finding report

Only the user who started this review can view the report in Codex.

ℹ️ About Codex security reviews in GitHub

This is an experimental Codex feature. Security reviews are triggered when:

  • You comment "@codex security review"
  • A regular code review gets triggered (for example, "@codex review" or when a PR is opened), and you’re opted in so security review runs alongside code review

Once complete, Codex will leave suggestions, or a comment if no findings are found.

Reject zero-rate transfer reconstructions as recoverable parse failures, cover manager recovery, and format schema compatibility tests.
Model holding and transaction share columns independently and preserve canonical stored amounts for rounded transfers.
- Removed the schema_profile.py file and integrated its functionality into the schema module.
- Updated tests to utilize the new schema profile resolution approach.
- Enhanced investment profile creation logic to accommodate custom field mappings.
- Improved test coverage for ambiguous investment column scenarios and error handling.
- Adjusted database setup in tests to ensure proper schema detection and validation.
@marcomc
marcomc force-pushed the feat/moneywiz-read-compatibility branch from 3861a8c to c9a257d Compare October 14, 2026 19:10
@marcomc

marcomc commented Oct 14, 2026

Copy link
Copy Markdown
Owner Author

@codex review

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

ℹ️ 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 src/moneywiz_api/managers/record_manager.py Outdated
@marcomc

marcomc commented Oct 14, 2026

Copy link
Copy Markdown
Owner Author

@codex review

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

ℹ️ 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 src/moneywiz_api/model/transaction.py
@marcomc

marcomc commented Oct 14, 2026

Copy link
Copy Markdown
Owner Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Nice work!

Reviewed commit: ddfece8a3b

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

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.

1 participant