Skip to content

Financial API + ManagementUI [GBI-2537]#676

Closed
Dominikkq wants to merge 22 commits intoflyover-2.3.0from
feat-financial-summary
Closed

Financial API + ManagementUI [GBI-2537]#676
Dominikkq wants to merge 22 commits intoflyover-2.3.0from
feat-financial-summary

Conversation

@Dominikkq
Copy link
Copy Markdown
Collaborator

What
Added /report/summaries endpoint
Implemented date validation for query parameters
Added ListQuotesByDateRange functionality
Added SummariesUseCase to process and aggregate liquidity provider data
Added "Reports" card to Management UI with date selection and summary tables
Implemented test coverage with mocks for all new components

Task
GBI-2537

@Dominikkq Dominikkq requested a review from Copilot April 8, 2025 11:46
@github-actions
Copy link
Copy Markdown

github-actions bot commented Apr 8, 2025

Dependency Review

✅ No vulnerabilities or license issues or OpenSSF Scorecard issues found.

OpenSSF Scorecard

PackageVersionScoreDetails

Scanned Files

Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

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

Copilot reviewed 21 out of 24 changed files in this pull request and generated 1 comment.

Files not reviewed (3)
  • OpenApi.yml: Language not supported
  • internal/adapters/entrypoints/rest/assets/management.html: Language not supported
  • internal/adapters/entrypoints/rest/assets/static/management.css: Language not supported
Comments suppressed due to low confidence (1)

internal/usecases/liquidity_provider/summaries.go:211

  • [nitpick] Consider renaming 'quoteCopy' to a more descriptive name (e.g., 'currentQuote') and adding a comment to clarify that a copy is taken to avoid pointer aliasing issues.
quoteCopy := quotes[index]

Comment thread internal/adapters/entrypoints/rest/handlers/get_report_summaries.go Outdated
@Dominikkq Dominikkq marked this pull request as ready for review April 8, 2025 12:05
Copy link
Copy Markdown
Collaborator

@Luisfc68 Luisfc68 left a comment

Choose a reason for hiding this comment

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

The PR still needs multiple changes, there are functions with too much responsibility, the interface usage is not correct in multiple cases and the boundaries in the layers of the project are broken on some points

Comment thread internal/usecases/liquidity_provider/summaries.go Outdated
Comment thread internal/usecases/liquidity_provider/summaries.go Outdated
Comment thread internal/usecases/liquidity_provider/summaries.go Outdated
Comment thread internal/usecases/liquidity_provider/summaries.go Outdated
Comment thread internal/usecases/liquidity_provider/summaries.go Outdated
Comment thread internal/adapters/dataproviders/database/mongo/common.go Outdated
Comment thread internal/adapters/dataproviders/database/mongo/common.go Outdated
Comment thread internal/adapters/dataproviders/database/mongo/common.go Outdated
Comment thread internal/adapters/dataproviders/database/mongo/common.go Outdated
Comment thread internal/adapters/dataproviders/database/mongo/common.go Outdated
Dominikkq and others added 2 commits April 11, 2025 14:00
* feedback:SummaryData types

* feedback:Rename SummariesResponse & move interfaces to common

* feedback:isAcceptedPegin/isAcceptedPegout

* feedback:QuoteHashToIndex

* feedback:Remove unnecessary mocks

* feedback:improve summaries.go

* feedback:Common & GetReportSummaries

* feedback:Common.go

* feedback:QuoteHashProvider

* feedback:cleanup

* feedback:Remove PegoutQuoteResult/PeginQuoteResult

* feedback:mock cleanup

* feedback:update isPegoutRefundedQuote

* feedback:cleanup
@Dominikkq Dominikkq requested a review from Luisfc68 April 11, 2025 13:13
Copy link
Copy Markdown
Collaborator

@Luisfc68 Luisfc68 left a comment

Choose a reason for hiding this comment

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

We used this PR to start making synchronous code reviews, the comments added were the ones discussed during the meeting, they might not reflect all the final comments

Comment thread OpenApi.yml Outdated
Comment thread internal/adapters/entrypoints/rest/handlers/get_report_summaries.go Outdated
Comment thread internal/usecases/liquidity_provider/summaries.go Outdated
Comment thread internal/usecases/liquidity_provider/summaries.go Outdated
Comment thread internal/adapters/dataproviders/database/mongo/pegin.go Outdated
@Dominikkq Dominikkq requested a review from Luisfc68 April 25, 2025 12:06
Comment thread internal/usecases/liquidity_provider/summaries.go Outdated
Comment thread internal/usecases/liquidity_provider/summaries.go Outdated
Comment thread internal/usecases/liquidity_provider/summaries.go
Comment thread internal/usecases/liquidity_provider/summaries.go Outdated
Comment thread internal/usecases/liquidity_provider/summaries.go
Comment thread internal/entities/quote/pegin_quote.go Outdated
Comment thread internal/entities/quote/pegout_quote.go Outdated
Comment thread internal/adapters/dataproviders/database/mongo/pegin.go Outdated
Comment thread internal/adapters/dataproviders/database/mongo/pegout.go
Comment thread pkg/liquidity_provider.go
@Dominikkq Dominikkq requested a review from Luisfc68 May 27, 2025 12:53
Comment thread internal/usecases/liquidity_provider/summaries.go Outdated
Comment thread internal/usecases/liquidity_provider/summaries.go Outdated
Comment thread internal/usecases/liquidity_provider/summaries.go Outdated
Comment thread internal/usecases/liquidity_provider/summaries.go
Comment thread internal/adapters/dataproviders/database/mongo/pegin.go Outdated
Comment thread internal/adapters/dataproviders/database/mongo/pegin.go Outdated
Comment thread internal/adapters/dataproviders/database/mongo/pegout.go
Comment thread internal/usecases/liquidity_provider/summaries.go
@Dominikkq Dominikkq closed this Jun 5, 2025
@Luisfc68 Luisfc68 deleted the feat-financial-summary branch August 21, 2025 13:26
@Luisfc68 Luisfc68 restored the feat-financial-summary branch August 21, 2025 13:26
@Luisfc68 Luisfc68 deleted the feat-financial-summary branch August 21, 2025 13:26
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.

4 participants