-
Notifications
You must be signed in to change notification settings - Fork 1.3k
feat/enterpriseportal: define SubscriptionLicenseChecksService #64396
feat/enterpriseportal: define SubscriptionLicenseChecksService #64396
Conversation
ef80872
to
a05b35b
Compare
load("@rules_proto_grpc//doc:defs.bzl", "doc_template_compile") | ||
load("@rules_buf//buf:defs.bzl", "buf_lint_test") | ||
|
||
# Bazel-generated files are different from what is generated locally by buf and |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Huh how’s that 🙃
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the issue mentioned in the docstring https://github.com/sourcegraph/devx-support/issues/932 has an archive of my debugging efforts. tl;dr i'm not sure, and the bazel-generated files are invalid, causing everything to fail to build if you use Bazel but not if you use Go
ed907cc
to
958195f
Compare
a05b35b
to
f07d4ff
Compare
958195f
to
e4eaa6e
Compare
da734d3
to
9d3d1e1
Compare
Discussed with @eseliger offline, I'm introducing another change here:
For now, this parameter will support the existing format so we can forward checks in dotcom to EP, but I've set a target removal release |
d8b3432
to
8e0f2d9
Compare
8e0f2d9
to
9f29a98
Compare
f15b76f
to
1ebd646
Compare
01de0f8
to
ba89637
Compare
ba89637
to
fab52ee
Compare
…4400) Implements the RPC defined in https://github.com/sourcegraph/sourcegraph/pull/64396. Follow-up PRs will implement migrations for in-instance checks and for through-dotcom checks. One major change is that we now bypass the check for subscriptions that are denoted as associated with `INTERNAL` instances. Most of the diff is generated mocks. Part of https://linear.app/sourcegraph/issue/CORE-227 ## Test plan - [x] Unit tests - [x] E2E tests (`sg test enterprise-portal-e2e`) ![image](https://github.com/user-attachments/assets/56fde7dd-95a0-4d98-bb4c-943b1f155e33)
This PR defines an Enterprise Portal version of the "license check" API that is currently bundled in Souregraph as a separate gRPC service that will be implemented in Enterprise Portal (in a PR I will stack on top of this one). The API schema is pretty much the same, except:
error
field, since I'm pretty sure we can return a real error instead in a connectRPC implementation for the same effect.license_key
a parameter, as we already propagate the license key all over the place (pings, telemetry) - this is a fairly low-frequency check so there shouldn't be any bandwidth concerns or the like. For now, this parameter will support the existing format so we can forward checks in dotcom to EP, but I've set a target removal releaseExisting API: https://sourcegraph.com/github.com/sourcegraph/sourcegraph/-/blob/cmd/frontend/internal/dotcom/productsubscription/license_check_handler.go?L133
Part of https://linear.app/sourcegraph/issue/CORE-227
Test plan
CI