Skip to content

Add notional value to opportunity models#562

Merged
danimhr merged 2 commits intomainfrom
feat/analytics-opporunity-usd-value
May 28, 2025
Merged

Add notional value to opportunity models#562
danimhr merged 2 commits intomainfrom
feat/analytics-opporunity-usd-value

Conversation

@danimhr
Copy link
Contributor

@danimhr danimhr commented May 28, 2025

This PR aims to add notional value to opportunities

@vercel
Copy link

vercel bot commented May 28, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

1 Skipped Deployment
Name Status Preview Comments Updated (UTC)
swap-staging ⬜️ Ignored (Inspect) Visit Preview May 28, 2025 10:42am

),
skip_all
)]
async fn add_opportunity(
Copy link
Contributor

Choose a reason for hiding this comment

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

any particular reason to move this logic out of this function?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This trait should be isolated to work only with the analytics type. It shouldn’t be aware of the Opportunity type. The repository layer should handle any conversions between different data sources, such as analytics and Postgres. Traits in models should only accept and operate on the types they are explicitly designed to handle.

@danimhr danimhr merged commit 1841778 into main May 28, 2025
3 checks passed
@danimhr danimhr deleted the feat/analytics-opporunity-usd-value branch May 28, 2025 10:43
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.

2 participants