Skip to content

feat(admin-api): add filters and fields to sales report#65

Merged
v0l merged 1 commit into
masterfrom
feat/sales-report-filters
Feb 22, 2026
Merged

feat(admin-api): add filters and fields to sales report#65
v0l merged 1 commit into
masterfrom
feat/sales-report-filters

Conversation

@v0l

@v0l v0l commented Feb 22, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Add region_id and host_id filter parameters to GET /api/admin/v1/reports/time-series
  • Include user_id, host_id, host_name, region_id, region_name in each payment record response
  • Use QueryBuilder for dynamic SQL query construction

This enables filtering sales data by specific VM host region or individual host, and provides additional context about where each sale originated.

Closes #64

@v0l
v0l force-pushed the feat/sales-report-filters branch from e9bb843 to aa30fe7 Compare February 22, 2026 22:00
Include user_id, host_id, host_name, region_id, region_name in each
payment record response for the time-series report endpoint. This
enables client-side filtering by user, host, or region.

Changes:
- Add user_id, host_id, host_name, region_id, region_name to response
- Update VmPaymentWithCompany model with new fields
- Update SQL query to select additional fields
- Update mock implementation
- Update API documentation and changelog

Closes #64
@v0l
v0l force-pushed the feat/sales-report-filters branch from aa30fe7 to a38291d Compare February 22, 2026 22:02
@v0l
v0l merged commit 721c8d1 into master Feb 22, 2026
1 check failed
@v0l
v0l deleted the feat/sales-report-filters branch February 22, 2026 22:06
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.

Additional sales report filters

1 participant