Commit Graph

362 Commits

Author SHA1 Message Date
Mukundan Sundararajan c7cc94d6d9
fix duration parsing (#714) 2022-03-23 22:20:18 -07:00
greenie-msft b0b6c4c7e5
Update tutorial link for observability (#711)
Signed-off-by: Nick Greenfield <nigreenf@microsoft.com>
2022-03-23 21:20:37 +05:30
Mukundan Sundararajan 436586292e
Add IntelliJ IT docs (#705)
* add intellij IT docs

Signed-off-by: Mukundan Sundararajan <msundar.ms@outlook.com>

* use wsl2

Signed-off-by: Mukundan Sundararajan <msundar.ms@outlook.com>
2022-03-21 20:59:39 -07:00
deepanshuagarwal 593da48bc4
Catering to all possible routes for Post Request (#700)
* Catering to all possible routes for Post Request

Signed-off-by: deepanshuagarwal <deepanshu.agarwal1984@gmail.com>

* Correcting checkstyle related violations

Signed-off-by: deepanshuagarwal <deepanshu.agarwal1984@gmail.com>

* Refactoring and Adding UTs for post method routes

Signed-off-by: deepanshuagarwal <deepanshu.agarwal1984@gmail.com>

* Using resolved topic name

Signed-off-by: deepanshuagarwal <deepanshu.agarwal1984@gmail.com>

* Shifting routesPostMethod to reduce its access

Signed-off-by: deepanshuagarwal <deepanshu.agarwal1984@gmail.com>

Co-authored-by: Mukundan Sundararajan <65565396+mukundansundar@users.noreply.github.com>
2022-03-21 14:27:29 +05:30
Mukundan Sundararajan 06d92dafca
Query State Preview API implementation. (#697)
* Query State Preview API implementation.

Signed-off-by: Mukundan Sundararajan <msundar.ms@outlook.com>

* Use latest dapr ref and fix grpc query state api

Signed-off-by: Mukundan Sundararajan <msundar.ms@outlook.com>

* fix service invocation automatic unesacpe

Signed-off-by: Mukundan Sundararajan <msundar.ms@outlook.com>

* add more unit tests

Signed-off-by: Mukundan Sundararajan <msundar.ms@outlook.com>

* Add query state API docs

Signed-off-by: Mukundan Sundararajan <msundar.ms@outlook.com>

* Fix example to be user friendly

Signed-off-by: Mukundan Sundararajan <msundar.ms@outlook.com>

* Fix example in docs

Signed-off-by: Mukundan Sundararajan <msundar.ms@outlook.com>

* make pagination immutable

Signed-off-by: Mukundan Sundararajan <msundar.ms@outlook.com>

Co-authored-by: Artur Souza <artursouza.ms@outlook.com>
2022-03-20 21:03:11 -07:00
Sky Ao e3fa24f67b
set maxRequestsPerHost of okhttp to support slow response requests and high TPS (#708)
* set maxRequestsPerHost of okjava to support slow response requests and high TPS

Signed-off-by: Sky Ao <aoxiaojian@gmail.com>

* fix typo in comments

Signed-off-by: Sky Ao <aoxiaojian@gmail.com>

* update comments

Signed-off-by: Sky Ao <aoxiaojian@gmail.com>

* update javadoc

Signed-off-by: Sky Ao <aoxiaojian@gmail.com>
2022-03-20 21:00:01 -07:00
Pravin Pushkar b7e41a0748
Adding link for MSFT JDK11 in README.md (#707)
Signed-off-by: pravinpushkar <ppushkar@microsoft.com>
2022-03-16 01:00:48 -07:00
Mukundan Sundararajan 0b881d3826
remove deprecated classes (#704)
* remove deprecated classes

Signed-off-by: Mukundan Sundararajan <msundar.ms@outlook.com>

* remove builder class ref in ITs

Signed-off-by: Mukundan Sundararajan <msundar.ms@outlook.com>

* fix setter in IT

Signed-off-by: Mukundan Sundararajan <msundar.ms@outlook.com>
2022-03-15 10:59:12 -07:00
Shubham Sharma 904dbe0b18
Update FOSSA workflow condition to not run on Forks (#706)
* Add workflow and badge

Signed-off-by: Shubham Sharma <shubhash@microsoft.com>

* Encode space in URL

Signed-off-by: Shubham Sharma <shubhash@microsoft.com>

* Update FOSSA workflow condition

Signed-off-by: Shubham Sharma <shubhash@microsoft.com>
2022-03-15 02:32:46 -07:00
Shubham Sharma eb215fbb3b
Add FOSSA workflow and badge (#703)
* Add workflow and badge

Signed-off-by: Shubham Sharma <shubhash@microsoft.com>

* Encode space in URL

Signed-off-by: Shubham Sharma <shubhash@microsoft.com>
2022-03-15 09:51:11 +05:30
dependabot[bot] 36763ea16f
Bump actions/checkout from 2 to 3 (#699)
Bumps [actions/checkout](https://github.com/actions/checkout) from 2 to 3.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/checkout/compare/v2...v3)

---
updated-dependencies:
- dependency-name: actions/checkout
  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>
2022-03-07 08:57:47 +05:30
dependabot[bot] 6bb29072ac
Bump actions/github-script from 5 to 6 (#684)
Bumps [actions/github-script](https://github.com/actions/github-script) from 5 to 6.
- [Release notes](https://github.com/actions/github-script/releases)
- [Commits](https://github.com/actions/github-script/compare/v5...v6)

---
updated-dependencies:
- dependency-name: actions/github-script
  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>
2022-03-05 22:04:40 +05:30
dependabot[bot] 70d88e71c4
Bump actions/setup-java from 2.5.0 to 3 (#696)
Bumps [actions/setup-java](https://github.com/actions/setup-java) from 2.5.0 to 3.
- [Release notes](https://github.com/actions/setup-java/releases)
- [Commits](https://github.com/actions/setup-java/compare/v2.5.0...v3)

---
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>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-03-03 22:19:40 +05:30
Mukundan Sundararajan 4c077e1de2
fix github action for dapr comment analyzer bot (#680)
Signed-off-by: Mukundan Sundararajan <msundar.ms@outlook.com>

Co-authored-by: Artur Souza <artursouza.ms@outlook.com>
2022-01-27 11:00:40 -08:00
Pravin Pushkar 9989832b56
Adding javadocs to some Domain classes (#673)
* Adding javadocs to some Domain classes

Signed-off-by: pravinpushkar <ppushkar@microsoft.com>

* Fixing code coverage

Signed-off-by: pravinpushkar <ppushkar@microsoft.com>

* Incorporating review comments

Signed-off-by: pravinpushkar <ppushkar@microsoft.com>
2022-01-27 03:00:49 -08:00
Artur Souza 3e5fe39933
Generate updated javadocs for 1.4.0 (#677) 2022-01-25 09:26:56 -08:00
Pravin Pushkar db33b48fd4
Java SDK - Documentation for configuration API methods (#676)
* Java SDK - Documentation for configuration API methods

Signed-off-by: pravinpushkar <ppushkar@microsoft.com>

* review comment fixes

Signed-off-by: pravinpushkar <ppushkar@microsoft.com>

Co-authored-by: Artur Souza <artursouza.ms@outlook.com>
2022-01-24 03:30:50 -08:00
Artur Souza 7f87b732c6
Update proto RC. (#674)
Signed-off-by: Artur Souza <artursouza.ms@outlook.com>
2022-01-20 16:43:52 -08:00
Artur Souza 0c2fcb48a2
Update for next release: 1.5.0 snapshot (#672)
* Update CLI and runtime to 1.6.0-rc.x

Signed-off-by: Artur Souza <artursouza.ms@outlook.com>

* Upgrade the version to 1.5.0-SNAPSHOT

Signed-off-by: Artur Souza <artursouza.ms@outlook.com>
2022-01-18 12:28:35 +05:30
Pravin Pushkar 185cdba293
Config api support (#670)
* inital draft for config api

Signed-off-by: Pravin Pushkar <ppushkar@microsoft.com>

* Introducing new client for preview apis and code refactoring

Signed-off-by: Pravin Pushkar <ppushkar@microsoft.com>

* Unit tests and code refactoring

Signed-off-by: Pravin Pushkar <ppushkar@microsoft.com>

* Adding integration test

Signed-off-by: pravinpushkar <ppushkar@microsoft.com>

* Copyright changes

Signed-off-by: pravinpushkar <ppushkar@microsoft.com>

* Review comments fixes

Signed-off-by: pravinpushkar <ppushkar@microsoft.com>

* Removed DaprPreviewClientProxy and updated example README

Signed-off-by: pravinpushkar <ppushkar@microsoft.com>

* Adding validate workflow for cofiguration api example

Signed-off-by: pravinpushkar <ppushkar@microsoft.com>

* fixing example autovalidation and code coverage

Signed-off-by: pravinpushkar <ppushkar@microsoft.com>

* Fixing autovalidation and removing getAllConfiguration

Signed-off-by: pravinpushkar <ppushkar@microsoft.com>

* Fixing review comments

Signed-off-by: pravinpushkar <ppushkar@microsoft.com>

* Add regex header checkstyle.

Signed-off-by: Artur Souza <artursouza.ms@outlook.com>

* Fix headers and add javadocs to some.

Signed-off-by: Artur Souza <artursouza.ms@outlook.com>

Co-authored-by: Artur Souza <artursouza.ms@outlook.com>
2022-01-12 16:01:13 -08:00
dependabot[bot] d8b8a5b4a8
Bump actions/setup-java from 2.4.0 to 2.5.0 (#668)
Bumps [actions/setup-java](https://github.com/actions/setup-java) from 2.4.0 to 2.5.0.
- [Release notes](https://github.com/actions/setup-java/releases)
- [Commits](https://github.com/actions/setup-java/compare/v2.4.0...v2.5.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>
Co-authored-by: Artur Souza <artursouza.ms@outlook.com>
2022-01-10 20:48:08 +05:30
Will 91dd2fbe7d
Add DCO requirements and updated code of conduct (#669)
Issue reference: dapr/docs#2039

Signed-off-by: Will <william.wl.tsai@gmail.com>
2021-12-30 00:04:20 -08:00
dependabot[bot] 413a036c58
Bump actions/github-script from 1 to 5 (#655)
Bumps [actions/github-script](https://github.com/actions/github-script) from 1 to 5.
- [Release notes](https://github.com/actions/github-script/releases)
- [Commits](https://github.com/actions/github-script/compare/v1...v5)

---
updated-dependencies:
- dependency-name: actions/github-script
  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>
2021-12-17 13:59:23 -08:00
greenie-msft d37881b469
Update LICENSE to Apache 2.0 (#657)
* Update LICENSE to Apache 2.0

Signed-off-by: Artur Souza <artursouza.ms@outlook.com>

* Update headers to Apache 2.

Signed-off-by: Artur Souza <artursouza.ms@outlook.com>

Co-authored-by: Artur Souza <artursouza.ms@outlook.com>
2021-12-09 20:15:47 +05:30
Artur Souza f31734d277
Fix vault example + Upgrade Dapr CLI and runtime. (#666)
* Upgrade Dapr CLI and runtime.

Signed-off-by: Artur Souza <artursouza.ms@outlook.com>

* Fix expected vault output.

Signed-off-by: Artur Souza <artursouza.ms@outlook.com>
2021-12-08 18:39:53 -08:00
dependabot[bot] 513ca429c0
Bump actions/setup-java from 2.3.1 to 2.4.0 (#663)
Bumps [actions/setup-java](https://github.com/actions/setup-java) from 2.3.1 to 2.4.0.
- [Release notes](https://github.com/actions/setup-java/releases)
- [Commits](https://github.com/actions/setup-java/compare/v2.3.1...v2.4.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-12-07 14:22:09 -08:00
Mukundan Sundararajan 05bf66e0d4
Add auto-assign dapr_bot workflow (#654) 2021-11-12 14:22:23 -08:00
Maarten Mulders be7edb17f6
Migrated out of JCenter as a Maven repository manager (#648)
* Upgrade okhttp-mock dependency

Version 1.3.2 was never deployed to Maven Central

* No longer refer to JCenter, as it has been shut down
2021-10-29 14:51:10 -07:00
Artur Souza b7c3bea202
Generate updated javadocs for 1.3.1 (#643) 2021-10-18 14:00:44 -07:00
Artur Souza 6ee25196fd
Split build and publish steps in pipeline. (#644)
* Split build and publish steps in pipeline.

* Update build.yml
2021-10-14 10:57:32 -07:00
Artur Souza 8404b77d8c
Filter out headers not required for W3C in service invocation. (#642) 2021-10-11 17:22:38 -07:00
dependabot[bot] ed43ba20c0
Bump codecov/codecov-action from 2.0.3 to 2.1.0 (#635)
Bumps [codecov/codecov-action](https://github.com/codecov/codecov-action) from 2.0.3 to 2.1.0.
- [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/v2.0.3...v2.1.0)

---
updated-dependencies:
- dependency-name: codecov/codecov-action
  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-10-11 16:26:22 -07:00
Ian Luo 5f4ee05d64
Add a new integration test to validate that the built jars are compatible with Java 8. #602 (#636)
Co-authored-by: Artur Souza <artursouza.ms@outlook.com>
2021-10-06 13:00:48 -07:00
dependabot[bot] 8d9a171be8
Bump actions/setup-java from 2.3.0 to 2.3.1 (#637)
Bumps [actions/setup-java](https://github.com/actions/setup-java) from 2.3.0 to 2.3.1.
- [Release notes](https://github.com/actions/setup-java/releases)
- [Commits](https://github.com/actions/setup-java/compare/v2.3.0...v2.3.1)

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

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-10-06 11:52:36 -07:00
Artur Souza 680915e832
Fix PubSubIT due to race in map. (#634) 2021-09-17 16:26:42 -07:00
Artur Souza addf6029c0
Generate updated javadocs for 1.3.0 (#633) 2021-09-17 15:54:13 -07:00
Artur Souza ed1fac1f89
Upgrade the version to 1.4.0-SNAPSHOT (#632) 2021-09-15 22:03:12 -07:00
Artur Souza 3561d68e6b
Update dapr and proto version to 1.4 RCs. (#628)
* Update dapr and proto version to 1.4 RCs.

* Fix publish to only run with JDK 11.
2021-09-10 15:55:03 -07:00
dependabot[bot] e22de39f43
Bump actions/setup-java from 2.2.0 to 2.3.0 (#610)
Bumps [actions/setup-java](https://github.com/actions/setup-java) from 2.2.0 to 2.3.0.
- [Release notes](https://github.com/actions/setup-java/releases)
- [Commits](https://github.com/actions/setup-java/compare/v2.2.0...v2.3.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>
Co-authored-by: Mukundan Sundararajan <musundar@microsoft.com>
2021-08-30 22:30:38 -07:00
Robert LU 9c85a0f78e
Update pom.xml example (#611)
* Update version of sdk
* Use xml format comment

Co-authored-by: Dapr Bot <56698301+dapr-bot@users.noreply.github.com>
2021-08-30 17:01:09 -07:00
dependabot[bot] bab9d85620
Bump codecov/codecov-action from 2.0.2 to 2.0.3 (#609)
Bumps [codecov/codecov-action](https://github.com/codecov/codecov-action) from 2.0.2 to 2.0.3.
- [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/v2.0.2...v2.0.3)

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

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-08-30 16:00:52 -07:00
Maarten Mulders 70e18d8b5a
Prepare build for Java16 (#598)
* Upgrade Mockito to latest version

* Run GitHub Actions on Java 11 and 16

* Run JUnit tests with `--add-opens java.base/java.util=ALL-UNNAMED`

* Move Surefire JVM arguments to Maven property

* Update build.yml

* Update validate.yml

* simplily build singleton dapr http (#590)

Co-authored-by: Artur Souza <artursouza.ms@outlook.com>

* Add Automerge workflow (#605)

* Add Automerge workflow

The automerge workflow will check for complete and approved pull requests and will merge them automatically.

Sources:
- For the python script to execute the merge: https://raw.githubusercontent.com/dapr/dapr/master/.github/scripts/automerge.py (only changed the label from "automerge" to "auto-merge")
- https://raw.githubusercontent.com/dapr/dapr/master/.github/workflows/dapr-bot-schedule.yml (only copied the automerge part, not the prune_stale part as that was not part of the issue.

Resolves https://github.com/dapr/java-sdk/issues/603

* Update automerge-bot.yml

* Update automerge-bot.yml

Co-authored-by: Artur Souza <artursouza.ms@outlook.com>

* Cleanup Maven POM files (#604)

Added fixed versions for maven-deploy-plugin & spring-boot-maven-plugin as this would otherwise break in a future maven version.

Also fixed some indenting and removed duplicate declarations.

Co-authored-by: Dapr Bot <56698301+dapr-bot@users.noreply.github.com>

* Add support for @PostMapping("/path") to pub/sub topic subscriptions (#583)

* Remove duplicate dependency

* Transform into managed dependencies

* Remove old JUnit version from dependencies

* Add tests for DaprBeanPostProcessor

* Also register PostMappings that use value

* Modify existing pub/sub test to no use @PostMapping(path="...")

* Remove added dependencies on AssertJ, Spring Test and Servlet API

* Remove test in favour of the sdk-tests one

Co-authored-by: Artur Souza <artursouza.ms@outlook.com>

* Run JUnit tests in all modules with java.base/java.util and java.base/java.lang opened to all modules

Co-authored-by: Artur Souza <artursouza.ms@outlook.com>
Co-authored-by: 浩 <inf2inf2@outlook.com>
Co-authored-by: Tom Cools <tom.cools@live.be>
Co-authored-by: Dapr Bot <56698301+dapr-bot@users.noreply.github.com>
2021-08-30 15:32:32 -07:00
Maarten Mulders 93dbbbb3ab
Advise how to resolve OkHttp version conflict with Spring Boot (#589)
Co-authored-by: Artur Souza <artursouza.ms@outlook.com>
Co-authored-by: Dapr Bot <56698301+dapr-bot@users.noreply.github.com>
2021-08-24 15:12:17 -07:00
Maarten Mulders 3c3a5277d6
Add support for @PostMapping("/path") to pub/sub topic subscriptions (#583)
* Remove duplicate dependency

* Transform into managed dependencies

* Remove old JUnit version from dependencies

* Add tests for DaprBeanPostProcessor

* Also register PostMappings that use value

* Modify existing pub/sub test to no use @PostMapping(path="...")

* Remove added dependencies on AssertJ, Spring Test and Servlet API

* Remove test in favour of the sdk-tests one

Co-authored-by: Artur Souza <artursouza.ms@outlook.com>
2021-08-20 19:37:18 -07:00
Tom Cools ac93218c5a
Cleanup Maven POM files (#604)
Added fixed versions for maven-deploy-plugin & spring-boot-maven-plugin as this would otherwise break in a future maven version.

Also fixed some indenting and removed duplicate declarations.

Co-authored-by: Dapr Bot <56698301+dapr-bot@users.noreply.github.com>
2021-08-20 19:07:31 -07:00
Tom Cools a9397abce0
Add Automerge workflow (#605)
* Add Automerge workflow

The automerge workflow will check for complete and approved pull requests and will merge them automatically.

Sources:
- For the python script to execute the merge: https://raw.githubusercontent.com/dapr/dapr/master/.github/scripts/automerge.py (only changed the label from "automerge" to "auto-merge")
- https://raw.githubusercontent.com/dapr/dapr/master/.github/workflows/dapr-bot-schedule.yml (only copied the automerge part, not the prune_stale part as that was not part of the issue.

Resolves https://github.com/dapr/java-sdk/issues/603

* Update automerge-bot.yml

* Update automerge-bot.yml

Co-authored-by: Artur Souza <artursouza.ms@outlook.com>
2021-08-20 18:27:33 -07:00
34bf149a1a
simplily build singleton dapr http (#590)
Co-authored-by: Artur Souza <artursouza.ms@outlook.com>
2021-08-20 16:21:40 -07:00
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