browsertrix/chart
Ilya Kreymer 9a67e28f13
Adds Subscription API (#1914)
Fixes https://github.com/webrecorder/browsertrix/issues/1905

- adds a new top-level `/api/subscriptions` endpoint and SubOps handler on
the backend.
- enable subscriptions API endpoints available only if `billing_enabled` is
set in helm chart
- new POST /subscriptions/create, /subscriptions/update,
/subscriptions/cancel API endpoints
- Subscriptions mongo collection storing timestamped /subscription
API events
- GET /subscriptions/events API to get subscription events, support for filtering and sorting
- Subscription data model 
- Support for setting and handling readOnlyOnCancel on org
- /orgs/<id>/billing-portal to lookup portalUrl using external API
- subscription in org getter and list views
- mark org as readOnly for subscription status `paused_payment_failed`, clears it on status `active`

---------
Co-authored-by: Tessa Walsh <tessa@bitarchivist.net>
2024-07-10 17:41:16 -07:00
..
admin/logging
app-templates Crawler network policy (#1727) 2024-07-03 10:55:03 -07:00
btrix-crds
charts MetaController update (#1630) 2024-03-27 08:49:56 -07:00
email-templates feat: Rename org when accepting org invite for first admin (#1870) 2024-06-27 16:08:31 -07:00
examples Add Repository Index + Chart Rename + Docs Rename (#1708) 2024-04-21 09:42:25 -07:00
templates Adds Subscription API (#1914) 2024-07-10 17:41:16 -07:00
test Adds Subscription API (#1914) 2024-07-10 17:41:16 -07:00
.helmignore
Chart.lock MetaController update (#1630) 2024-03-27 08:49:56 -07:00
Chart.yaml version: bump to 1.10.2 2024-06-11 16:28:40 -07:00
README.md
values.yaml Adds Subscription API (#1914) 2024-07-10 17:41:16 -07:00

Update Helm dependencies

  • It needs to update Helm charts after changing its dependencies (e.g. logging)
$ helm dependency update .

Update metacontroller

#!/bin/bash

# intall metacontroller
git clone --depth=1 https://github.com/metacontroller/metacontroller.git
cd metacontroller
helm package deploy/helm/metacontroller --destination deploy/helm
cd ..

# update dependency
helm dependency update
  • Bump up the metacontroller version in Chart.yaml