• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

kobotoolbox / kpi / 12395098091
81%
master: 76%

Build:
Build:
LAST BUILD BRANCH: dev-1257-remove-v1-forms-endpoint
DEFAULT BRANCH: master
Ran 18 Dec 2024 03:09PM UTC
Jobs 1
Files 610
Run time 2min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

18 Dec 2024 02:31PM UTC coverage: 80.514% (+0.001%) from 80.513%
12395098091

push

github

web-flow
fix(billing): check default plan limits on backend TASK-1364 (#5367)

### 📣 Summary
Updates backend code to check Stripe products for default "community
plan" limits when determining organization usage.

### 📖 Description
Currently, the frontend gets billing usage limits for the free Community
Plan from the corresponding Stripe product (returned by the products
endpoint). The backend, however, does not reference these limits at all.
This has not been a problem previously, because the backend currently
does not enforce usage limits (only NLP limits are enforced, and this is
handled by the frontend at present) and had no other need for these
limits.

Now that the backend is tracking addon usage, however, it does need to
be aware of community plan usage limits. This PR updates the
get_organization_plan_limit util function to use the limits from the
metadata of the default community plan when an organization does not
have a subscription.

### 👀 Preview steps
Change covered by unit test

5762 of 9236 branches covered (62.39%)

15 of 16 new or added lines in 1 file covered. (93.75%)

22023 of 27353 relevant lines covered (80.51%)

0.81 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
1
87.5
0.66% kobo/apps/stripe/utils.py
Jobs
ID Job ID Ran Files Coverage
1 12395098091.1 18 Dec 2024 03:09PM UTC 610
80.51
Source Files on build 12395098091
  • Tree
  • List 610
  • Changed 1
  • Source Changed 0
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • 7e2ec0b5 on github
  • Prev Build on main (#12394814413)
  • Next Build on main (#12395440376)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc