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

add pending stats to daily stats endpoint #1493

Open
wants to merge 26 commits into
base: main
Choose a base branch
from

Conversation

heyitsmebev
Copy link
Contributor

@heyitsmebev heyitsmebev commented Dec 20, 2024

endpoints to update:
get_service_notification_statistics_by_day
get_user_service_notification_statistics_by_day

The purpose of this ticket is to update the dashboard UI to display the number of pending statuses, similar to the job page, where delivery statuses for pending, delivered, and failed messages are shown.

These numbers should align with those provided by AWS and remain consistent between job statuses and notification statuses.

  • Notification status can be null. In such cases, handle these entries by treating them as "pending."

  • Query unique jobs and their associated notification counts. Join this data with the notifications table using job_id and perform a grouped sum for all notifications within each unique job. Finally, use a nested query to calculate the total sum across all jobs.

UI dashboard
image

Delivery status
image

@heyitsmebev heyitsmebev marked this pull request as draft December 20, 2024 01:53
Signed-off-by: Cliff Hill <[email protected]>
Signed-off-by: Cliff Hill <[email protected]>
@heyitsmebev heyitsmebev marked this pull request as ready for review January 13, 2025 22:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: 👀 In review
Development

Successfully merging this pull request may close these issues.

Add pending message data to daily and user_daily stats
2 participants