sourcegraph/internal/licensing
Robert Lin e2c646ad92
feat/enterpriseportal: all subscriptions APIs use enterprise portal DB (#63959)
This change follows
https://github.com/sourcegraph/sourcegraph/pull/63858 by making the
_all_ subscriptions APIs read and write to the Enterprise Portal
database, instead of dotcomdb, using the data that we sync from dotcomdb
into Enterprise Portal.

With this PR, all initially proposed subscriptions APIs are at least
partially implemented.

Uses https://github.com/hexops/valast/pull/27 for custom `autogold`
rendering of `utctime.Time`

Closes https://linear.app/sourcegraph/issue/CORE-156
Part of https://linear.app/sourcegraph/issue/CORE-158

## Test plan

- [x] Unit tests on API level
- [x] Adapters unit testing
- [x] Simple E2E test:
https://github.com/sourcegraph/sourcegraph/pull/64057
2024-08-09 17:26:18 -07:00
..
BUILD.bazel licensecheck: Make proper goroutine (#63655) 2024-07-31 03:42:38 +02:00
CODENOTIFY Backend: move a bunch of enterprise packages into internal (#54639) 2023-07-05 23:43:24 +00:00
codygateway_test.go feat/enterpriseportal: use database for reading Cody Gateway access (#63925) 2024-08-08 10:39:14 -07:00
codygateway.go feat/enterpriseportal: use database for reading Cody Gateway access (#63925) 2024-08-08 10:39:14 -07:00
constants.go fix: move licensing checks to worker process (#54854) 2023-07-24 13:38:57 +02:00
data.go licensing: Rename new plans (#60345) 2024-02-09 10:05:36 +02:00
doc.go Backend: move a bunch of enterprise packages into internal (#54639) 2023-07-05 23:43:24 +00:00
features_test.go Implement licensing changes for Sourcegraph 5.3 (#60046) 2024-02-05 11:58:58 +01:00
features.go chore: Change errors.HasType to respect multi-errors (#63024) 2024-06-06 13:02:14 +00:00
licensing_test.go Implement licensing changes for Sourcegraph 5.3 (#60046) 2024-02-05 11:58:58 +01:00
licensing.go feat/enterpriseportal: all subscriptions APIs use enterprise portal DB (#63959) 2024-08-09 17:26:18 -07:00
plans_test.go feat/enterprise-portal: DB layer for {Get/List}CodyGatewayAccess (#62706) 2024-05-22 12:56:59 -07:00
plans.go feat/enterprise-portal: DB layer for {Get/List}CodyGatewayAccess (#62706) 2024-05-22 12:56:59 -07:00
tags_test.go licensing: Rename new plans (#60345) 2024-02-09 10:05:36 +02:00
tags.go feat/enterprise: make per-subscription model allowlists no-op (#62912) 2024-06-05 17:08:58 +00:00
telemetryexport_test.go Implement licensing changes for Sourcegraph 5.3 (#60046) 2024-02-05 11:58:58 +01:00
telemetryexport.go Move dotcom check out of cmd/frontend (#60810) 2024-03-04 16:05:16 +00:00
types.go Backend: move a bunch of enterprise packages into internal (#54639) 2023-07-05 23:43:24 +00:00
user_count.go licensecheck: Make proper goroutine (#63655) 2024-07-31 03:42:38 +02:00