solidusio / solidusio/solidus_subscriptions
Add option to skip some items on a subscription
Nobody has claimed this yet.
- Dominant language
- Ruby
- Stars
- 49
- Forks
- 53
- Avg merge
- 4h 54m
- Merged PRs (30d)
- 1
Description
There are some use cases where, on a subscription, users may need to skip the delivery of some items. This may happen e.g., when a subscription contains items consumed with different frequencies, causing some to stockpile.
Adding an option to skip some items from the next shipment would solve this problem.
For additional context, one possible way to solve this at the moment is by updating the actionable_date on the SubscriptionLineItem model. Then, when processing the subscription, one would only charge the user for the items whose actionable date is equal to or before the current date.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reading the SubscriptionLineItem model and the subscription-processing path, focusing on how actionable_date controls which items are charged. Clarify the intended user-facing option and its behavior for the next shipment; the work is done when selected items can be skipped without being charged and the behavior is covered by tests.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- ruby
- Domain
- backend
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100