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(versioning): limit returned number of versions by plan #4433

Merged
merged 32 commits into from
Oct 28, 2024

Conversation

matthewelwell
Copy link
Contributor

@matthewelwell matthewelwell commented Jul 31, 2024

Changes

This PR primarily sets out to implement a limit on the number of versions returned for a given subscription plan. As part of the discussions related to this functionality, however, I have implemented (in this same PR) a similar limit on the audit log records.

Some things we'll need to do outside of the deployment of this:

  1. Add the limit information to the metadata for the relevant plans

How did you test this code?

Added / updated unit tests.

Copy link

vercel bot commented Jul 31, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Oct 28, 2024 0:23am
flagsmith-frontend-preview ✅ Ready (Inspect) Visit Preview 💬 Add feedback Oct 28, 2024 0:23am
flagsmith-frontend-staging ✅ Ready (Inspect) Visit Preview 💬 Add feedback Oct 28, 2024 0:23am

@github-actions github-actions bot added api Issue related to the REST API feature New feature or request labels Jul 31, 2024
Copy link
Contributor

github-actions bot commented Jul 31, 2024

Docker builds report

Image Build Status Security report
ghcr.io/flagsmith/flagsmith-api-test:pr-4433 Finished ✅ Skipped
ghcr.io/flagsmith/flagsmith-e2e:pr-4433 Finished ✅ Skipped
ghcr.io/flagsmith/flagsmith-frontend:pr-4433 Finished ✅ Results
ghcr.io/flagsmith/flagsmith-api:pr-4433 Finished ✅ Results
ghcr.io/flagsmith/flagsmith:pr-4433 Finished ✅ Results
ghcr.io/flagsmith/flagsmith-private-cloud:pr-4433 Finished ✅ Results

Copy link
Contributor

github-actions bot commented Jul 31, 2024

Uffizzi Preview deployment-54847 was deleted.

Copy link

codecov bot commented Jul 31, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 97.29%. Comparing base (7a6b2e0) to head (422e5df).
Report is 11 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #4433      +/-   ##
==========================================
+ Coverage   97.22%   97.29%   +0.07%     
==========================================
  Files        1172     1173       +1     
  Lines       40537    40799     +262     
==========================================
+ Hits        39411    39697     +286     
+ Misses       1126     1102      -24     

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

@matthewelwell matthewelwell marked this pull request as ready for review July 31, 2024 12:02
@matthewelwell matthewelwell requested a review from a team as a code owner July 31, 2024 12:02
@matthewelwell matthewelwell requested review from gagantrivedi and removed request for a team July 31, 2024 12:02
@github-actions github-actions bot added feature New feature or request and removed feature New feature or request labels Jul 31, 2024
gagantrivedi
gagantrivedi previously approved these changes Aug 5, 2024
@github-actions github-actions bot added feature New feature or request and removed feature New feature or request labels Aug 7, 2024
@github-actions github-actions bot added feature New feature or request and removed feature New feature or request labels Aug 7, 2024
@github-actions github-actions bot removed the feature New feature or request label Aug 8, 2024
…rsions-by-plan

# Conflicts:
#	api/tests/unit/features/versioning/test_unit_versioning_views.py
…rsions-by-plan

# Conflicts:
#	api/tests/unit/sales_dashboard/test_unit_sales_dashboard_views.py
@github-actions github-actions bot added feature New feature or request and removed feature New feature or request labels Oct 28, 2024
@matthewelwell matthewelwell added this pull request to the merge queue Oct 28, 2024
Merged via the queue into main with commit 55de839 Oct 28, 2024
35 checks passed
@matthewelwell matthewelwell deleted the feat(versioning)/configure-num-versions-by-plan branch October 28, 2024 12:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api Issue related to the REST API feature New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants