Commit Graph

808 Commits

Author SHA1 Message Date
greenie-msft 622b7d95c7
Change all references of app-id in bindings examples to batch-* (#699)
* Change all references of app-id in bindings examples to batch-*

Signed-off-by: Nick Greenfield <nigreenf@microsoft.com>

* fix typo

Signed-off-by: Nick Greenfield <nigreenf@microsoft.com>

* Add bindings test for GH e2e

Signed-off-by: Nick Greenfield <nigreenf@microsoft.com>

* Fix name of workflow

Signed-off-by: Nick Greenfield <nigreenf@microsoft.com>

* Fix GH e2e tests and fix GO http test

Signed-off-by: Nick Greenfield <nigreenf@microsoft.com>
2022-06-24 12:33:24 -07:00
Paul Yuknewicz 7b202e5536
Updating uber readme for all quickstarts with Bindings & Secrets content link (#698)
* updating readme for all quickstarts:
- added link to new Bindings quickstart
- tightened up descriptons (remove "Demonstrates repetition", and better explain the role of the building block in the sample)

Signed-off-by: Paul Yuknewicz <paulyuk@microsoft.com>

* Secrets is there too, so updating readme

Signed-off-by: Paul Yuknewicz <paulyuk@microsoft.com>
2022-06-22 19:03:48 -07:00
nirmash 31c86fe865
Binding quickstart - Cron input PostgreSQL output (#669)
* Binding quickstart - Cron input PostgreSQL output
Signed-off-by: Nir Mashkowski <nimashkowski@microsoft.com>

* Updated to properly load from APP_PORT and DAPR_HTTP_PORT, or default value.

Signed-off-by: Paul Yuknewicz <paulyuk@microsoft.com>

* Adds Dockerfile and docker compose file to initialize orders table in postgress in an automated way.

Signed-off-by: Paul Yuknewicz <paulyuk@microsoft.com>

* Moving database files to db folder and add README

Signed-off-by: Paul Yuknewicz <paulyuk@microsoft.com>

* readme updates

Signed-off-by: Paul Yuknewicz <paulyuk@microsoft.com>

* Cleaning up bindings file names

Signed-off-by: Paul Yuknewicz <paulyuk@microsoft.com>

* Fixing crash caused by moving orders.json.  keeping in root folder.

Signed-off-by: Paul Yuknewicz <paulyuk@microsoft.com>

* Tuning names and flake8 lint pass

Signed-off-by: Paul Yuknewicz <paulyuk@microsoft.com>

* Complete code and lint review of Python examples

Signed-off-by: Paul Yuknewicz <paulyuk@microsoft.com>

* updating comments with `dapr run ..` that works

Signed-off-by: Paul Yuknewicz <paulyuk@microsoft.com>

* Lowercase sqldb binding; fixing request formatting and error handling

Signed-off-by: Paul Yuknewicz <paulyuk@microsoft.com>

* removed grpc dependency and use flask for routes

Signed-off-by: Paul Yuknewicz <paulyuk@microsoft.com>

* Fixed Axios issues with incorrect playload

Signed-off-by: Paul Yuknewicz <paulyuk@microsoft.com>

* fixed env vars and var groups

Signed-off-by: Paul Yuknewicz <paulyuk@microsoft.com>

* Fixed forced exit, and comments

Signed-off-by: Paul Yuknewicz <paulyuk@microsoft.com>

* Go changes for styling and cont. event handling

Signed-off-by: Paul Yuknewicz <paulyuk@microsoft.com>

* Adding READMEs and MMD tests for Python

Signed-off-by: Paul Yuknewicz <paulyuk@microsoft.com>

* Adding C# README files and MMD tests

Signed-off-by: Paul Yuknewicz <paulyuk@microsoft.com>

* Adding Go README files and MMD tests

Signed-off-by: Paul Yuknewicz <paulyuk@microsoft.com>

* Adding Javascript README files and MMD

Signed-off-by: Paul Yuknewicz <paulyuk@microsoft.com>

* Renamed `app` files in each language to be consistent with idiom.  e.g. program.cs for C#, index.js for Javascript, and app.python for Python.  Per review feedback from @amulyavarote

Signed-off-by: Paul Yuknewicz <paulyuk@microsoft.com>

* updating server port to be string

Signed-off-by: Paul Yuknewicz <paulyuk@microsoft.com>

* Changing folder structure for consistency. Nesting language source files in `./batch` for http and sdk variations. Fixing up code and readmes to match.

Signed-off-by: Paul Yuknewicz <paulyuk@microsoft.com>

* Adding makefiles for validate (MMD test) and docker (inert)

Signed-off-by: Paul Yuknewicz <paulyuk@microsoft.com>

* Adjusting MMD with escape chars and sleeps

Signed-off-by: Paul Yuknewicz <paulyuk@microsoft.com>

* Fixed make validate (match, timeouts, sleeps) for C# and Go

Signed-off-by: Paul Yuknewicz <paulyuk@microsoft.com>

* Updated MMD with precision fixes.  All passing!

Signed-off-by: Paul Yuknewicz <paulyuk@microsoft.com>

* change for java maven builds to build clean

Signed-off-by: Paul Yuknewicz <paulyuk@microsoft.com>

* WIP on Java

Signed-off-by: Paul Yuknewicz <paulyuk@microsoft.com>

* Java SDK is done!

Signed-off-by: Paul Yuknewicz <paulyuk@microsoft.com>

* Java signed off!

Signed-off-by: Paul Yuknewicz <paulyuk@microsoft.com>

* pretty formatted POM and java so better with merges in future

Signed-off-by: Paul Yuknewicz <paulyuk@microsoft.com>

* Update bindings/javascript/sdk/README.md

Accepted

Co-authored-by: greenie-msft <56556602+greenie-msft@users.noreply.github.com>

Co-authored-by: Paul Yuknewicz <paulyuk@microsoft.com>
Co-authored-by: Mark Fussell <markfussell@gmail.com>
Co-authored-by: greenie-msft <56556602+greenie-msft@users.noreply.github.com>
2022-06-22 18:06:18 -07:00
Matt Mazzola 6ae6eb1305
Fix and normalize the Javascript HTTP and SDK styles of State Management (#687)
* Fix and normalize the Javascript HTTP and SDK styles of State Management

Signed-off-by: Amulya Varote <amulyavarote@microsoft.com>

* Change SDK to use @dapr/dapr and construct URL from protocol

Signed-off-by: Amulya Varote <amulyavarote@microsoft.com>

* Split PORT out from HOST

Signed-off-by: Amulya Varote <amulyavarote@microsoft.com>

* Formatting and remove unecessary toStrings

Signed-off-by: Amulya Varote <amulyavarote@microsoft.com>

* Add missing break statements

Signed-off-by: Amulya Varote <amulyavarote@microsoft.com>

* Use CommunicationProtocolEnum and remove orderId

Signed-off-by: Amulya Varote <amulyavarote@microsoft.com>

* Fixed state management validation

Signed-off-by: Amulya Varote <amulyavarote@microsoft.com>

Co-authored-by: Amulya Varote <amulyavarote@microsoft.com>
2022-06-14 13:46:52 -07:00
Arash Rohani 426af20d0f
Removed the extra space in expected test result (#689)
* Removed the extra space in expected test result

Signed-off-by: Arash Rohani <Arash.Rohani@gmail.com>

* Changed the output match from exact to substring to fix the issue.

Signed-off-by: Arash Rohani <Arash.Rohani@gmail.com>

* Replaced the logger.LogInformation with Console.WriteLine to fix the test issue.

Signed-off-by: Arash Rohani <Arash.Rohani@gmail.com>

* Fixed the whitespace issue and added sleep directive

Signed-off-by: Arash Rohani <Arash.Rohani@gmail.com>
2022-06-09 20:39:00 -07:00
amulyavarote 24deefe407
Merge pull request #690 from pravinpushkar/master
Fix for failing Auto validate Java examples on State management
2022-06-09 11:51:16 -07:00
Paul Yuknewicz 76cb7592cd
Fix CodeSpace failure for quickstarts repo (#692)
* pulling a prebuilt image to try overcoming CodeSpace 'out of storage' issue on build.

Signed-off-by: Paul Yuknewicz <paulyuk@microsoft.com>

* trying published MCR image for universal

Signed-off-by: Paul Yuknewicz <paulyuk@microsoft.com>

* removing http from tag

Signed-off-by: Paul Yuknewicz <paulyuk@microsoft.com>

* Taking working mcr image and adding dockerfile customizations

Signed-off-by: GitHub <noreply@github.com>

* Update Dockerfile

Updating image pull to use a cached image for CodeSpaces
2022-06-08 17:42:49 -07:00
Pravin Pushkar 1ddb4809bc java examples auto validate
Signed-off-by: Pravin Pushkar <ppushkar@microsoft.com>
2022-06-08 17:20:14 +05:30
Pravin Pushkar d89d77666e java examples auto validate
Signed-off-by: Pravin Pushkar <ppushkar@microsoft.com>
2022-06-08 16:12:02 +05:30
Paul Yuknewicz 1bce2a2142
Merge pull request #688 from amulyavarote/state_mgnt_workflow
Changed state management workflow
2022-06-06 11:37:44 -07:00
Amulya Varote 3675c06ca0 Commented Java workflow
Signed-off-by: Amulya Varote <amulyavarote@microsoft.com>
2022-06-06 09:44:05 -07:00
Amulya Varote c3e8355e40 Changed state management workflow
Signed-off-by: Amulya Varote <amulyavarote@microsoft.com>
2022-06-06 09:22:22 -07:00
Paul Yuknewicz 2f37181877
Merge pull request #685 from akhilac1/hotfix_quickstarts_app_port
#682 APP_PORT not injected into app container
2022-06-05 13:21:32 -07:00
AkhilaC 69efc77a77
Update tutorials/bindings/nodeapp/app.js
Co-authored-by: Paul Yuknewicz <paulyuk@microsoft.com>
2022-06-05 21:33:53 +05:30
AkhilaC 7787b0cbf2
Update tutorials/hello-world/node/app.js
Co-authored-by: Paul Yuknewicz <paulyuk@microsoft.com>
2022-06-05 18:43:30 +05:30
AkhilaC cd282dc942
Update tutorials/distributed-calculator/node/app.js
Co-authored-by: Paul Yuknewicz <paulyuk@microsoft.com>
2022-06-05 18:43:23 +05:30
AkhilaC ec4d0a7ab8
Update pub_sub/javascript/http/order-processor/index.js
Co-authored-by: Paul Yuknewicz <paulyuk@microsoft.com>
2022-06-05 18:43:08 +05:30
akhilac1 487ddaaae7 revert python launch command
Signed-off-by: akhilac1 <chetlapalle.akhila@gmail.com>
2022-06-04 16:28:51 +05:30
akhilac1 8d50f5d776 clean up test commands from yaml
Signed-off-by: akhilac1 <chetlapalle.akhila@gmail.com>
2022-06-04 16:13:39 +05:30
akhilac1 b866cd6cfe Merge branch 'hotfix_quickstarts_app_port' of https://github.com/akhilac1/quickstarts into hotfix_quickstarts_app_port
Signed-off-by: akhilac1 <chetlapalle.akhila@gmail.com>
2022-06-04 16:04:45 +05:30
AkhilaC 4ea5640546 Update app.py
Signed-off-by: akhilac1 <chetlapalle.akhila@gmail.com>
2022-06-04 15:42:48 +05:30
akhilac1 11c10d9336 Merge branch 'hotfix_quickstarts_app_port' of https://github.com/akhilac1/quickstarts into hotfix_quickstarts_app_port 2022-06-04 15:06:24 +05:30
akhilac1 2917cbfeb4 #682 APP_PORT not injected into app container
Signed-off-by: akhilac1 <chetlapalle.akhila@gmail.com>
2022-06-04 15:02:25 +05:30
AkhilaC 95bc6282e9
Update app.py 2022-06-04 14:34:57 +05:30
akhilac1 78caa028b2 #682 APP_PORT not injected into app container
Signed-off-by: akhilac1 <chetlapalle.akhila@gmail.com>
2022-06-04 12:59:48 +05:30
Paul Yuknewicz c0e29ad8c2
Sets APP_PORT in env var of kubernetes yaml and sets default value in… (#683)
* Sets APP_PORT in env var of kubernetes yaml and sets default value in code if not set.  Fixes #682

Signed-off-by: Paul Yuknewicz <paulyuk@microsoft.com>

* fixed whitespace in yaml for env var "value: "

Signed-off-by: Paul Yuknewicz <paulyuk@microsoft.com>

* fixing to point to public container image vs test image

Signed-off-by: Paul Yuknewicz <paulyuk@microsoft.com>
2022-06-03 23:04:39 -07:00
amulyavarote 6165f17be6
Merge pull request #677 from amulyavarote/build_failure_fix
Fixing the broken link for dapr kubernetes installation
2022-06-02 15:13:22 -07:00
Amulya Varote 275ae6561a Reverting the change
Signed-off-by: Amulya Varote <amulyavarote@microsoft.com>
2022-06-02 14:57:05 -07:00
Amulya Varote 958bee459c Fixing the broken link for dapr kubernetes installation
Signed-off-by: Amulya Varote <amulyavarote@microsoft.com>
2022-06-01 15:43:18 -07:00
Paul Yuknewicz 5471679e6f
Merge pull request #674 from Arashrohani/new-subscriber
Updated makefile and Dockerfile to fix the issue related to dotnet docker build
2022-06-01 00:39:03 -07:00
AkhilaC f76035198b
Fix quickstarts to use app-port (#675)
Signed-off-by: akhilac1 <chetlapalle.akhila@gmail.com>
2022-05-31 16:05:37 -07:00
amulyavarote 835d875b55
Added go examples for secrets management (#676)
* Added secrets management examples for go

Signed-off-by: Amulya Varote <amulyavarote@microsoft.com>

* Changes based on the review comments

Signed-off-by: Amulya Varote <amulyavarote@microsoft.com>

Co-authored-by: Paul Yuknewicz <paulyuk@microsoft.com>
2022-05-31 16:02:45 -07:00
Arash Rohani 67002ec9b9 Updated makefile and Dockerfile to fix the issue related to dotnet docker build for arm
Signed-off-by: Arash Rohani <Arash.Rohani@gmail.com>
2022-05-27 09:26:37 -07:00
Paul Yuknewicz 5b7e81c182
Merge pull request #673 from dapr/revert-672-new-subscriber
Revert "Updated the docker file to use linux arm image"
2022-05-26 23:51:34 -07:00
Paul Yuknewicz 74bd70789c
Revert "Updated the docker file to use linux arm image" 2022-05-26 23:50:28 -07:00
Paul Yuknewicz 51fbc011f6
Merge pull request #672 from Arashrohani/new-subscriber
Updated the docker file to use linux arm image
2022-05-26 23:40:11 -07:00
Arash Rohani 75bc8735ae Updated the docker file to use linux arm image
Signed-off-by: Arash Rohani <Arash.Rohani@gmail.com>
2022-05-25 20:21:54 -07:00
Paul Yuknewicz 7167b10b31
Merge pull request #485 from Arashrohani/new-subscriber
New C# subscriber
LGTM and I want to take this now, to unblock the docker push, which should get the last tests to pass.  If not we will fix right away.
2022-05-25 17:59:35 -07:00
Arash Rohani a7a497d131 Updated the README regarding the C# changes and fixed a typo.
Signed-off-by: Arash Rohani <arash.rohani@gmail.com>
2022-05-24 10:23:25 -07:00
Arash Rohani 53aeab771b Removed the whole if condition section.
Signed-off-by: Arash Rohani <arash.rohani@gmail.com>
2022-05-24 10:23:25 -07:00
Arash Rohani 363bcffe5b Removed Swagger support and Updated the missing steps in README.
Signed-off-by: Arash Rohani <arash.rohani@gmail.com>
2022-05-24 10:23:25 -07:00
Arash Rohani e2012ef513 Updated makefile and readme.me to fix the build issue.
Signed-off-by: Arash Rohani <arash.rohani@gmail.com>
2022-05-24 10:23:25 -07:00
Arash Rohani 5c6fc9b029 Upgraded to ASP.NET Core 6 Minimal API
Signed-off-by: Arash Rohani <arash.rohani@gmail.com>
2022-05-24 10:23:25 -07:00
Arash Rohani b0a70d9e61 Added the new MessageEvent class
Signed-off-by: Arash Rohani <arash.rohani@gmail.com>
2022-05-24 10:23:25 -07:00
Arash Rohani 5eb6812d75 Updated the prot in launchSettings.json
Signed-off-by: Arash Rohani <arash.rohani@gmail.com>
2022-05-24 10:23:25 -07:00
Arash Rohani 45c7bd5d88 Updated the README.md, Added a new yaml file and updated the appsettings.json to use the new port.
Signed-off-by: Arash Rohani <arash.rohani@gmail.com>
2022-05-24 10:23:25 -07:00
Arash Rohani f305054083 Added the csharp subscriber sample.
Signed-off-by: Arash Rohani <arash.rohani@gmail.com>
2022-05-24 10:23:25 -07:00
Noah Gao 8657a679bb
feat(pub_sub/go/sdk): Upgrade Dapr Go SDK to 1.4.0 (#666)
* feat(pub_sub/go/sdk): Upgrade Dapr Go SDK to 1.4.0

Signed-off-by: Noah Gao <noahgaocn@outlook.com>

* feat(pub_sub/go/sdk): move dapr/dapr to v1.7.2

Signed-off-by: gaoziheng <gaoziheng@bytedance.com>

* fix(pubsub/go/sdk): Tidy mod

Signed-off-by: Noah Gao <noahgaocn@outlook.com>

* fix(pubsub/go/sdk): Go SDK Subscriber Type change to map

Signed-off-by: Noah Gao <noahgaocn@outlook.com>
2022-05-24 08:10:25 -07:00
Tony Surma 71e5489c6d
add folder paths to launch for split projects (#493)
Signed-off-by: tonysurma <5067595+tonysurma@users.noreply.github.com>

Co-authored-by: tonysurma <5067595+tonysurma@users.noreply.github.com>
2022-05-23 15:05:50 -07:00
Pravin Pushkar eb69a7ce12
Java quickstarts auto validate for pubsub, state mgmt and service invo (#671)
* Java quickstarts auto validate changes

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

* changing action-setup-docker version for macos failures

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

* Changing actions-setup-docker version to v1

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

* Script for installing docker on macos instead of actions-setup-docker

Signed-off-by: Pravin Pushkar <ppushkar@microsoft.com>
2022-05-23 11:58:05 -07:00