Skip to content

Commit e10fc85

Browse files
fix location resolver (#349)
Signed-off-by: Stephen Hwang <[email protected]>
1 parent cd4b125 commit e10fc85

File tree

3 files changed

+22
-14
lines changed

3 files changed

+22
-14
lines changed

Makefile

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,12 @@ tests: | unit-tests
1818

1919
unit-tests: ## Runs unit tests
2020
@echo --- Running unit tests...
21-
@date --rfc-3339=seconds
21+
@date -Iseconds
2222
@go test -race -cover -failfast -tags testtools -p 1 -v ./...
2323

2424
coverage: ## Generates coverage report
2525
@echo --- Generating coverage report...
26-
@date --rfc-3339=seconds
26+
@date -Iseconds
2727
@go test -race -coverprofile=coverage.out -covermode=atomic -tags testtools -p 1 ./...
2828
@go tool cover -func=coverage.out
2929
@go tool cover -html=coverage.out
@@ -32,53 +32,53 @@ lint: golint ## Runs linting
3232

3333
golint:
3434
@echo --- Running golint...
35-
@date --rfc-3339=seconds
35+
@date -Iseconds
3636
@golangci-lint run
3737

3838
clean: ## Clean up all the things
3939
@echo --- Cleaning...
40-
@date --rfc-3339=seconds
40+
@date -Iseconds
4141
@rm -rf ./bin/
4242
@rm -rf coverage.out
4343
@go clean -testcache
4444

4545
binary: | vendor generate ## Builds the binary
4646
@echo --- Building binary...
47-
@date --rfc-3339=seconds
47+
@date -Iseconds
4848
@go build -o bin/${APP_NAME} main.go
4949

5050
vendor: ## Vendors dependencies
5151
@echo --- Downloading dependencies...
52-
@date --rfc-3339=seconds
52+
@date -Iseconds
5353
@go mod tidy
5454
@go mod download
5555

5656
testclient:| background-run .testclient kill-running ## Regenerates the test client in graphclient
5757

5858
.testclient:
5959
@echo --- Generating test graph client...
60-
@date --rfc-3339=seconds
60+
@date -Iseconds
6161
@go generate ./internal/graphclient
6262

6363
dev-nats: ## Initializes nats
6464
@echo --- Initializing nats
65-
@date --rfc-3339=seconds
65+
@date -Iseconds
6666
@.devcontainer/scripts/nats_account.sh
6767

6868
generate: background-run .generate kill-running ## Generates code
6969

7070
.generate:
7171
@echo --- Generating code...
72-
@date --rfc-3339=seconds
72+
@date -Iseconds
7373
@go generate ./...
7474

7575
go-run: ## Runs the app
7676
@echo --- Running binary...
77-
@date --rfc-3339=seconds
77+
@date -Iseconds
7878
@go run main.go serve --dev --oidc=false
7979

8080
background-run: ## Runs in the app in the background
81-
@date --rfc-3339=seconds
81+
@date -Iseconds
8282
@if [ ! -f "${PID_FILE}" ]; then \
8383
echo --- Running binary in the background...; \
8484
go run main.go serve --pid-file=${PID_FILE} --dev --oidc=false & \
@@ -88,5 +88,5 @@ background-run: ## Runs in the app in the background
8888

8989
kill-running: ## Kills the running binary from pid file
9090
@echo --- Killing background binary...
91-
@date --rfc-3339=seconds
91+
@date -Iseconds
9292
@kill $$(cat ${PID_FILE})

internal/graphapi/location.resolvers.go

Lines changed: 8 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

internal/graphapi/permissions.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,6 @@ const (
1818
actionLoadBalancerProviderDelete = "loadbalancerprovider_delete"
1919
actionLoadBalancerProviderGet = "loadbalancerprovider_get"
2020
actionLoadBalancerProviderGetHistory = "loadbalancerprovider_get_history"
21+
22+
actionLocationGet = "location_get"
2123
)

0 commit comments

Comments
 (0)