Commit Graph

415 Commits

Author SHA1 Message Date
Mukundan Sundararajan f199afba95
deprecate builders and add setters for domain classes (#596)
* deprecate builders and add setters for domain classes
exclude builders from coverage checks
properly set parallelism for getbulkstaterequest
Initialize default metadata to empty HashMap PublishEventRequest
Decrease code coeverage ratio for dapr-sdk

* Fix casing
2021-08-20 14:54:01 -07:00
dependabot[bot] d423e326f3
Bump actions/setup-java from 2.1.0 to 2.2.0 (#595)
Bumps [actions/setup-java](https://github.com/actions/setup-java) from 2.1.0 to 2.2.0.
- [Release notes](https://github.com/actions/setup-java/releases)
- [Commits](https://github.com/actions/setup-java/compare/v2.1.0...v2.2.0)

---
updated-dependencies:
- dependency-name: actions/setup-java
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-08-17 15:23:14 -07:00
Maarten Mulders ae5c2a1314
Declare CloudEvent generic to allow automatic payload deserialization using Jackson (#591)
* Declare CloudEvent generic

* Fix timestamp in logging

* Declare Spring Boot version once

* Simplify administration of received events

* Update docs

* Always return a list, even if it's empty

Rather than returning `null` when no
messages are present for a topic.
2021-08-13 13:52:37 -07:00
dependabot[bot] df54a5dc2c
Bump codecov/codecov-action from 1 to 2.0.2 (#584)
Bumps [codecov/codecov-action](https://github.com/codecov/codecov-action) from 1 to 2.0.2.
- [Release notes](https://github.com/codecov/codecov-action/releases)
- [Changelog](https://github.com/codecov/codecov-action/blob/master/CHANGELOG.md)
- [Commits](https://github.com/codecov/codecov-action/compare/v1...v2.0.2)

---
updated-dependencies:
- dependency-name: codecov/codecov-action
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Artur Souza <artursouza.ms@outlook.com>
Co-authored-by: Mukundan Sundararajan <musundar@microsoft.com>
2021-07-30 11:52:22 -07:00
Artur Souza f717cd6173
Generate updated javadocs for 1.2.0 (#586) 2021-07-29 09:17:05 -07:00
greenie-msft d3df194bad
Add dapr docs (#581)
* Add Dapr Docs

* Added Java code examples for all building blocks

* Fixed version numbers and comments

* Fixed version numbers

* Update java-contributing.md

* PR review updates.

- Reduce Dapr version to 1.1.0
- Correct code syntax
- Describe Virtual Actors Pattern

* Change version back to 1.1.0

* Add Dapr Docs

* Added Java code examples for all building blocks

* Fixed version numbers and comments

* Fixed version numbers

* Update java-contributing.md

* PR review updates.

- Reduce Dapr version to 1.1.0
- Correct code syntax
- Describe Virtual Actors Pattern

* Change version back to 1.1.0

* Reference shortcode for java sdk version

* Update docs version script

* Rever version of SDK to 1.1.0

Co-authored-by: Paul Yuknewicz <paulyuk@microsoft.com>
Co-authored-by: Artur Souza <artursouza.ms@outlook.com>
2021-07-26 13:23:04 -07:00
Kevin_T 50f80d8af5
chore: format some places to make the code more standardized (#578)
* chore: format some places to make the code more standardized

* test: add unit test for {@code DaprClient#getState} to cover {@code StateOptions#getStateOptionsAsMap}
2021-07-21 14:09:38 -07:00
Artur Souza 94448a9f09
Update to use runtime and CLI 1.3 RC1. (#580) 2021-07-19 09:19:28 -07:00
Bernd Verst c3e60bb2ef
Update GRPC libraries for security updates (#573)
* Update pom.xml

* Update pom.xml

* Update pom.xml

* Define GRPC version as build property

Co-authored-by: Artur Souza <artursouza.ms@outlook.com>
2021-07-14 16:39:24 -07:00
Bernd Verst 48b2d44aa7
Add support for configuring actor reminder storage partitions (#574)
* Update GRPC libraries for security updates

* AdConfigurable actor reminder storage patitions

* autoformat code

* Fix test and linter error

* more autoformatting

* competing style checker :(

Co-authored-by: Ubuntu <beverst@beverst-ubuntu.4gvshbv0hrpejbsei5kugsxnoc.xx.internal.cloudapp.net>
Co-authored-by: Artur Souza <artursouza.ms@outlook.com>
2021-07-12 16:02:25 -07:00
dependabot[bot] fdbd084fd4
Bump actions/setup-java from 1 to 2.1.0 (#572)
* Bump actions/setup-java from 1 to 2.1.0

Bumps [actions/setup-java](https://github.com/actions/setup-java) from 1 to 2.1.0.
- [Release notes](https://github.com/actions/setup-java/releases)
- [Commits](https://github.com/actions/setup-java/compare/v1...v2.1.0)

---
updated-dependencies:
- dependency-name: actions/setup-java
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>

* Update build.yml

* Update validate.yml

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Artur Souza <artursouza.ms@outlook.com>
2021-07-12 15:37:49 -07:00
Aaron Crawfis 6ff64d0445
Update CODEOWNERS (#571)
Co-authored-by: Artur Souza <artursouza.ms@outlook.com>
2021-07-02 18:38:35 -07:00
Bernd Verst 527d6c6aa9
Enable dependabot for all packages. (#570)
* Enable dependabot for all packages.

* Make dependabot PRs against special branch
2021-07-02 18:30:04 -07:00
Justin Rovang 0e5e3112de
Added SPEL evaluation against spring boot @Topic attributes (#556)
* [WIP] Added SPEL evaluation against spring boot @Topic name and pubsubname attributes

* [WIP] Updated SubscriberController to use SPEL in @Topic

* 554 - SPEL for @Topic attributes: Updated documentation and examples

* Updated documentation as discussed

* Update README.md

* Update SubscriberController.java

Co-authored-by: Artur Souza <artursouza.ms@outlook.com>
2021-06-17 22:48:45 -07:00
Artur Souza 5c05f3d9c7
Change Actor gRPC client to async. (#564) 2021-06-14 13:37:31 -07:00
delvh d056d9a780
Remove no Longer Needed External Maven Repositories From README (#557)
* Remove no longer needed external maven repositories

* Update README.md

Co-authored-by: Artur Souza <artursouza.ms@outlook.com>
2021-06-06 23:43:53 -07:00
Xiong, Pin 9ce75d977e
fix: Fatal error compiling: invalid flag: --release (#560)
* fix: Fatal error compiling: invalid flag: --release

* Update README.md

Co-authored-by: Artur Souza <artursouza.ms@outlook.com>
2021-06-02 23:38:53 -07:00
halspang b1e54384c1
Generate updated javadocs for 1.1.0 (#553)
GitHub actions is stuck and this PR is for auto-generated docs only.
2021-05-26 20:34:59 -07:00
halspang 2eb6e1d9e3
Upgrade the version to 1.2.0-SNAPSHOT (#549) 2021-05-19 22:01:28 -07:00
Artur Souza 27ce598369
Bring back stop examples, use 1.2 RCs (#548)
* Revert "Update refs to release-1.2-rc1 (#547)"

This reverts commit 30c008939a.

* Update CLI and daprd to 1.2.0 RCs.
2021-05-19 13:08:05 -07:00
halspang 30c008939a
Update refs to release-1.2-rc1 (#547) 2021-05-18 20:28:37 -07:00
Artur Souza 33f793c186
Return empty metadata for key not found + add IT test. (#528) 2021-05-14 11:37:09 -07:00
Artur Souza dfd0d5c7af
Modify the pubsub example to have custom span. (#538) 2021-05-03 11:26:21 -07:00
Artur Souza 7467575a97
Revert "Adjusted the configuration of Maven. (#532)" (#536)
This reverts commit 5cc79811cb.
2021-04-29 18:48:29 -07:00
LLLLimbo 5cc79811cb
Adjusted the configuration of Maven. (#532)
* Adjusted the configuration of Maven.

* Update pom.xml

* Remove os-maven-plugin and spring-boot-maven-plugin in parent pom

* Add version of spring-boot-maven-plugin in the example pom.
Add spring-boot-dependencies dependency management in sdk-springboot.
Add maven-compiler-plugin to the parent pom's pluginManagement
Remove protoc-jar-maven-plugin in  example's dependencies.

* Update pom.xml

Co-authored-by: Artur Souza <artursouza.ms@outlook.com>
Co-authored-by: Mukundan Sundararajan <musundar@microsoft.com>
2021-04-26 23:26:11 -07:00
halspang a654861def
Add shutdown API support (#530)
* Add shutdown API support

https://github.com/dapr/java-sdk/issues/529

* Utilize POST instead of GET for shutdown API
2021-04-07 11:42:00 -07:00
halspang bdf8e86b87
Add pause between stopping/starting runtime (#526)
ActorReminderRecoveryIT and ActorTimerRecoveryIT both rely
on reminders/timers being persisted when dapr restarts. On some
restarts, it appears that the placement service shares its placement
table during on ongoing update. This causes the dapr runtime to use
the wrong address for the actor.

https://github.com/dapr/java-sdk/issues/425
2021-04-05 09:29:09 -07:00
Artur Souza 621d4f846f
Update to runtime and cli v1.1.0-rc.1 (#527)
* Update to runtime and cli v1.1.0-rc.1

* Update sample validation too.
2021-03-25 15:02:42 -07:00
Artur Souza c9ab3a6390
Revert "Merge pull request #504 from abogdanov37/feature_fix-statestore-serialization" (#519)
This reverts commit 1eff655d82, reversing
changes made to a5051e07a8.
2021-03-23 17:09:52 -07:00
Artur Souza 589a352450
w3c tracing integration test (#522)
* w3c tracing integration test

* Addresses PR comments.
2021-03-23 14:30:34 -07:00
Artur Souza 9662265426
Generate updated javadocs for 1.0.2 (#521) 2021-03-23 14:08:21 -07:00
Artur Souza 6c90286f8a
Merge pull request #516 from artursouza/fix_state_trx
Fix HTTP save state transaction.
2021-03-17 10:10:11 -07:00
Artur Souza 788eea605c Fix HTTP save state transaction. 2021-03-17 00:14:46 -07:00
Artur Souza 9c5084b56f
Merge pull request #511 from xiazuojie/master
remove protoc-jar-maven-plugin as dependency for sdk-autogen
2021-03-12 12:41:59 -08:00
Xia Zuojie fdefe91690 remove protoc-jar-maven-plugin as dependency for sdk-autogen 2021-03-12 11:11:13 +08:00
Artur Souza dcaffe8932
Merge pull request #508 from artursouza/tracing_example_validate
Auto-validation for tracing sample.
2021-03-11 15:08:51 -08:00
Artur Souza 5f379f2637
Merge branch 'master' into tracing_example_validate 2021-03-11 11:26:03 -08:00
Artur Souza 1eff655d82
Merge pull request #504 from abogdanov37/feature_fix-statestore-serialization
Fix issue where custom JSOn serializer generates Base64 encoded data in state store
2021-03-11 11:25:19 -08:00
abogdanov37 51b44be76d
Merge branch 'master' into feature_fix-statestore-serialization 2021-03-11 22:06:14 +03:00
Artur Souza 1d36d550f9
Merge branch 'master' into tracing_example_validate 2021-03-11 10:20:29 -08:00
Artur Souza a5051e07a8
Merge pull request #507 from artursouza/remove_pngs
Remove all example PNGs that are text only.
2021-03-11 10:19:25 -08:00
Artur Souza 157d5bef11 Auto-validation for tracing sample. 2021-03-10 23:59:27 -08:00
Andrey Bogdanov db97c19bd0 Fix unit tests. Add comments. 2021-03-11 10:23:55 +03:00
Andrey Bogdanov 9bf4adeae5 Revert changes with ObjectSerializer class. 2021-03-11 09:54:44 +03:00
Andrey Bogdanov a3c7056be2 Revert changes with ObjectSerializer class. 2021-03-11 09:52:57 +03:00
Artur Souza c574955214 Remove all example PNGs that are text only. 2021-03-10 22:12:42 -08:00
Andrey Bogdanov 4c0d043fb4 Change strategy to find Json serializer by content type 2021-03-10 15:42:09 +03:00
Andrey Bogdanov 6bfd6844bc Up test coverage. 2021-03-10 14:12:30 +03:00
Andrey Bogdanov c58b9b3bca Refactor ObjectSerializer class to add ability set custom object mapper. Refactor DaprStateAsyncprovider class to use custom serializers based on ObjectSerializer class as Json serializer. Add unit tests. 2021-03-09 16:10:23 +03:00
Artur Souza 9296a83323
Merge pull request #495 from artursouza/merge_release_100
Merge release 1.0.0 into master
2021-02-16 19:01:08 -08:00