Skip to content

Comments

portfolio-trading-accounts upsert#584

Open
apawan wants to merge 1 commit intoinvestment-service/phase-2-data-models-ingestionfrom
investment-service/phase-2-data-models-ingestion-trading-account
Open

portfolio-trading-accounts upsert#584
apawan wants to merge 1 commit intoinvestment-service/phase-2-data-models-ingestionfrom
investment-service/phase-2-data-models-ingestion-trading-account

Conversation

@apawan
Copy link
Contributor

@apawan apawan commented Feb 20, 2026

Description

A few sentences describing the overall goals of the pull request's commits.

Checklist

  • I made sure, I read CONTRIBUTING.md to put right branch prefix as per my need.
  • I made sure to update CHANGELOG.md.
  • I made sure to update Stream Wiki(only valid in case of new stream module or architecture changes).
  • My changes are adequately tested.
  • I made sure all the SonarCloud Quality Gate are passed.

@apawan apawan requested a review from a team as a code owner February 20, 2026 07:07
@sonarqubecloud
Copy link

Quality Gate Failed Quality Gate failed

Failed conditions
0.0% Coverage on New Code (required ≥ 80%)

See analysis details on SonarQube Cloud

return Mono.just(existingAccount);
}

private void logPortfolioTradingAccountPatchError(String uuid, Throwable throwable) {
Copy link
Collaborator

Choose a reason for hiding this comment

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

Loging methods can be merged into one common

private List<PortfolioProduct> portfolioProducts;
private InvestmentAssetData investmentAssetData;
private List<PortfolioList> portfolios;
private List<InvestmentPortfolioAccount> investmentPortfolioAccounts;
Copy link
Collaborator

Choose a reason for hiding this comment

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

Do not overcomplicate the implementation.
The model is split into 2 separate properties and iterated over itself; it doesn't improve logic.
For trading accounts, you just have a simple model for insert/update, just do it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants