Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: filter providers by urn and type #398

Merged
merged 1 commit into from
Dec 2, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ COMMIT := $(shell git rev-parse --short HEAD)
TAG := "$(shell git rev-list --tags --max-count=1)"
VERSION := "$(shell git describe --tags ${TAG})-next"
BUILD_DIR=dist
PROTON_COMMIT := "0568961fb6571a7a9889d5f16eb896e371e39b8e"
PROTON_COMMIT := "bd2a1d201fb4931e7b62d93031cb541016818daa"

.PHONY: all build clean test tidy vet proto setup format generate

Expand Down Expand Up @@ -56,6 +56,7 @@ vet:
go vet ./...

download:
@echo Download go.mod dependencies
@go mod download

generate: ## Run all go generate in the code base
Expand Down Expand Up @@ -83,6 +84,7 @@ setup: ## Install all the dependencies
go install github.com/grpc-ecosystem/grpc-gateway/v2/protoc-gen-grpc-gateway@v2.5.0
go install github.com/grpc-ecosystem/grpc-gateway/v2/protoc-gen-openapiv2@v2.5.0
go install github.com/bufbuild/buf/cmd/buf@v1.29.0
go install github.com/vektra/mockery/v2@v2.38.0

help: ## Display this help message
@cat $(MAKEFILE_LIST) | grep -e "^[a-zA-Z_\-]*: *.*## *" | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}'
Expand Down
2 changes: 1 addition & 1 deletion api/handler/v1beta1/grpc.go
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ type activityService interface {
//go:generate mockery --name=providerService --exported --with-expecter
type providerService interface {
Create(context.Context, *domain.Provider) error
Find(context.Context) ([]*domain.Provider, error)
Find(context.Context, domain.ProviderFilter) ([]*domain.Provider, error)
GetByID(context.Context, string) (*domain.Provider, error)
GetTypes(context.Context) ([]domain.ProviderType, error)
GetOne(ctx context.Context, pType, urn string) (*domain.Provider, error)
Expand Down
14 changes: 13 additions & 1 deletion api/handler/v1beta1/mocks/activityService.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

34 changes: 33 additions & 1 deletion api/handler/v1beta1/mocks/appealService.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 13 additions & 1 deletion api/handler/v1beta1/mocks/approvalService.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

30 changes: 29 additions & 1 deletion api/handler/v1beta1/mocks/grantService.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

18 changes: 17 additions & 1 deletion api/handler/v1beta1/mocks/namespaceService.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

18 changes: 17 additions & 1 deletion api/handler/v1beta1/mocks/policyService.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading
Loading