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

fix: subscriptions historical filtering #1674

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

EnriqueL8
Copy link
Contributor

@EnriqueL8 EnriqueL8 commented Apr 1, 2025

Proposed changes

The subscriptions/<id>/events API is really useful to find all the events that match your subscription.

Unfortunately there was an assumption made in the code when filtering for historical events that the subscription wouldn't have a protocol. Subscriptions always have a protocol. It then set it to Websocket but there are some options that are valid for Webhooks and not Websocket so the validation would fail.

There is no need to set a default protocol, just use the one given.


Types of changes

  • Bug fix
  • New feature added
  • Documentation Update

Please make sure to follow these points

  • I have read the contributing guidelines.
  • I have performed a self-review of my own code or work.
  • I have commented my code, particularly in hard-to-understand areas.
  • My changes generates no new warnings.
  • I have added tests that prove my fix is effective or that my feature works.
  • My changes have sufficient code coverage (unit, integration, e2e tests).

- a subscription always has a transport

Signed-off-by: Enrique Lacal <[email protected]>
@EnriqueL8 EnriqueL8 requested a review from a team as a code owner April 1, 2025 10:23
Copy link

codecov bot commented Apr 1, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 99.95%. Comparing base (3e30421) to head (a8a314f).
Report is 2 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1674      +/-   ##
==========================================
- Coverage   99.95%   99.95%   -0.01%     
==========================================
  Files         339      339              
  Lines       29782    29780       -2     
==========================================
- Hits        29770    29768       -2     
  Misses          8        8              
  Partials        4        4              

☔ 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.

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.

1 participant