Skip to content

Commit

Permalink
support struct in referenced proto message (#17)
Browse files Browse the repository at this point in the history
* added a message that refers to another message which contains struct

* added support to refer protobuf's

* remove print stmts

* return protobuf in DatastoreEntityToProtoMessage

* update readme

* generate protobuf on travis

* move from travis matrix to jobs and builds are getting queued

* fix failing test and move back matrix in travis

* fix travis build matric

* fix travis

* fix dependencies

* use go modules and run tests via makefile

* turn on go modules for 1.12

* fix failing tests

* refactor: gofmt and remove unused function

* revert some changes related to returing proto message

* update change log for release
  • Loading branch information
Sheshagiri authored Sep 28, 2019
1 parent 5eaad14 commit 30ca842
Show file tree
Hide file tree
Showing 917 changed files with 453 additions and 506,890 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
.idea/
vendor/*
38 changes: 17 additions & 21 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,32 +13,28 @@ branches:
only:
- master

matrix:
fast_finish: false
include:
- name: Unit Tests
script:
- cd datastore-translator
- go test -v ./... -race -coverprofile=coverage.txt -covermode=atomic
- name: Integration Tests
env:
- DATASTORE_EMULATOR_HOST=127.0.0.1:8081
- DATASTORE_EMULATOR_HOST_PATH=127.0.0.1:8081/datastore
- DATASTORE_HOST=http://127.0.0.1:8081
- DATASTORE_PROJECT_ID=translator-tests
script:
- cd datastore-translator
- go test -v ./... -race -tags=integration
install:
- go get -u github.com/golang/protobuf/protoc-gen-go
- curl -L https://github.com/protocolbuffers/protobuf/releases/download/v3.9.1/protoc-3.9.1-linux-x86_64.zip -o /tmp/protoc.zip
- unzip /tmp/protoc.zip -d "$HOME"/protoc
- mkdir -p "$HOME"/src && ln -s "$HOME"/protoc "$HOME"/src/protobuf
- ./scripts/run-datastore-emulator.sh

env:
- PATH=$HOME/protoc/bin:$PATH DATASTORE_EMULATOR_HOST=127.0.0.1:8081 GO111MODULE="on"

script:
- echo "Generate Protobuf's"
- make protobuf
- echo "Unit Tests"
- make unit-tests
- echo "Integration Tests"
- make integration-tests

notifications:
email:
on_success: change
on_failure: always

install: true

before_script:
- ./scripts/run-datastore-emulator.sh

after_success:
- bash <(curl -s https://codecov.io/bash)
15 changes: 15 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,21 @@

All notable changes to this project will be documented in this file.

## [1.0.2] - 28th September 2019
This release adds support for protobuf's with `google.protobuf.Struct` from referenced/imported proto files.
Following is an example.
```
message Action {
string name = 1;
google.protobuf.Struct parameters = 2;
}
message Execution {
string name = 1;
Action action = 2;
}
```

## [1.0.1] - 11th September 2019
This release adds support for excluding the fields from being indexed by google cloud datastore using a custom extension
in proto files. Following is an example.
Expand Down
319 changes: 0 additions & 319 deletions Gopkg.lock

This file was deleted.

Loading

0 comments on commit 30ca842

Please sign in to comment.