Implement Stellar Route Insights Exporter#672
Merged
mijinummi merged 2 commits intoJun 27, 2026
Merged
Conversation
- Add multi-format export functionality for Stellar route analytics - Support CSV and JSON export formats with configurable options - Integrate route metrics with recommendation engine scoring - Implement filtering by date range, chain, bridge, and token - Add sync/async export support with row limits - Create REST API endpoints for export, download, and listing - Include comprehensive unit tests and error handling
|
@Just-Bamford Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits. You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀 |
Collaborator
|
Hi @, kindly run build this fix this ci failures. Thanks |
… casting - Fix import paths in analytics-record.interface.ts and export-options.interface.ts - Fix import paths in csv-builder.util.ts - Add type casting to support AnalyticsRecord to Record conversion - All build checks now passing
2 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
This PR implements the Stellar Route Insights Exporter feature, enabling external consumption of route analytics and AI-generated recommendation insights.
this pr Closes #524
Problem Statement
Analytics data cannot be consumed externally. Users need a way to export route metrics and recommendation insights in portable formats for analysis, reporting, and integration with external systems.
Solution
Created a comprehensive export system that:
Implementation Details
New Files
apps/api/src/exporters/routes/stellar/route-insights-exporter.module.ts- NestJS module definitionapps/api/src/exporters/routes/stellar/route-insights-exporter.service.ts- Core business logic with recommendation scoringapps/api/src/exporters/stellar/route-insights-exporter.controller.ts- REST API endpointsapps/api/src/exporters/routes/stellar/dto/route-insights-export.dto.ts- Request/response DTOsapps/api/src/exporters/routes/stellar/route-insights-exporter.service.spec.ts- Unit testsModified Files
apps/api/src/app.module.ts- Registered RouteInsightsExporterModuleFeatures
Export Formats
Route Metrics Exported
Recommendation Insights
Filtering Options
API Endpoints
POST /exporters/routes/stellar/export- Generate export (CSV/JSON)GET /exporters/routes/stellar/download/{exportId}- Download generated exportGET /exporters/routes/stellar/exports- List user's recent exportsTechnical Details
Sync/Async Processing
Integrations
StellarAnalyticsServicefor route metricsBridgeRecommendationEnginefor scoringCsvBuilderUtilfor format generationBridgeAnalyticsrepositoryError Handling
BadRequestException: Dataset too large for sync export, invalid date rangeNotFoundException: No routes found matching criteriaTesting
Acceptance Criteria Met
API Usage Example