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

Chore: Update description for get_subscriptions method #27

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

Conversation

rachael-t
Copy link

@rachael-t rachael-t commented Mar 21, 2024

Updates the description for the get_subscriptions method, as it's unclear that the method uses the ?mode=recipient query parameter, thus returning a list of active subscriptions that the specified object itself is subscribed to (not returning a list of recipients who are subscribed to that object, which is what the list_subscription method accomplishes).

@@ -453,8 +453,8 @@ def list_subscriptions(self, collection, id, options={}):

def get_subscriptions(self, collection, id, options={}):
"""
Returns subscriptions for an object as a recipient

Returns all of the active subscriptions that the specified object is subscribed to (not the subscribers of the object)

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
Returns all of the active subscriptions that the specified object is subscribed to (not the subscribers of the object)
Returns all of the active subscriptions for which the specified object is a recipient

I think maybe with this word-smithing, the "not the subscribers..." part could be left out? But no strong feelings about that part.

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.

None yet

2 participants