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

Commit

Permalink
chore/enterpriseportal: remove dotcomdb connection and testing infra
Browse files Browse the repository at this point in the history
  • Loading branch information
bobheadxi committed Aug 14, 2024
1 parent badd28e commit c880921
Show file tree
Hide file tree
Showing 23 changed files with 9 additions and 1,446 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ go_library(
"//cmd/enterprise-portal/internal/connectutil",
"//cmd/enterprise-portal/internal/database",
"//cmd/enterprise-portal/internal/database/codyaccess",
"//cmd/enterprise-portal/internal/dotcomdb",
"//cmd/enterprise-portal/internal/samsm2m",
"//internal/codygateway/codygatewayactor",
"//internal/codygateway/codygatewayevents",
Expand Down
3 changes: 1 addition & 2 deletions cmd/enterprise-portal/internal/codyaccessservice/v1.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ import (
"github.com/sourcegraph/sourcegraph/cmd/enterprise-portal/internal/connectutil"
"github.com/sourcegraph/sourcegraph/cmd/enterprise-portal/internal/database"
"github.com/sourcegraph/sourcegraph/cmd/enterprise-portal/internal/database/codyaccess"
"github.com/sourcegraph/sourcegraph/cmd/enterprise-portal/internal/dotcomdb"
"github.com/sourcegraph/sourcegraph/cmd/enterprise-portal/internal/samsm2m"
"github.com/sourcegraph/sourcegraph/internal/trace"
codyaccessv1 "github.com/sourcegraph/sourcegraph/lib/enterpriseportal/codyaccess/v1"
Expand Down Expand Up @@ -126,7 +125,7 @@ func (s *HandlerV1) ListCodyGatewayAccesses(ctx context.Context, req *connect.Re

attrs, err := s.store.ListCodyGatewayAccesses(ctx)
if err != nil {
if err == dotcomdb.ErrCodyGatewayAccessNotFound {
if errors.Is(err, codyaccess.ErrSubscriptionNotFound) {
return nil, connect.NewError(connect.CodeNotFound, err)
}
return nil, connectutil.InternalError(ctx, logger, err,
Expand Down
28 changes: 0 additions & 28 deletions cmd/enterprise-portal/internal/database/importer/BUILD.bazel

This file was deleted.

345 changes: 0 additions & 345 deletions cmd/enterprise-portal/internal/database/importer/importer.go

This file was deleted.

Loading

0 comments on commit c880921

Please sign in to comment.