Commit Graph

359 Commits

Author SHA1 Message Date
Mike Nguyen aded0b64d7
release: version bump and tidy (#673)
Signed-off-by: mikeee <hey@mike.ee>
2025-01-15 10:50:38 -08:00
Yaron Schneider 34fd54eb81
Add trace headers to http subscriptions (#671)
* add trace headers to http subscriptions

Signed-off-by: yaron2 <schneider.yaron@live.com>

* fix json

Signed-off-by: yaron2 <schneider.yaron@live.com>

---------

Signed-off-by: yaron2 <schneider.yaron@live.com>
2025-01-13 13:12:39 -08:00
Mike Nguyen c97fd6f30d
chore: bump validation dapr runtime to 1.15.0-rc.2 (#667)
* chore: bump validation dapr runtime to 1.15.0-rc.2

Signed-off-by: Mike Nguyen <hey@mike.ee>

* fix: replace dead api

Signed-off-by: Mike Nguyen <hey@mike.ee>

* fix: remove duetime and period

The scheduler reminders subsystem now being the default

Signed-off-by: Mike Nguyen <hey@mike.ee>

---------

Signed-off-by: Mike Nguyen <hey@mike.ee>
2025-01-13 08:37:02 -08:00
Fabian Martinez 2ab3420adc
update durabletask ref (#666)
* update durabletask ref

Signed-off-by: Fabian Martinez <46371672+famarting@users.noreply.github.com>

* lint

Signed-off-by: Fabian Martinez <46371672+famarting@users.noreply.github.com>

---------

Signed-off-by: Fabian Martinez <46371672+famarting@users.noreply.github.com>
2025-01-03 01:30:30 -08:00
Diego Cardoso 495a389ff0
Update Dependencies - fix sec vulnerability (#658)
* update dependencies

* update dependencies
2024-12-13 08:44:16 -08:00
Hannah Hunter 7c63bb9ae1
add workflow to client doc (#657)
Signed-off-by: Hannah Hunter <hannahhunter@microsoft.com>
2024-12-09 17:06:46 -08:00
Michael Collins 31346f0d54
Introduce interface for topic event subscriber (#661)
* Introduce interface for topic event subscriber

I introduced the TopicEventSubscriber interface to allow for
subscribers to be implemented as structs. This will allow subscribers
to be initialized with any settings or dependencies needed to process
incoming events.

I converted TopicEventHandler to implement TopicEventSubscriber. I
revised TopicRegistrar to store TopicEventSubscribers instead of
TopicEventHandlers.

Resolves #660

Signed-off-by: Michael Collins <mfcollins3@me.com>

* Update go-service documentation

I added examples of how to use the TopicEventSubscriber interface to
create a new subscriber for both HTTP and gRPC services.

Signed-off-by: Michael Collins <mfcollins3@me.com>

---------

Signed-off-by: Michael Collins <mfcollins3@me.com>
2024-12-09 08:54:56 -08:00
Fabian Martinez 921a6a79c5
update durabletask to use fork and child workflow retries (#656)
* update durabletask to use fork and child workflow retries

Signed-off-by: Fabian Martinez <46371672+famarting@users.noreply.github.com>

* lint

Signed-off-by: Fabian Martinez <46371672+famarting@users.noreply.github.com>

---------

Signed-off-by: Fabian Martinez <46371672+famarting@users.noreply.github.com>
2024-12-04 07:12:56 -08:00
dependabot[bot] 282a58bc9c
chore(deps): bump github.com/dapr/dapr (#655)
Bumps [github.com/dapr/dapr](https://github.com/dapr/dapr) from 1.14.5-0.20241120233620-c86a77f6db5f to 1.15.0-rc.1.
- [Release notes](https://github.com/dapr/dapr/releases)
- [Changelog](https://github.com/dapr/dapr/blob/master/RELEASE.md)
- [Commits](https://github.com/dapr/dapr/commits/v1.15.0-rc.1)

---
updated-dependencies:
- dependency-name: github.com/dapr/dapr
  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>
2024-11-28 12:58:38 -08:00
Mike Nguyen dce63f1917
Add support for the conversation API (#646)
* feat: conversation api implementation

Signed-off-by: mikeee <hey@mike.ee>

* chore: deps for conversation api

Signed-off-by: mikeee <hey@mike.ee>

* fix: cleanup convo example

Signed-off-by: mikeee <hey@mike.ee>

* refactor: add a conversationrequest builder and docs

Signed-off-by: mikeee <hey@mike.ee>

* fix: lint and refactor, adding preallocations for ins/outs

Signed-off-by: Mike Nguyen <hey@mike.ee>

* fix: lint and imports

Signed-off-by: mikeee <hey@mike.ee>

* fix: bump to dapr master refs

Signed-off-by: mikeee <hey@mike.ee>

* fix: enable scheduler with cli fix + tidy

Signed-off-by: mikeee <hey@mike.ee>

---------

Signed-off-by: mikeee <hey@mike.ee>
Signed-off-by: Mike Nguyen <hey@mike.ee>
2024-11-27 07:57:22 -08:00
Mike Nguyen e52d60c714
ci: remove runtime version override (#642)
* ci: remove runtime version override

Signed-off-by: mikeee <hey@mike.ee>

* fix: remove base64 decode for jobs api example

Signed-off-by: mikeee <hey@mike.ee>

* fix(tests): update jobs api test

Signed-off-by: mikeee <hey@mike.ee>

---------

Signed-off-by: mikeee <hey@mike.ee>
Co-authored-by: Yaron Schneider <schneider.yaron@live.com>
2024-11-20 08:09:32 -08:00
Fabian Martinez 87659bf63e
add deprecation comments (#650)
Signed-off-by: Fabian Martinez <46371672+famarting@users.noreply.github.com>
2024-11-20 08:04:26 -08:00
Fabian Martinez c12c9594c4
worflows: activity retry policy (#644)
* worflows: activity retry policy

Signed-off-by: Fabian Martinez <46371672+famarting@users.noreply.github.com>

* adjust name

Signed-off-by: Fabian Martinez <46371672+famarting@users.noreply.github.com>

* fix build

Signed-off-by: Fabian Martinez <46371672+famarting@users.noreply.github.com>

* add tests

Signed-off-by: Fabian Martinez <46371672+famarting@users.noreply.github.com>

* register activity

Signed-off-by: Fabian Martinez <46371672+famarting@users.noreply.github.com>

---------

Signed-off-by: Fabian Martinez <46371672+famarting@users.noreply.github.com>
Co-authored-by: Mike Nguyen <hey@mike.ee>
2024-11-13 22:02:27 -07:00
Mike Nguyen 59acca46a6
chore!: upgrade lint & go (#649)
* chore: bump go to 1.23.3 and golangci-lint to 1.61.0

Signed-off-by: mikeee <hey@mike.ee>

* fix: ineffective nolint directive removed

Signed-off-by: Mike Nguyen <hey@mike.ee>

* fix: perfsprint recommendations

Signed-off-by: Mike Nguyen <hey@mike.ee>

* fix: intrange recommendations - refactor loops

Signed-off-by: Mike Nguyen <hey@mike.ee>

* fix: remove existing dereferencing copies

Signed-off-by: Mike Nguyen <hey@mike.ee>

* fix!: address gosec overflows

BREAKING CHANGE: State consistency, concurrency and operation types are now int32 sized.
Panic on an overflow conversion for a proto duration

Signed-off-by: Mike Nguyen <hey@mike.ee>

* fix: tooling lint issues/ci update

Signed-off-by: Mike Nguyen <hey@mike.ee>

* fix: perfsprint suggestions on dapr-bot

Signed-off-by: Mike Nguyen <hey@mike.ee>

* chore(ci): remove gover remnants

Signed-off-by: Mike Nguyen <hey@mike.ee>

* chore(ci): upgrade golangci-lint action version

Signed-off-by: Mike Nguyen <hey@mike.ee>

---------

Signed-off-by: mikeee <hey@mike.ee>
Signed-off-by: Mike Nguyen <hey@mike.ee>
2024-11-13 22:01:59 -07:00
Mike Nguyen 3fff121af7
ci: only test using go.mod version (#647)
Signed-off-by: mikeee <hey@mike.ee>
2024-11-05 11:19:31 -08:00
Fabian Martinez dd9a2d5a3c
workflow examples: remove use of deprecated functions (#640)
* workflow examples: remove use of deprecated functions

Signed-off-by: Fabian Martinez <46371672+famarting@users.noreply.github.com>

* fix example tests

Signed-off-by: Fabian Martinez <46371672+famarting@users.noreply.github.com>

* Update README.md

Signed-off-by: Fabian Martinez <46371672+famarting@users.noreply.github.com>

* Update Makefile

Signed-off-by: Fabian Martinez <46371672+famarting@users.noreply.github.com>

---------

Signed-off-by: Fabian Martinez <46371672+famarting@users.noreply.github.com>
2024-10-30 09:06:32 -07:00
Fabian Martinez 516684c202
workflows: support set custom status (#639)
Signed-off-by: Fabian Martinez <46371672+famarting@users.noreply.github.com>
2024-10-30 09:06:20 -07:00
Fabian Martinez e317f06e65
add purge options (#638)
* add options to PurgeWorkflow

Signed-off-by: Fabian Martinez <46371672+famarting@users.noreply.github.com>

* Update client.go

Signed-off-by: Fabian Martinez <46371672+famarting@users.noreply.github.com>

---------

Signed-off-by: Fabian Martinez <46371672+famarting@users.noreply.github.com>
2024-10-30 09:06:07 -07:00
Fabian Martinez 4953b123ad
workflows support reuse id policy (#637)
* workflows support reuse id policy

Signed-off-by: Fabian Martinez <46371672+famarting@users.noreply.github.com>

* add new type

Signed-off-by: Fabian Martinez <46371672+famarting@users.noreply.github.com>

* lint

Signed-off-by: Fabian Martinez <46371672+famarting@users.noreply.github.com>

* wrap all types

Signed-off-by: Fabian Martinez <46371672+famarting@users.noreply.github.com>

* use existing type

Signed-off-by: Fabian Martinez <46371672+famarting@users.noreply.github.com>

---------

Signed-off-by: Fabian Martinez <46371672+famarting@users.noreply.github.com>
2024-10-30 09:05:50 -07:00
Gowtham H N a074ea7428
Fixed superfluous bug (#619)
Signed-off-by: Gowtham H N <44719307+GowthamHN@users.noreply.github.com>
2024-10-28 10:51:07 -07:00
Yaron Schneider f9baae2539
Merge pull request #641 from mikeee/release-1.11
merge Release 1.11  to main
2024-10-22 20:29:11 -07:00
Yaron Schneider 6c59092f53
Change refs to 1.14.1 (#615)
* test 1.14.1-rc.1

Signed-off-by: yaron2 <schneider.yaron@live.com>

* update to 1.14.1

Signed-off-by: yaron2 <schneider.yaron@live.com>

---------

Signed-off-by: yaron2 <schneider.yaron@live.com>
2024-08-15 08:51:44 -07:00
Mike Nguyen f87f366fe7
Merge pull request #612 from mikeee/dapr1.14
chore: upgrade dapr to v1.14.0
2024-08-14 16:47:13 +01:00
mikeee 2749284a00
ci: remove version override
Signed-off-by: mikeee <hey@mike.ee>
2024-08-14 06:46:09 +01:00
mikeee 2cfb6e308e
chore: upgrade dapr to v1.14.0
Signed-off-by: mikeee <hey@mike.ee>
2024-08-14 06:36:43 +01:00
Mike Nguyen d1f04ee738
chore: bump dapr & cli to rc.8 to test (#606)
Signed-off-by: mikeee <hey@mike.ee>
2024-08-08 13:02:14 -07:00
Yaron Schneider d36c48d92e
fix version (#604)
Signed-off-by: yaron2 <schneider.yaron@live.com>
2024-07-26 12:42:32 -07:00
Josh van Leeuwen 9bc7d823cc
Update streaming subscription to understand new initial response (#601)
* Update streaming subscription to understand new initial response

Signed-off-by: joshvanl <me@joshvanl.dev>

* Update dapr CLI to 1.14.0-rc.6

Signed-off-by: joshvanl <me@joshvanl.dev>

* Update streamsub name in validate examples

Signed-off-by: joshvanl <me@joshvanl.dev>

* Apply suggestions from code review

Co-authored-by: Mike Nguyen <hey@mike.ee>
Signed-off-by: Josh van Leeuwen <me@joshvanl.dev>

---------

Signed-off-by: joshvanl <me@joshvanl.dev>
Signed-off-by: Josh van Leeuwen <me@joshvanl.dev>
Co-authored-by: Mike Nguyen <hey@mike.ee>
2024-07-23 13:53:33 -07:00
Mike Nguyen 7c03c7ce58
chore: remove dapr stop steps and add appropriate timeouts (#573)
Signed-off-by: mikeee <hey@mike.ee>
2024-07-22 13:10:02 -07:00
Willi Eggeling 4a9f1800b6
removed unnecessary warnings from actor reflection (#586)
When checking for valid Actor methods, the SDK no longer emits warnings about invalid or inappropriate method signatures for the ones needed to be implemented for each Actor type.

Fixes #585

Signed-off-by: Willi Eggeling <thewilli@users.noreply.github.com>
2024-07-22 12:51:47 -07:00
Mike Nguyen 77c213de61
fix: stop schedule field from always being initialised (#597)
Signed-off-by: mikeee <hey@mike.ee>
2024-07-22 12:19:53 -07:00
Mike Nguyen 967570515b
Implement distributed scheduler building block (#562)
* feat: add jobs/scheduling api (with validation override)

Signed-off-by: mikeee <hey@mike.ee>

* chore: fix deps

Signed-off-by: mikeee <hey@mike.ee>

* fix: use cli fix

Signed-off-by: mikeee <hey@mike.ee>

* fix: ci artifact path set for cli build

Signed-off-by: mikeee <hey@mike.ee>

* chore: remove sidecar step

Signed-off-by: mikeee <hey@mike.ee>

* chore: revert changes to other examples

Signed-off-by: mikeee <hey@mike.ee>

---------

Signed-off-by: mikeee <hey@mike.ee>
Signed-off-by: Mike Nguyen <hey@mike.ee>
2024-07-17 09:04:45 -07:00
Mike Nguyen 01c0f3154f
fix: bidipubsub example (#594)
* fix: bidipubsub example

Signed-off-by: mikeee <hey@mike.ee>

* ci: pin dapr to 1.14.0-rc.2 and cli commit that starts the scheduler

Signed-off-by: mikeee <hey@mike.ee>

---------

Signed-off-by: mikeee <hey@mike.ee>
2024-07-16 10:54:32 -07:00
Josh van Leeuwen b7b90e3f8e
Bidirectional Subscriptions (#578)
* Bidirectional Subscriptions

Adds support for bidirectional subscriptions to PubSubs. Adds two
methods for subscribing- one using a callback and one using an
imperative approach. Both giving support to different programming styles
or use cases.

Adds example with tests.

Signed-off-by: joshvanl <me@joshvanl.dev>

* Linting: Remove unused `closeCh`

Signed-off-by: joshvanl <me@joshvanl.dev>

* Fixes comment order in bidisub.go

Signed-off-by: joshvanl <me@joshvanl.dev>

* Add comment about processing message

Signed-off-by: joshvanl <me@joshvanl.dev>

* Adds dead letter topic example

Signed-off-by: joshvanl <me@joshvanl.dev>

* chore: remove go.mod

Signed-off-by: mikeee <hey@mike.ee>

* Updates go mod to v1.14.0-rc.1

Signed-off-by: joshvanl <me@joshvanl.dev>

---------

Signed-off-by: joshvanl <me@joshvanl.dev>
Signed-off-by: mikeee <hey@mike.ee>
Signed-off-by: Mike Nguyen <hey@mike.ee>
Co-authored-by: mikeee <hey@mike.ee>
2024-07-11 07:43:51 -07:00
Fabian Martinez a1e723bd29
make workflow client struct public (#577)
Signed-off-by: Fabian Martinez <46371672+famarting@users.noreply.github.com>
2024-07-10 09:26:12 +08:00
dependabot[bot] d3eef2eb18
Bump github.com/go-chi/chi/v5 from 5.0.12 to 5.1.0 (#587)
Bumps [github.com/go-chi/chi/v5](https://github.com/go-chi/chi) from 5.0.12 to 5.1.0.
- [Release notes](https://github.com/go-chi/chi/releases)
- [Changelog](https://github.com/go-chi/chi/blob/master/CHANGELOG.md)
- [Commits](https://github.com/go-chi/chi/compare/v5.0.12...v5.1.0)

---
updated-dependencies:
- dependency-name: github.com/go-chi/chi/v5
  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>
2024-07-10 09:25:21 +08:00
dependabot[bot] 34129df6fb
Bump google.golang.org/grpc from 1.64.0 to 1.65.0 (#590)
Bumps [google.golang.org/grpc](https://github.com/grpc/grpc-go) from 1.64.0 to 1.65.0.
- [Release notes](https://github.com/grpc/grpc-go/releases)
- [Commits](https://github.com/grpc/grpc-go/compare/v1.64.0...v1.65.0)

---
updated-dependencies:
- dependency-name: google.golang.org/grpc
  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>
2024-07-10 09:25:02 +08:00
Sam feb4bb675c
fix(security): bump security vulnerabilities (#582)
* fix(security): bump security vulnerabilities

Signed-off-by: Samantha Coyle <sam@diagrid.io>

* style: make linter happy

Signed-off-by: Samantha Coyle <sam@diagrid.io>

---------

Signed-off-by: Samantha Coyle <sam@diagrid.io>
Signed-off-by: Mike Nguyen <hey@mike.ee>
Co-authored-by: Mike Nguyen <hey@mike.ee>
2024-07-01 17:27:27 -07:00
Mike Nguyen 2e8248517f
chore: cleanup repo (#571)
* chore: cleanup examples

Signed-off-by: mikeee <hey@mike.ee>

* chore: bump dapr and durabletask-go deps

Signed-off-by: mikeee <hey@mike.ee>

* ci: bump golangci and fossa actions versions

Signed-off-by: mikeee <hey@mike.ee>

---------

Signed-off-by: mikeee <hey@mike.ee>
Signed-off-by: Mike Nguyen <hey@mike.ee>
2024-07-01 09:58:37 -07:00
Fabian Martinez c417f950fe
Prevent workflows client nilpointer (#583)
* bump durabletask dep

Signed-off-by: Fabian Martinez <46371672+famarting@users.noreply.github.com>

* workflows client, prevent nilpointer error on convertMetadata

Signed-off-by: Fabian Martinez <46371672+famarting@users.noreply.github.com>

---------

Signed-off-by: Fabian Martinez <46371672+famarting@users.noreply.github.com>
2024-06-26 06:55:42 -07:00
Anton Troshin dd35c21392
Added a check for existing healthz route to avoid overwriting user custom handler (#580)
Signed-off-by: Anton Troshin <anton@diagrid.io>
2024-06-20 12:57:39 -07:00
manojks1999 33180dd89a
Dependabot added in workflow. (#531)
* daily_workflow_added

Signed-off-by: manojks1999 <9743manoj@gmail.com>

* removed_newline

Signed-off-by: manojks1999 <9743manoj@gmail.com>

---------

Signed-off-by: manojks1999 <9743manoj@gmail.com>
2024-05-07 09:04:35 -07:00
Mike Nguyen 0c60bbd3a4
fix: add crypto validation example and fix mechanical markdown (#544)
* fix: add crypto validation example and fix mechanical markdown

Signed-off-by: mikeee <hey@mike.ee>

* fix: update test assertion and remove cleanup step

Signed-off-by: mikeee <hey@mike.ee>

---------

Signed-off-by: mikeee <hey@mike.ee>
2024-05-06 15:35:18 +08:00
Yaron Schneider b2ead493ac
Merge pull request #556 from dapr/dependabot/go_modules/golang.org/x/net-0.23.0
Bump golang.org/x/net from 0.21.0 to 0.23.0
2024-04-20 10:46:08 -07:00
dependabot[bot] 1496a415fa
Bump golang.org/x/net from 0.21.0 to 0.23.0
Bumps [golang.org/x/net](https://github.com/golang/net) from 0.21.0 to 0.23.0.
- [Commits](https://github.com/golang/net/compare/v0.21.0...v0.23.0)

---
updated-dependencies:
- dependency-name: golang.org/x/net
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-04-19 13:07:09 +00:00
Rutam Prita Mishra b0ea7596ac
Update holopin.yml to award SDK badge to contributors (#547)
# Description

The `yaml` file to award SDK badges had been updated such that each contributor can be awarded with a SDK badge for their contribution to this repo.

## Issue reference

This PR fixes #546 

### Please reference the issue this PR will close: #546 

## Checklist

Please make sure you've  completed the relevant tasks for this PR, out of the following list:

* [x] Code compiles correctly.
* [x] Correct and accurate change has been done as per the issue suggestion.
* [x] YAML doesn't throw any error.

Signed-off-by: Rutam Prita Mishra <rutamprita@gmail.com>
2024-04-15 16:04:57 +08:00
Yaron Schneider 8c7cc2d68b
Merge pull request #529 from mikeee/update-release1.10
Bring release1.10 into main
2024-03-06 07:04:21 -08:00
mikeee 37ff65ccc0
Merge branch 'main' into update-release1.10
Signed-off-by: mikeee <hey@mike.ee>
2024-03-06 14:52:33 +00:00
Yaron Schneider c193b83e10
[1.13] update dapr/dapr dep (#528)
Signed-off-by: yaron2 <schneider.yaron@live.com>
2024-03-06 14:46:38 +00:00
Mike Nguyen 50ffb8861b
chore: bump go to 1.21.8 and protobuf library to 1.33.0 (#524)
* chore: bump go to 1.21.8 and protobuf library to 1.33.0

Signed-off-by: mikeee <hey@mike.ee>

* fix: cleanup 🧹 (go mod tidy)

Signed-off-by: mikeee <hey@mike.ee>

---------

Signed-off-by: mikeee <hey@mike.ee>
2024-03-06 14:46:11 +00:00