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

Add information about the end date of plan into Order #77

Merged

Conversation

PetrDlouhy
Copy link
Collaborator

This PR is not ready yet. In current state it is meant to be basis for further discussion.

In my project, I would need to redistribute money from users paying for the subscription plans to the creators of content. The current state of django-plans model is quite insufficient for this. It doesn't capture complete log of plans usage (from when to when was the Order used extend Plan.

This PR is my attempt to extend the model to be able to capture this. Please, comment if you think that this is in the right direction, or what would you recommend. I am not sure if it would work properly if there is a change of plan in middle the extension time.

@Alir3z4
Copy link
Collaborator

Alir3z4 commented Aug 10, 2018

First and foremost, django-plans doesn't support subscription plans yet #64

Will your work include that as well ?

@PetrDlouhy
Copy link
Collaborator Author

@Alir3z4 No, I meant the plan order by subscription. This only enables tracking of history of plan renewals in current logic.

@PetrDlouhy PetrDlouhy force-pushed the feature/order_usage_history branch 2 times, most recently from 5fdecd1 to 76b52eb Compare September 1, 2018 16:00
@PetrDlouhy PetrDlouhy changed the title (WIP) add information about the end date of plan into Order Add information about the end date of plan into Order Sep 9, 2018
@PetrDlouhy
Copy link
Collaborator Author

I think this is more or less complete, although it would need some review. I am removing the Work in progress status.

@PetrDlouhy PetrDlouhy force-pushed the feature/order_usage_history branch 2 times, most recently from 2530163 to 5ce643e Compare October 10, 2018 07:01
@PetrDlouhy
Copy link
Collaborator Author

@Alir3z4 I added Changelog record and fixed the help_text problem requested in #82

Note: the migration would clash with migrations in #80 and #79, so I will need to rename the other migrations when one of these PRs get pulled.

@codecov-io
Copy link

Codecov Report

Merging #77 into master will decrease coverage by 0.1%.
The diff coverage is 60%.

Impacted file tree graph

@@            Coverage Diff            @@
##           master     #77      +/-   ##
=========================================
- Coverage    76.9%   76.8%   -0.11%     
=========================================
  Files          29      30       +1     
  Lines        1667    1677      +10     
=========================================
+ Hits         1282    1288       +6     
- Misses        385     389       +4
Impacted Files Coverage Δ
plans/admin.py 76% <ø> (ø) ⬆️
plans/migrations/0002_auto_20180901_1744.py 100% <100%> (ø)
plans/models.py 82.06% <33.33%> (-0.69%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update a813201...1ed9296. Read the comment docs.

@PetrDlouhy PetrDlouhy force-pushed the feature/order_usage_history branch from 1ed9296 to b9ef711 Compare October 22, 2018 12:56
@Alir3z4 Alir3z4 merged commit cc97cce into django-getpaid:master Nov 4, 2018
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.

3 participants