Skip to content

Commit

Permalink
chore(housekeeping): rename module name (#208)
Browse files Browse the repository at this point in the history
* feat: add service wild card search

added wild card search for services

* feat(Service): add service wild card search

* remove issue_match_test for PR

* git

* chore(housekeeping): rename module name

* chore(housekeeping): rename module name

* chore(housekeeping): rename module name

* rename module names

---------

Co-authored-by: David Rochow <[email protected]>
  • Loading branch information
dustindemmerle and drochow authored Sep 16, 2024
1 parent 07e4d2b commit 09986b7
Show file tree
Hide file tree
Showing 170 changed files with 1,096 additions and 1,066 deletions.
4 changes: 2 additions & 2 deletions .mockery.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ dir: ./internal/mocks
filename: "mock_{{.InterfaceName}}.go"
outpkg: "mocks"
packages:
github.wdf.sap.corp/cc/heureka/internal/database:
github.com/cloudoperators/heureka/internal/database:
interfaces:
Database:
github.wdf.sap.corp/cc/heureka/internal/app:
github.com/cloudoperators/heureka/internal/app:
interfaces:
Heureka:
8 changes: 4 additions & 4 deletions cmd/heureka/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@ package main
import (
"fmt"

"github.com/cloudoperators/heureka/internal/database/mariadb/test"
"github.com/cloudoperators/heureka/internal/server"
"github.com/cloudoperators/heureka/internal/util"
"github.com/cloudoperators/heureka/pkg/log"
"github.com/kelseyhightower/envconfig"
"github.com/sirupsen/logrus"
"github.wdf.sap.corp/cc/heureka/internal/database/mariadb/test"
"github.wdf.sap.corp/cc/heureka/internal/server"
"github.wdf.sap.corp/cc/heureka/internal/util"
"github.wdf.sap.corp/cc/heureka/pkg/log"
)

var (
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module github.wdf.sap.corp/cc/heureka
module github.com/cloudoperators/heureka

go 1.22.6

Expand Down
2 changes: 1 addition & 1 deletion internal/api/graphql/access/auth.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (
"github.com/gin-gonic/gin"
"github.com/sirupsen/logrus"

"github.wdf.sap.corp/cc/heureka/internal/util"
"github.com/cloudoperators/heureka/internal/util"
)

type Logger interface {
Expand Down
2 changes: 1 addition & 1 deletion internal/api/graphql/access/test/util.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import (
"net/http"
"time"

"github.wdf.sap.corp/cc/heureka/internal/api/graphql/access"
"github.com/cloudoperators/heureka/internal/api/graphql/access"

"github.com/golang-jwt/jwt/v5"

Expand Down
2 changes: 1 addition & 1 deletion internal/api/graphql/access/token_auth.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import (
"github.com/gin-gonic/gin"
"github.com/golang-jwt/jwt/v5"

"github.wdf.sap.corp/cc/heureka/internal/util"
"github.com/cloudoperators/heureka/internal/util"
)

const (
Expand Down
8 changes: 4 additions & 4 deletions internal/api/graphql/access/token_auth_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,13 @@ import (
. "github.com/onsi/ginkgo/v2"
. "github.com/onsi/gomega"

. "github.wdf.sap.corp/cc/heureka/internal/api/graphql/access/test"
util2 "github.wdf.sap.corp/cc/heureka/pkg/util"
. "github.com/cloudoperators/heureka/internal/api/graphql/access/test"
util2 "github.com/cloudoperators/heureka/pkg/util"

"github.com/gin-gonic/gin"

"github.wdf.sap.corp/cc/heureka/internal/api/graphql/access"
"github.wdf.sap.corp/cc/heureka/internal/util"
"github.com/cloudoperators/heureka/internal/api/graphql/access"
"github.com/cloudoperators/heureka/internal/util"
)

const (
Expand Down
2 changes: 1 addition & 1 deletion internal/api/graphql/gqlgen.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ resolver:
# gqlgen will search for any type names in the schema in these go packages
# if they match it will use them, otherwise it will generate them.
autobind:
- "github.wdf.sap.corp/cc/heureka/internal/api/graphql/graph/model"
- "github.com/cloudoperators/heureka/internal/api/graphql/graph/model"

# This section declares type mapping between the GraphQL and go type systems
#
Expand Down
6 changes: 3 additions & 3 deletions internal/api/graphql/graph/baseResolver/activity.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ package baseResolver
import (
"context"

"github.com/cloudoperators/heureka/internal/api/graphql/graph/model"
"github.com/cloudoperators/heureka/internal/app"
"github.com/cloudoperators/heureka/internal/entity"
"github.com/sirupsen/logrus"
"github.wdf.sap.corp/cc/heureka/internal/api/graphql/graph/model"
"github.wdf.sap.corp/cc/heureka/internal/app"
"github.wdf.sap.corp/cc/heureka/internal/entity"
)

func SingleActivityBaseResolver(app app.Heureka, ctx context.Context, parent *model.NodeParent) (*model.Activity, error) {
Expand Down
2 changes: 1 addition & 1 deletion internal/api/graphql/graph/baseResolver/common.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ import (
"strconv"

"github.com/99designs/gqlgen/graphql"
"github.com/cloudoperators/heureka/internal/entity"
"github.com/samber/lo"
"github.wdf.sap.corp/cc/heureka/internal/entity"
)

var (
Expand Down
6 changes: 3 additions & 3 deletions internal/api/graphql/graph/baseResolver/component.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ package baseResolver
import (
"context"

"github.com/cloudoperators/heureka/internal/api/graphql/graph/model"
"github.com/cloudoperators/heureka/internal/app"
"github.com/cloudoperators/heureka/internal/entity"
"github.com/sirupsen/logrus"
"github.wdf.sap.corp/cc/heureka/internal/api/graphql/graph/model"
"github.wdf.sap.corp/cc/heureka/internal/app"
"github.wdf.sap.corp/cc/heureka/internal/entity"
)

func SingleComponentBaseResolver(app app.Heureka, ctx context.Context, parent *model.NodeParent) (*model.Component, error) {
Expand Down
6 changes: 3 additions & 3 deletions internal/api/graphql/graph/baseResolver/component_instance.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ package baseResolver
import (
"context"

"github.com/cloudoperators/heureka/internal/api/graphql/graph/model"
"github.com/cloudoperators/heureka/internal/app"
"github.com/cloudoperators/heureka/internal/entity"
"github.com/sirupsen/logrus"
"github.wdf.sap.corp/cc/heureka/internal/api/graphql/graph/model"
"github.wdf.sap.corp/cc/heureka/internal/app"
"github.wdf.sap.corp/cc/heureka/internal/entity"
)

func SingleComponentInstanceBaseResolver(app app.Heureka, ctx context.Context, parent *model.NodeParent) (*model.ComponentInstance, error) {
Expand Down
6 changes: 3 additions & 3 deletions internal/api/graphql/graph/baseResolver/component_version.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ package baseResolver
import (
"context"

"github.com/cloudoperators/heureka/internal/api/graphql/graph/model"
"github.com/cloudoperators/heureka/internal/app"
"github.com/cloudoperators/heureka/internal/entity"
"github.com/sirupsen/logrus"
"github.wdf.sap.corp/cc/heureka/internal/api/graphql/graph/model"
"github.wdf.sap.corp/cc/heureka/internal/app"
"github.wdf.sap.corp/cc/heureka/internal/entity"
)

func SingleComponentVersionBaseResolver(app app.Heureka, ctx context.Context, parent *model.NodeParent) (*model.ComponentVersion, error) {
Expand Down
6 changes: 3 additions & 3 deletions internal/api/graphql/graph/baseResolver/evidence.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ package baseResolver
import (
"context"

"github.com/cloudoperators/heureka/internal/api/graphql/graph/model"
"github.com/cloudoperators/heureka/internal/app"
"github.com/cloudoperators/heureka/internal/entity"
"github.com/sirupsen/logrus"
"github.wdf.sap.corp/cc/heureka/internal/api/graphql/graph/model"
"github.wdf.sap.corp/cc/heureka/internal/app"
"github.wdf.sap.corp/cc/heureka/internal/entity"
)

func EvidenceBaseResolver(app app.Heureka, ctx context.Context, filter *model.EvidenceFilter, first *int, after *string, parent *model.NodeParent) (*model.EvidenceConnection, error) {
Expand Down
6 changes: 3 additions & 3 deletions internal/api/graphql/graph/baseResolver/issue.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@ package baseResolver
import (
"context"

"github.com/cloudoperators/heureka/internal/api/graphql/graph/model"
"github.com/cloudoperators/heureka/internal/app"
"github.com/cloudoperators/heureka/internal/entity"
"github.com/samber/lo"
"github.com/sirupsen/logrus"
"github.wdf.sap.corp/cc/heureka/internal/api/graphql/graph/model"
"github.wdf.sap.corp/cc/heureka/internal/app"
"github.wdf.sap.corp/cc/heureka/internal/entity"
"k8s.io/utils/pointer"
)

Expand Down
6 changes: 3 additions & 3 deletions internal/api/graphql/graph/baseResolver/issue_match.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@ package baseResolver
import (
"context"

"github.com/cloudoperators/heureka/internal/api/graphql/graph/model"
"github.com/cloudoperators/heureka/internal/app"
"github.com/cloudoperators/heureka/internal/entity"
"github.com/samber/lo"
"github.com/sirupsen/logrus"
"github.wdf.sap.corp/cc/heureka/internal/api/graphql/graph/model"
"github.wdf.sap.corp/cc/heureka/internal/app"
"github.wdf.sap.corp/cc/heureka/internal/entity"
"k8s.io/utils/pointer"
)

Expand Down
6 changes: 3 additions & 3 deletions internal/api/graphql/graph/baseResolver/issue_match_change.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@ package baseResolver
import (
"context"

"github.com/cloudoperators/heureka/internal/api/graphql/graph/model"
"github.com/cloudoperators/heureka/internal/app"
"github.com/cloudoperators/heureka/internal/entity"
"github.com/samber/lo"
"github.com/sirupsen/logrus"
"github.wdf.sap.corp/cc/heureka/internal/api/graphql/graph/model"
"github.wdf.sap.corp/cc/heureka/internal/app"
"github.wdf.sap.corp/cc/heureka/internal/entity"
"k8s.io/utils/pointer"
)

Expand Down
6 changes: 3 additions & 3 deletions internal/api/graphql/graph/baseResolver/issue_repository.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@ package baseResolver
import (
"context"

"github.com/cloudoperators/heureka/internal/api/graphql/graph/model"
"github.com/cloudoperators/heureka/internal/app"
"github.com/cloudoperators/heureka/internal/entity"
"github.com/samber/lo"
"github.com/sirupsen/logrus"
"github.wdf.sap.corp/cc/heureka/internal/api/graphql/graph/model"
"github.wdf.sap.corp/cc/heureka/internal/app"
"github.wdf.sap.corp/cc/heureka/internal/entity"
)

func SingleIssueRepositoryBaseResolver(app app.Heureka, ctx context.Context, parent *model.NodeParent) (*model.IssueRepository, error) {
Expand Down
6 changes: 3 additions & 3 deletions internal/api/graphql/graph/baseResolver/issue_variant.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ package baseResolver
import (
"context"

"github.com/cloudoperators/heureka/internal/api/graphql/graph/model"
"github.com/cloudoperators/heureka/internal/app"
"github.com/cloudoperators/heureka/internal/entity"
"github.com/sirupsen/logrus"
"github.wdf.sap.corp/cc/heureka/internal/api/graphql/graph/model"
"github.wdf.sap.corp/cc/heureka/internal/app"
"github.wdf.sap.corp/cc/heureka/internal/entity"
)

func SingleIssueVariantBaseResolver(app app.Heureka, ctx context.Context, parent *model.NodeParent) (*model.IssueVariant, error) {
Expand Down
6 changes: 3 additions & 3 deletions internal/api/graphql/graph/baseResolver/service.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@ package baseResolver
import (
"context"

"github.com/cloudoperators/heureka/internal/api/graphql/graph/model"
"github.com/cloudoperators/heureka/internal/app"
"github.com/cloudoperators/heureka/internal/entity"
"github.com/samber/lo"
"github.com/sirupsen/logrus"
"github.wdf.sap.corp/cc/heureka/internal/api/graphql/graph/model"
"github.wdf.sap.corp/cc/heureka/internal/app"
"github.wdf.sap.corp/cc/heureka/internal/entity"
)

func SingleServiceBaseResolver(app app.Heureka, ctx context.Context, parent *model.NodeParent) (*model.Service, error) {
Expand Down
8 changes: 4 additions & 4 deletions internal/api/graphql/graph/baseResolver/support_group.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@ package baseResolver
import (
"context"

"github.com/cloudoperators/heureka/internal/api/graphql/graph/model"
"github.com/cloudoperators/heureka/internal/app"
"github.com/cloudoperators/heureka/internal/entity"
"github.com/cloudoperators/heureka/internal/util"
"github.com/sirupsen/logrus"
"github.wdf.sap.corp/cc/heureka/internal/api/graphql/graph/model"
"github.wdf.sap.corp/cc/heureka/internal/app"
"github.wdf.sap.corp/cc/heureka/internal/entity"
"github.wdf.sap.corp/cc/heureka/internal/util"
)

func SupportGroupBaseResolver(app app.Heureka, ctx context.Context, filter *model.SupportGroupFilter, first *int, after *string, parent *model.NodeParent) (*model.SupportGroupConnection, error) {
Expand Down
6 changes: 3 additions & 3 deletions internal/api/graphql/graph/baseResolver/user.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ package baseResolver
import (
"context"

"github.com/cloudoperators/heureka/internal/api/graphql/graph/model"
"github.com/cloudoperators/heureka/internal/app"
"github.com/cloudoperators/heureka/internal/entity"
"github.com/sirupsen/logrus"
"github.wdf.sap.corp/cc/heureka/internal/api/graphql/graph/model"
"github.wdf.sap.corp/cc/heureka/internal/app"
"github.wdf.sap.corp/cc/heureka/internal/entity"
)

func SingleUserBaseResolver(app app.Heureka, ctx context.Context, parent *model.NodeParent) (*model.User, error) {
Expand Down
Loading

0 comments on commit 09986b7

Please sign in to comment.