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

feat: paid subscriptions system and articles #467

Merged
merged 100 commits into from
Mar 19, 2025
Merged

feat: paid subscriptions system and articles #467

merged 100 commits into from
Mar 19, 2025

Conversation

DioFun
Copy link
Member

@DioFun DioFun commented Jul 4, 2024

Le but est d'avoir un suivi et des correctifs aux fur et à mesure pour le moment quant au système d'abonnement payant.
Développement de la gestion des articles et abonnements payants.
La gestion des remboursements sera effectuée dans une autre PR

links to #455

DioFun and others added 7 commits June 20, 2024 19:00

Unverified

This commit is not signed, but one or more authors requires that any commit attributed to them is signed.

Unverified

This commit is not signed, but one or more authors requires that any commit attributed to them is signed.
Co-authored-by: DioFun <[email protected]>
Co-authored-by: Nymous <[email protected]>

Unverified

This commit is not signed, but one or more authors requires that any commit attributed to them is signed.
todo: fix tests

Unverified

This commit is not signed, but one or more authors requires that any commit attributed to them is signed.
…le table

Unverified

This commit is not signed, but one or more authors requires that any commit attributed to them is signed.

Unverified

This commit is not signed, but one or more authors requires that any commit attributed to them is signed.

Unverified

This commit is not signed, but one or more authors requires that any commit attributed to them is signed.
@nymous nymous marked this pull request as draft July 4, 2024 18:11
DioFun added 5 commits July 4, 2024 21:29

Unverified

This commit is not signed, but one or more authors requires that any commit attributed to them is signed.

Unverified

This commit is not signed, but one or more authors requires that any commit attributed to them is signed.

Unverified

This commit is not signed, but one or more authors requires that any commit attributed to them is signed.

Unverified

This commit is not signed, but one or more authors requires that any commit attributed to them is signed.

Unverified

This commit is not signed, but one or more authors requires that any commit attributed to them is signed.
Copy link

codecov bot commented Jul 5, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 100.00%. Comparing base (01e1374) to head (2fb6b5a).
Report is 2 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##            master      #467    +/-   ##
==========================================
  Coverage   100.00%   100.00%            
==========================================
  Files           26        48    +22     
  Lines          337       670   +333     
  Branches        35        53    +18     
==========================================
+ Hits           337       670   +333     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

DioFun and others added 9 commits July 5, 2024 11:29

Unverified

This commit is not signed, but one or more authors requires that any commit attributed to them is signed.

Unverified

This commit is not signed, but one or more authors requires that any commit attributed to them is signed.

Unverified

This commit is not signed, but one or more authors requires that any commit attributed to them is signed.

Unverified

This commit is not signed, but one or more authors requires that any commit attributed to them is signed.

Unverified

This commit is not signed, but one or more authors requires that any commit attributed to them is signed.

Unverified

This commit is not signed, but one or more authors requires that any commit attributed to them is signed.

Unverified

This commit is not signed, but one or more authors requires that any commit attributed to them is signed.

Unverified

This commit is not signed, but one or more authors requires that any commit attributed to them is signed.
@DioFun DioFun self-assigned this Jul 5, 2024
D0gmaDev and others added 2 commits July 7, 2024 17:41

Unverified

This commit is not signed, but one or more authors requires that any commit attributed to them is signed.
@DioFun DioFun requested a review from nymous July 8, 2024 22:38
DioFun added 3 commits July 9, 2024 00:40

Unverified

This commit is not signed, but one or more authors requires that any commit attributed to them is signed.
…commit

Unverified

This commit is not signed, but one or more authors requires that any commit attributed to them is signed.

Unverified

This commit is not signed, but one or more authors requires that any commit attributed to them is signed.
nymous added 10 commits January 19, 2025 18:26
When using create_join_table, Rails doesn't know how to destroy the
association because there is no primary key. Moving the `dependent:
:destroy` to the `has_many: :through` relation works but might feel
weird (it looks like it will delete the articles when we delete a sale,
but it only deletes the join records). Adding a composite primary key
spanning both references in the join column works better and is
semantically more precise (we only ever have one couple of
sale<->article).

This commit also squashes some migrations from this pull request, like
giving the correct name to columns from the start.
nymous added 15 commits March 9, 2025 23:49
Ruby 3.1 will be EOL at the end of March 2025. Once this branch is
merged we will upgrade all dependencies, but for now we need to ignore
it temporarily.
…ffer, Sales and Dashboard
This helps surface the fact that articles, subscription offers and
payment methods should only be created, not updated once they have been
used.
Also adds a tab in coverage HTML export to track which files have a
:nocov: comment, to avoid overuse.
Because we want to precisely control the invoices ID, removing the
Rails default auto-increment on the column ensure that if we forget to
set an explicit ID, the database will complain.
Copy link
Member

@nymous nymous left a comment

Choose a reason for hiding this comment

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

FINALLY

@nymous nymous changed the title wip: paid subscriptions system and articles feat: paid subscriptions system and articles Mar 19, 2025
@nymous nymous merged commit a636755 into master Mar 19, 2025
7 checks passed
@nymous nymous deleted the subscriptions branch March 19, 2025 18:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

Subscription management modelisation
5 participants