Skip to content
This repository was archived by the owner on Sep 30, 2024. It is now read-only.

Conversation

@bobheadxi
Copy link
Member

@bobheadxi bobheadxi commented Aug 10, 2024

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

  • Unit tests
  • E2E tests (sg test enterprise-portal-e2e)

image

@bobheadxi bobheadxi force-pushed the 08-09-feat_enterpriseportal_define_subscriptionlicensechecksservice branch from f07d4ff to d5f0aa9 Compare August 10, 2024 00:27
@bobheadxi bobheadxi force-pushed the 08-09-feat_enterpriseportal_implement_subscriptionlicensechecksservice branch from 94fa17d to 6ff0aa7 Compare August 10, 2024 00:27
@bobheadxi bobheadxi force-pushed the 08-09-feat_enterpriseportal_define_subscriptionlicensechecksservice branch from d5f0aa9 to da734d3 Compare August 10, 2024 00:36
@bobheadxi bobheadxi force-pushed the 08-09-feat_enterpriseportal_implement_subscriptionlicensechecksservice branch from 6ff0aa7 to 27ceb18 Compare August 10, 2024 00:37
@bobheadxi bobheadxi force-pushed the 08-09-feat_enterpriseportal_define_subscriptionlicensechecksservice branch from da734d3 to 9d3d1e1 Compare August 10, 2024 00:54
@bobheadxi bobheadxi force-pushed the 08-09-feat_enterpriseportal_implement_subscriptionlicensechecksservice branch from 27ceb18 to 9eea4f8 Compare August 10, 2024 00:54
@bobheadxi bobheadxi force-pushed the 08-09-feat_enterpriseportal_define_subscriptionlicensechecksservice branch from 9d3d1e1 to 6c53ac5 Compare August 10, 2024 01:29
@bobheadxi bobheadxi force-pushed the 08-09-feat_enterpriseportal_implement_subscriptionlicensechecksservice branch 2 times, most recently from 3e3f661 to 9a29c0a Compare August 10, 2024 03:10
@bobheadxi bobheadxi force-pushed the 08-09-feat_enterpriseportal_define_subscriptionlicensechecksservice branch from 6c53ac5 to d8b3432 Compare August 10, 2024 03:13
@bobheadxi bobheadxi force-pushed the 08-09-feat_enterpriseportal_implement_subscriptionlicensechecksservice branch from 9a29c0a to a900ea0 Compare August 10, 2024 03:13
@bobheadxi bobheadxi force-pushed the 08-09-feat_enterpriseportal_define_subscriptionlicensechecksservice branch from d8b3432 to 8e0f2d9 Compare August 12, 2024 18:50
@bobheadxi bobheadxi force-pushed the 08-09-feat_enterpriseportal_implement_subscriptionlicensechecksservice branch from a900ea0 to 0936f92 Compare August 12, 2024 18:50
@bobheadxi bobheadxi force-pushed the 08-09-feat_enterpriseportal_define_subscriptionlicensechecksservice branch from 8e0f2d9 to 9f29a98 Compare August 12, 2024 20:56
@bobheadxi bobheadxi force-pushed the 08-09-feat_enterpriseportal_implement_subscriptionlicensechecksservice branch 3 times, most recently from a068acd to 7efb957 Compare August 12, 2024 21:38
@bobheadxi bobheadxi marked this pull request as ready for review August 12, 2024 21:38
@bobheadxi bobheadxi requested review from a team August 12, 2024 21:39
@bobheadxi bobheadxi force-pushed the 08-09-feat_enterpriseportal_implement_subscriptionlicensechecksservice branch from 7efb957 to 1af6201 Compare August 12, 2024 22:02
@bobheadxi bobheadxi force-pushed the 08-09-feat_enterpriseportal_define_subscriptionlicensechecksservice branch from 9f29a98 to f15b76f Compare August 14, 2024 15:22
@bobheadxi bobheadxi force-pushed the 08-09-feat_enterpriseportal_implement_subscriptionlicensechecksservice branch from 2453a1b to dce9782 Compare August 14, 2024 15:22
@bobheadxi bobheadxi force-pushed the 08-09-feat_enterpriseportal_define_subscriptionlicensechecksservice branch from f15b76f to 1ebd646 Compare August 15, 2024 00:16
@bobheadxi bobheadxi force-pushed the 08-09-feat_enterpriseportal_implement_subscriptionlicensechecksservice branch from dce9782 to 44e077d Compare August 15, 2024 00:16
@bobheadxi bobheadxi requested a review from pjlast August 15, 2024 00:56
Copy link
Contributor

@unknwon unknwon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just a minor comment.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

TIL dns:// works here...

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's a new behaviour from the new gprc.NewClient:

The target name syntax is defined in https://github.com/grpc/grpc/blob/master/doc/naming.md. e.g. to use dns resolver, a "dns:///" prefix should be applied to the target.

@bobheadxi bobheadxi force-pushed the 08-09-feat_enterpriseportal_define_subscriptionlicensechecksservice branch from 1ebd646 to 01de0f8 Compare August 15, 2024 16:41
@bobheadxi bobheadxi force-pushed the 08-09-feat_enterpriseportal_implement_subscriptionlicensechecksservice branch from 0a28074 to 5ae3c79 Compare August 15, 2024 16:41
@bobheadxi bobheadxi force-pushed the 08-09-feat_enterpriseportal_define_subscriptionlicensechecksservice branch from 01de0f8 to ba89637 Compare August 15, 2024 22:07
@bobheadxi bobheadxi force-pushed the 08-09-feat_enterpriseportal_implement_subscriptionlicensechecksservice branch from 5ae3c79 to 46d63d8 Compare August 15, 2024 22:07
@bobheadxi bobheadxi force-pushed the 08-09-feat_enterpriseportal_define_subscriptionlicensechecksservice branch from ba89637 to fab52ee Compare August 15, 2024 23:13
@bobheadxi bobheadxi force-pushed the 08-09-feat_enterpriseportal_implement_subscriptionlicensechecksservice branch from 46d63d8 to 66d25d5 Compare August 15, 2024 23:14
Base automatically changed from 08-09-feat_enterpriseportal_define_subscriptionlicensechecksservice to main August 16, 2024 16:37
@bobheadxi bobheadxi force-pushed the 08-09-feat_enterpriseportal_implement_subscriptionlicensechecksservice branch from 66d25d5 to 9e991a9 Compare August 16, 2024 16:37
@github-actions
Copy link
Contributor

github-actions bot commented Aug 16, 2024

✔️ Test ownership >= 70% again, thank you!

@bobheadxi bobheadxi force-pushed the 08-09-feat_enterpriseportal_implement_subscriptionlicensechecksservice branch from 9e991a9 to db24d7e Compare August 16, 2024 17:01
@bobheadxi bobheadxi enabled auto-merge (squash) August 16, 2024 17:05
@bobheadxi bobheadxi merged commit f129d66 into main Aug 16, 2024
@bobheadxi bobheadxi deleted the 08-09-feat_enterpriseportal_implement_subscriptionlicensechecksservice branch August 16, 2024 17:08
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants