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 Api Subscription Permitted LineItem Attributes #223

Merged

Conversation

cesartalves
Copy link
Contributor

This removes a filter on the api SubscriptionsController that made it impossible to add a subscribable_id to the nested line_item_attributes (effectively prohibiting the creation of LineItems on the creation of a Subscription.

This allows the api to be more flexible but still allows users to limit certain operations by customizing the config.subscription_line_item_attributes

This removes a filter on the api SubscriptionsController that made it impossible to add a subscribable_id to the nested line_item_attributes (effectively prohibiting the creation of LineItems on the creation of a Subscription.

This allows the api to be more flexible but still allows users to limit certain operations by customizing the config.subscription_line_item_attributes
Copy link
Member

@kennyadsl kennyadsl left a comment

Choose a reason for hiding this comment

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

Really can't see any reason to have attributes different in the API and in frontend/backend. 👍

@kennyadsl kennyadsl requested a review from aldesantis April 16, 2021 14:53
@cesartalves cesartalves marked this pull request as ready for review April 16, 2021 15:00
@cesartalves cesartalves merged commit 4d758f5 into master Apr 19, 2021
@cesartalves cesartalves deleted the fix-subscriptions-permitted-line-item-attributes branch April 19, 2021 15:40
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.

Why do we remove :subscribable_id from the permitted attributes when creating a Subscription?
2 participants