Skip to content

Commit

Permalink
Merge pull request #649 from tidepool-org/ehr
Browse files Browse the repository at this point in the history
Add EHR data sync tasks
  • Loading branch information
toddkazakov authored Aug 24, 2023
2 parents b6209eb + 98c2034 commit ab9e1b1
Show file tree
Hide file tree
Showing 29 changed files with 8,957 additions and 1,746 deletions.
10 changes: 9 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ generate: esc mockgen
@echo "go generate ./..."
@cd $(ROOT_DIRECTORY) && go generate ./...

ci-generate: generate
ci-generate: generate format-write-changed imports-write-changed
@cd $(ROOT_DIRECTORY) && \
O=`git diff` && [ "$${O}" = "" ] || (echo "$${O}" && exit 1)

Expand All @@ -105,6 +105,10 @@ format-write:
O=`find . -not -path './vendor/*' -name '*.go' -type f -exec gofmt -e -s -w {} \; 2>&1` && \
[ -z "$${O}" ] || (echo "$${O}" && exit 1)

format-write-changed:
@cd $(ROOT_DIRECTORY) && \
git diff --name-only | xargs -I{} gofmt -e -s -w {}

imports: goimports
@echo "goimports -d -e -local 'github.com/tidepool-org/platform'"
@cd $(ROOT_DIRECTORY) && \
Expand All @@ -117,6 +121,10 @@ imports-write: goimports
O=`find . -not -path './vendor/*' -name '*.go' -type f -exec goimports -e -w -local 'github.com/tidepool-org/platform' {} \; 2>&1` && \
[ -z "$${O}" ] || (echo "$${O}" && exit 1)

imports-write-changed: goimports
@cd $(ROOT_DIRECTORY) && \
git diff --name-only | xargs -I{} goimports -e -w -local 'github.com/tidepool-org/platform' {}

vet: tmp
@echo "go vet"
cd $(ROOT_DIRECTORY) && \
Expand Down
1 change: 1 addition & 0 deletions auth/auth.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ const (
TidepoolRestrictedTokenParameterKey = "restricted_token"
)

//go:generate mockgen --build_flags=--mod=mod -source=./auth.go -destination=./test/mock.go -package test -aux_files=github.com/tidepool-org/platform/auth=provider_session.go,github.com/tidepool-org/platform/auth=restricted_token.go Client
type Client interface {
ProviderSessionAccessor
RestrictedTokenAccessor
Expand Down
Loading

0 comments on commit ab9e1b1

Please sign in to comment.