Skip to content
This repository was archived by the owner on Jul 27, 2025. It is now read-only.

Enhance security information retrieval and handling#1826

Merged
Shpigford merged 10 commits intomainfrom
mic-code-optimizations
Feb 11, 2025
Merged

Enhance security information retrieval and handling#1826
Shpigford merged 10 commits intomainfrom
mic-code-optimizations

Conversation

@Shpigford
Copy link
Member

@Shpigford Shpigford commented Feb 7, 2025

  • Add support for operating MIC codes in security info fetching
  • Update security uniqueness validation to handle unknown securities
  • Improve security creation and update logic in Plaid investment sync
  • Update combobox and view components to handle operating MIC codes
  • Add unknown flag for securities with incomplete information

Todo:

  • Skip price syncing if unknown = true
  • Figure out proper migration/cleanup of duplicated ticker data in production

- Add support for operating MIC codes in security info fetching
- Update security uniqueness validation to handle unknown securities
- Improve security creation and update logic in Plaid investment sync
- Update combobox and view components to handle operating MIC codes
- Add unknown flag for securities with incomplete information
@Shpigford Shpigford requested a review from zachgoll February 7, 2025 16:24
@Shpigford
Copy link
Member Author

@zachgoll There's a LOT happening here...definitely got more complex the deeper I dove into addressing the issue. So if something glaring jumps out at you on simplifying this, let me know.

@Shpigford
Copy link
Member Author

@zachgoll This is ready for another look.

Two big things that definitely need a closer eye:

  1. The deduplication rake tasks
  2. Failing tests

- Modify PlaidInvestmentSync to return plaid_security for USD cash
- Add non-null constraint to Securities ticker column
- Update Securities fixture to use exchange_operating_mic instead of exchange_mic
Signed-off-by: Josh Pigford <josh@joshpigford.com>
@Shpigford Shpigford marked this pull request as ready for review February 11, 2025 16:27
@Shpigford Shpigford merged commit 68d7cb5 into main Feb 11, 2025
5 checks passed
@Shpigford Shpigford deleted the mic-code-optimizations branch February 11, 2025 16:40
pranav7 pushed a commit to pranav7/maybe that referenced this pull request Mar 2, 2025
* Enhance security information retrieval and handling

- Add support for operating MIC codes in security info fetching
- Update security uniqueness validation to handle unknown securities
- Improve security creation and update logic in Plaid investment sync
- Update combobox and view components to handle operating MIC codes
- Add unknown flag for securities with incomplete information

* Update schema.rb

* Refactor the need for mic codes

* Don't fetch prices unless a security has the necessary mic code

* Deduplication

* Lint

* Update Securities and Plaid Investment Sync

- Modify PlaidInvestmentSync to return plaid_security for USD cash
- Add non-null constraint to Securities ticker column
- Update Securities fixture to use exchange_operating_mic instead of exchange_mic

---------

Signed-off-by: Josh Pigford <josh@joshpigford.com>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants