-
Notifications
You must be signed in to change notification settings - Fork 87
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
feat: delete event handling plugins #2047
base: feat.move-event-handling-to-core-sdk-2823-final
Are you sure you want to change the base?
feat: delete event handling plugins #2047
Conversation
📝 WalkthroughWalkthroughThis pull request restructures various import paths and method signatures across multiple modules. Notably, the retry queue and schedule modules have been refactored with updated type imports and simplified method signatures. Several files, tests, and type definitions related to the BeaconQueue and XhrQueue functionality have been removed. Changes also include adjustments to configuration, bundle size limits, and browser capability detection (removing Beacon API checks). Overall, the modifications streamline the codebase, remove deprecated plugins and types, and adjust lifecycle and testing assertions. Changes
Sequence Diagram(s)sequenceDiagram
participant Caller
participant RetryQueue
Caller->>RetryQueue: Call requeue(queueItem)
Note right of RetryQueue: Processes queueItem using updated signature (without error parameter)
RetryQueue-->>Caller: Returns updated queue state
sequenceDiagram
participant Analytics
participant PluginsManager
Analytics->>Analytics: Initialize (configured state)
Analytics->>PluginsManager: Load plugins
PluginsManager-->>Analytics: Plugins loaded (status updated to readyExecuted)
Analytics->>Analytics: Invoke lifecycle methods (onPluginsReady, onInitialized, loadDestinations, onDestinationsReady, onReady)
Suggested reviewers
✨ Finishing Touches
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## feat.move-event-handling-to-core-sdk-2823-final #2047 +/- ##
===================================================================================
+ Coverage 61.41% 61.43% +0.01%
===================================================================================
Files 478 470 -8
Lines 16404 16193 -211
Branches 3240 3231 -9
===================================================================================
- Hits 10075 9948 -127
+ Misses 5095 5011 -84
Partials 1234 1234 ☔ View full report in Codecov by Sentry. |
size-limit report 📦
|
c659777
to
e1a7a12
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These tests are temporarily skipped to avoid failing the test cases. Once we build the events delivery functionality in the core SDK, we'll un-skip them again.
|
@coderabbitai review |
✅ Actions performedReview triggered.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to my eyes 👀
PR Description
I've removed the existing data plane events handling plugins
XhrQueue
andBeaconQueue
and all their references throughout the code.The
RetryQueue
module is moved to thecommon
package as now it'll be utilized in more than one packages (core and plugins).Linear task (optional)
https://linear.app/rudderstack/issue/SDK-2823/move-dataplane-events-dispatch-functionality-to-core-sdk
Cross Browser Tests
Please confirm you have tested for the following browsers:
Sanity Suite
Security
Summary by CodeRabbit
Refactor
Chores
Tests
Bundle Improvements
These improvements lay a solid foundation for future enhancements without altering end-user functionality.