Skip to content

feat: Add support for Events:Test triggers, deliveries, redeliver and stats#1288

Merged
duedares-rvj merged 11 commits intomainfrom
DXCDT-814/events_extension
Sep 9, 2025
Merged

feat: Add support for Events:Test triggers, deliveries, redeliver and stats#1288
duedares-rvj merged 11 commits intomainfrom
DXCDT-814/events_extension

Conversation

@duedares-rvj
Copy link
Copy Markdown
Member

@duedares-rvj duedares-rvj commented Jul 30, 2025

This PR introduces a comprehensive set of commands under the auth0 events namespace to empower developers and operators with deeper visibility and control over Auth0 Event Streams.

🔧 Changes

New capabilities include:

  1. Trigger test events - auth0 event-streams test
  2. List and inspect individual deliveries auth0 event-streams deliveries ls and auth0 event-streams deliveries show
  3. Re-deliver failed events auth0 event-streams redeliver and auth0 event-streams redeliver-many
  4. View delivery statistics over time auth0 event-streams stats

These additions enable better observability, debugging, and validation of event stream integrations.

📚 References

https://auth0.com/docs/customize/events

🔬 Testing

📝 Checklist

  • All new/changed/fixed functionality is covered by tests (or N/A)
  • I have added documentation for all new/changed functionality (or N/A)

@duedares-rvj duedares-rvj requested a review from a team as a code owner July 30, 2025 09:25
@duedares-rvj duedares-rvj self-assigned this Jul 30, 2025
Comment thread go.mod Outdated
@kushalshit27 kushalshit27 requested a review from Copilot August 1, 2025 10:35
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.

Pull Request Overview

This PR introduces comprehensive event management capabilities for Auth0 Event Streams, enabling developers to trigger test events, monitor deliveries, retry failed deliveries, and view statistics through new CLI commands.

  • Adds test event triggering functionality with custom payload support
  • Implements delivery inspection commands for monitoring and debugging event stream deliveries
  • Provides bulk and individual redelivery options for failed events
  • Introduces statistics viewing capabilities with customizable date ranges

Reviewed Changes

Copilot reviewed 19 out of 20 changed files in this pull request and generated 6 comments.

Show a summary per file
File Description
internal/display/event_streams.go Adds comprehensive display components for event deliveries, statistics, and delivery attempts with interactive prompts
internal/cli/event_streams.go Implements new CLI commands for triggering, monitoring, redelivering events and viewing statistics
internal/cli/utils_shared.go Adds flexible date parsing utility for user-friendly date input formats
internal/auth0/event_streams.go Extends EventStreamAPI interface with new methods for testing, deliveries, and statistics
internal/auth0/mock/event_streams_mock.go Updates mock implementation to support new API methods
go.mod Updates go-auth0 dependency to support new event stream features
docs/* Adds comprehensive documentation for all new commands and updates existing command references

Comment thread internal/cli/event_streams.go Outdated
Comment thread internal/cli/event_streams.go Outdated
Comment thread internal/cli/event_streams.go Outdated
Comment thread internal/cli/event_streams.go Outdated
Comment thread internal/display/event_streams.go
Comment thread internal/display/event_streams.go Outdated
@codecov-commenter
Copy link
Copy Markdown

codecov-commenter commented Aug 5, 2025

Codecov Report

❌ Patch coverage is 24.19562% with 589 lines in your changes missing coverage. Please review.
✅ Project coverage is 63.49%. Comparing base (74f8b29) to head (f1f350a).
⚠️ Report is 11 commits behind head on main.

Files with missing lines Patch % Lines
internal/display/event_streams.go 0.32% 306 Missing ⚠️
internal/cli/event_streams.go 42.50% 243 Missing and 10 partials ⚠️
internal/cli/utils_shared.go 0.00% 30 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1288      +/-   ##
==========================================
- Coverage   64.49%   63.49%   -1.00%     
==========================================
  Files         108      108              
  Lines       17090    17871     +781     
==========================================
+ Hits        11022    11347     +325     
- Misses       5359     5784     +425     
- Partials      709      740      +31     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@duedares-rvj duedares-rvj force-pushed the DXCDT-814/events_extension branch from 611e6be to 55e3ee5 Compare September 9, 2025 15:40
@duedares-rvj duedares-rvj merged commit 1145a44 into main Sep 9, 2025
8 checks passed
@duedares-rvj duedares-rvj deleted the DXCDT-814/events_extension branch September 9, 2025 17: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