Skip to content

Conversation

@wscourge
Copy link
Contributor

@wscourge wscourge commented Dec 26, 2025

Deprecated Methods (with console warnings):

  • Customer.connectSubscriptions() - logs deprecation warning to console
  • Customer.disconnectSubscriptions() - logs deprecation warning to console

New Methods in Metrics.Customer:

  • connectSubscriptions(config, dataSourceUuid, customerUuid, data, callback)
  • disconnectSubscriptions(config, dataSourceUuid, customerUuid, data, callback)

@wscourge wscourge requested a review from Copilot December 26, 2025 10:35
Copy link

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 adds support for connecting and disconnecting customer subscriptions through the Metrics API, while deprecating the old Customer API methods for these operations.

  • Introduces new connectSubscriptions and disconnectSubscriptions methods under Metrics.Customer
  • Deprecates existing Customer.connectSubscriptions and Customer.disconnectSubscriptions methods 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.

Copy link

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

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.

@wscourge wscourge force-pushed the wiktor/ome-417-add-support-for-subscription-connections-via branch from 631c7af to c4bbc46 Compare December 29, 2025 11:08
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
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