Skip to content

Commit 145df3c

Browse files
authored
feat(grpc): add user and tag templates (#104)
1 parent a88b6fe commit 145df3c

26 files changed

Lines changed: 17749 additions & 2701 deletions

Makefile

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
NAME="github.com/odpf/columbus"
22
VERSION=$(shell git describe --always --tags 2>/dev/null)
33
COVERFILE="/tmp/columbus.coverprofile"
4-
PROTON_COMMIT := "c3146a25d9f321bc721d94dbdf3aec8483a3cb03"
4+
PROTON_COMMIT := "4c76e086f7877efc8897ffac74dd45cf75646a78"
55

66
.PHONY: all build test clean install proto
77

@@ -31,7 +31,6 @@ proto: ## Generate the protobuf files
3131
@buf generate https://github.com/odpf/proton/archive/${PROTON_COMMIT}.zip#strip_components=1 --template buf.gen.yaml --path odpf/compass
3232
@echo " > protobuf compilation finished"
3333

34-
3534
install: ## install required dependencies
3635
@echo "> installing dependencies"
3736
go mod tidy

api/httpapi/v1beta1.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ func setupV1Beta1Router(router *mux.Router, handlers *Handler) {
2626
// Deprecated: Use setupV1Beta1AssetRoutes instead
2727
setupV1Beta1TypeRoutes("/types", router, handlers.Type, handlers.Record)
2828

29-
setupUserRoutes("/user", router, handlers.User)
29+
setupMeRoutes("/me", router, handlers.User)
3030

3131
setupUsersRoutes("/users", router, handlers.User)
3232

@@ -108,7 +108,7 @@ func setupV1Beta1TagRoutes(baseURL string, router *mux.Router, th *handlers.TagH
108108
router.Methods(http.MethodDelete).Path(templateURL + "/{template_urn}").HandlerFunc(tth.Delete)
109109
}
110110

111-
func setupUserRoutes(baseURL string, router *mux.Router, ush *handlers.UserHandler) {
111+
func setupMeRoutes(baseURL string, router *mux.Router, ush *handlers.UserHandler) {
112112

113113
router.Path(baseURL + "/starred").
114114
Methods(http.MethodGet).

0 commit comments

Comments
 (0)