Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Review and update Total messages chart on dashboard and usage.html with new data from backend #1543

Open
Tracked by #1427
heyitsmebev opened this issue Jan 23, 2025 · 1 comment
Assignees

Comments

@heyitsmebev
Copy link
Contributor

heyitsmebev commented Jan 23, 2025

This needs to be updated with the new data points from the backend. One is for messages and the second is for allowance limit.

Image

This chart is currently pulling data from this def:
def service_dashboard(service_id):

ken provided the endpoint: service_api_client, get-service-message-ratio

@heyitsmebev heyitsmebev self-assigned this Jan 23, 2025
@heyitsmebev heyitsmebev changed the title Review and update Total messages chart on dashboard with new data from backend Review and update Total messages chart on dashboard and usage.html with new data from backend Jan 23, 2025
@heyitsmebev
Copy link
Contributor Author

heyitsmebev commented Jan 23, 2025

Note:
Do we still need usage.html page? If not, we can remove def usage(service_id): and usage.html

look into get_annual_usage_breakdown
get_usage_breakdown_by_type
@main.route("/organizations/uuid:org_id
anything with this page? http://localhost:6012/platform-admin/reports/usage-for-all-services
class BillingAPIClient(NotifyAdminAPIClient):
def get_services_and_usage(self, org_id, year):

Look into it being removed from tour pages

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