-
Notifications
You must be signed in to change notification settings - Fork 13
Add new subscriptions list, connect and disconnect #121
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
base: main
Are you sure you want to change the base?
Add new subscriptions list, connect and disconnect #121
Conversation
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.
Pull request overview
This PR adds support for connecting and disconnecting customer subscriptions through the Metrics API, while deprecating the old Customer API methods for these operations.
- Introduces new
connectSubscriptionsanddisconnectSubscriptionsmethods underMetrics.Customer - Deprecates existing
Customer.connectSubscriptionsandCustomer.disconnectSubscriptionsmethods with deprecation warnings - Updates documentation to reflect the new recommended API usage
Reviewed changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated 2 comments.
| File | Description |
|---|---|
| lib/chartmogul/metrics/customer.js | Adds new connectSubscriptions and disconnectSubscriptions methods to Metrics.Customer |
| lib/chartmogul/customer.js | Wraps existing methods with deprecation warnings directing users to the new Metrics API |
| test/chartmogul/metrics/index.js | Adds test cases for the new connect and disconnect subscription methods |
| README.md | Updates documentation with deprecation notices and new Metrics API usage examples |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
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.
Pull request overview
Copilot reviewed 4 out of 4 changed files in this pull request and generated 2 comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
631c7af to
c4bbc46
Compare
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Deprecated Methods (with console warnings):
Customer.connectSubscriptions()- logs deprecation warning to consoleCustomer.disconnectSubscriptions()- logs deprecation warning to consoleNew Methods in
Metrics.Customer:connectSubscriptions(config, dataSourceUuid, customerUuid, data, callback)disconnectSubscriptions(config, dataSourceUuid, customerUuid, data, callback)