Commit Graph

3232 Commits

Author SHA1 Message Date
LMWF 17d3d0b848 #377 - cosmos deserialization issue 2020-07-13 20:07:36 -07:00
Mark Chmarny 05e71ffdc2
data serialized object (#391)
Co-authored-by: Young Bu Park <youngp@microsoft.com>
2020-07-13 13:31:32 -07:00
Mark Chmarny 680cdb7124
Merge pull request #389 from dapr/mchmarny-envelop-tests
Fizes JSON array envelope parsing, adds unit tests
2020-07-13 10:47:48 -07:00
Mark Chmarny dbc1a76dcf lint fix 2020-07-13 09:24:51 -07:00
Mark Chmarny 1589031af6 fiixes json array envelope parsing 2020-07-13 09:20:54 -07:00
Mark Chmarny 8f96d7fe82
Merge pull request #384 from dapr/mchmarny-fixes-double-envelope
Fixe for double envelope when published payload is already a cloud event
2020-07-10 11:29:02 -07:00
Mark Chmarny e238e9a08c
Merge branch 'master' into mchmarny-fixes-double-envelope 2020-07-10 11:18:45 -07:00
Mark Chmarny 47a329c3ce
Adds output support to Twitter binding #366 (#385)
* twitter output binding

* output metadata format to match input

* fixes lint error

* fixed init query validation

* fixes test timeouts

* fixes lint errors

* fixes lint errors

Co-authored-by: Aman Bhardwaj <amanbha@users.noreply.github.com>
Co-authored-by: Yaron Schneider <yaronsc@microsoft.com>
2020-07-09 17:01:30 -07:00
Brooke Hamilton a0a293ca1b
[WIP] PostgreSQL State Store (#353)
* Added postgres state files

* Fix SQL Server integration tests. (#324)

* Initial unit and int tests for postgres

* Implemented dbaccess interface

* Formatting updates

* Create state table if not exists

* Initial set implementation

* Get and set with integration test

* Added delete

* Create date and update date in database

* Integration tests for bulk set and bulk delete

* Etag processing, test refactor

* Added tests for etag processing

* Updated const, removed public metadata fields

* Cleanup edits

* Fixed linting issues

* Ran go mod tidy

* Initial implementation of TransactionalStore

* Fixed linting issues

* Added tests and validation

* Test for creating the state table

* Fixed issue with parsing param value as string

* Update to integration tests

* Fixed linting issues

* Added retry logic from state

* Changed primary key to text

* Updated debug logging

* Review updates

Co-authored-by: Young Bu Park <youngp@microsoft.com>
Co-authored-by: Yaron Schneider <yaronsc@microsoft.com>
2020-07-09 13:56:08 -07:00
Mark Chmarny 68c5a5537c changes cloudevent identification 2020-07-08 15:28:54 -07:00
Mark Chmarny d1966c63ca Merge branch 'mchmarny-fixes-double-envelope' of github.com:dapr/components-contrib into mchmarny-fixes-double-envelope 2020-07-08 11:23:33 -07:00
Mark Chmarny f1f69bf3c8 fixes speeling mistakes in ccmments 2020-07-08 11:23:23 -07:00
Mark Chmarny 44776d4463
Merge branch 'master' into mchmarny-fixes-double-envelope 2020-07-08 06:52:25 -07:00
Mark Chmarny 43092998ab uses provided CE as is, adds CE test 2020-07-08 06:50:10 -07:00
Joni Collinge 03b3dbfe88
Merge branch 'master' into jjcollinge/pubsub-context 2020-07-08 14:00:01 +01:00
Mark Chmarny 6b04b4c9fe
Merge pull request #386 from dapr/mchmarny-adds-cron-binding
Add scheduler binding #226
2020-07-08 05:57:44 -07:00
Mark Chmarny 111836eac8 adds Operations method implementation 2020-07-08 05:46:08 -07:00
Mark Chmarny 8b169a7d65 fixes lint errors, adds invoke test 2020-07-08 05:09:10 -07:00
Mark Chmarny d662a1829f fixes lint errors, adds invoke test 2020-07-08 04:58:09 -07:00
Mark Chmarny e98b3fc968 adds cron binding 2020-07-07 16:58:53 -07:00
Mark Chmarny 194ff4f914 fixes double envelop 2020-07-07 16:47:47 -07:00
jjcollinge 07b046f140 rename asb handler type to handle 2020-07-07 13:01:24 +01:00
jjcollinge 7734d05288 Merge branch 'master' into jjcollinge/pubsub-context 2020-07-07 12:41:58 +01:00
jjcollinge 410628af3d add context to pubsub handler signature 2020-07-07 12:37:15 +01:00
Joni Collinge 4b2252b017
ASB lock renewal per topic (#365)
* bump asb sdk version to 0.10.2

* add isolation per topic for lock renewal

* added cancellations on async handlers

* refactored out subscription logic from namespace

* updated error handling

* defer async context cancel

* fixed lint issues

* add connection recovery

* fix lint

* update comments

* update comments

Co-authored-by: Yaron Schneider <yaronsc@microsoft.com>
2020-07-02 08:02:42 -07:00
Leon Mai a086a42f2b
Implement the Multi() interface method adding transaction support in … (#372)
* Implement the Multi() interface method adding transaction support in the cosmos db component.  The implementation
uses a stored procedure to do this.  The stored procedure is registered in Init().

* linter

* code review comments

* code review

* remove comment

* casing and de-dup

* use 'in' in query

Co-authored-by: Yaron Schneider <yaronsc@microsoft.com>
2020-06-30 13:32:41 -07:00
Nils Schmidt 4007ba3622
Handle errors in AzureEventHubs.Read (#371) 2020-06-30 07:16:36 -07:00
Kyle Housley 9ef4fb5fb4
Make enableTLS work correctly (#373)
the enabletls does the opposite of what the config suggests
2020-06-29 14:39:55 -07:00
Shalabh Mohan Shrivastava 007dbd03b0
Fix for context deadline exceeded issue - use operation timeout (#370) 2020-06-25 15:11:56 -07:00
Shalabh Mohan Shrivastava 7b0fbe65cc
Setting URL correctly when username/password is not provided (#369)
* Adding Username/password optional

* fixing lint errors
2020-06-25 13:29:52 -07:00
Young Bu Park a6a0e3e3bc
rename servicediscovery to nameresolution pkg and refactor it (#368)
* rename servicediscovery to nameresolution pkg

* fix linter

* add comment

* add more logs
2020-06-24 11:23:15 -07:00
Carlos Mendible 3221db9709
Fixing #360 (#361)
Co-authored-by: Young Bu Park <youngp@microsoft.com>
2020-06-16 15:32:26 -07:00
Young Bu Park f46249c554
revert defer cancel back (#363)
* revert defer cancel back

* cancel timeout explc
2020-06-16 10:50:24 -07:00
Young Bu Park 98dba0e1cb
Cancel context when service is found (#362) 2020-06-16 10:31:29 -07:00
Mukundan Sundararajan 5c62707aba
Upgrade go version to 1.14.3 and linter version to 1.26.0 (#352)
* Upgrade to go 1.14.3 and linter version to 1.26.0
2020-05-29 15:26:33 -07:00
Carlos Mendible 0d58c00bcf
Added jsonsecretstore (#328)
Co-authored-by: Aman Bhardwaj <amanbha@users.noreply.github.com>
2020-05-29 05:55:45 -07:00
Sashi Kumar 42a7af4c0c
[DynamoDB] Update BulkSet and BulkDelete with BatchWriteItem (#331)
* [DynamoDB] Update BulkSet and BulkDelete with BatchWriteItem

* Validate type of value

* Marshal value before setting for Set and BulkSet

Co-authored-by: Artur Souza <artursouza.ms@outlook.com>
Co-authored-by: Yaron Schneider <yaronsc@microsoft.com>
2020-05-27 15:12:34 -07:00
Yaron Schneider d779825d38
Update Readme.md (#351) 2020-05-27 15:05:05 -07:00
Yaron Schneider e82164f4e7
Add bi-directional bindings support (#350)
* add bi-directional bindings

* added invoke response

* added explicit types

* change operationtype to operationkind
2020-05-26 23:32:20 -07:00
Trond Hindenes d3e9a7b3a7
Use shared aws auth package (#347)
* Use shared sqs auth package

* Goimports-ed files

* Added support for endpoint param in aws credentials abstraction, since the sqs-sns pubsub module required it

* Added endpoint support for all aws things

* Updated tests
2020-05-26 16:27:16 -07:00
Mayank Kumar 3ed4f0f63c
Add pubsub support for mqtt (#330)
* Add pubsub support for mqtt

- update README.md
- add tests for metadata parsing
- linting

* Add pubsub support for mqtt

- remove topic field from metadata.

* Add pubsub support for mqtt

- use consumerID as clientID for mqtt connection

* Add pubsub support for mqtt

- address review comments
2020-05-22 20:39:09 -07:00
Joni Collinge 1461b0e4a5
Fix issue with ASB pubsub throttling (#329)
* Applied throttling to receiver loop

* added init lock renewal

* added prefect count config option

* renew message locks before processing

* moved lock acquisition per go routine

* fix test

* added max active message throttles

* rename numConcurrentHandlers to maxConcurrentHandlers

* fix typo in abandonMessage func name

* set maxActiveMessages to minimum of prefetchCount

* remove prefetch count constraint

* removed conditional activeMessage tracking

Co-authored-by: Shalabh Mohan Shrivastava <shalabhs@microsoft.com>
Co-authored-by: Yaron Schneider <yaronsc@microsoft.com>
2020-05-22 20:38:28 -07:00
Trond Hindenes 52e37224e5
aws sqs: Use implicit creds and region by default, explicit if specified (#340)
* Use implicit creds by default, explicit if specified

* Remove log lines

* Support implicit region as well

* gofmt-ed file

* removed a newline

* Use a separate package for aws auth stuff

* Rename + alias imports

* gofmt

* goimportsed file

Co-authored-by: Yaron Schneider <yaronsc@microsoft.com>
2020-05-22 15:59:22 -07:00
John b54585c4f0
Apache Pulsar - pubsub component (#346)
* created pulsar component

* fixed multi topic issue

* moved metadata struct

* finished writing metadata tests

* fixed linter issues

* modifies consumer type to failover

* uncapitalized errors

* changed subscriptionName to consumerID

* acknowledge message only if there's no error returned from handler

Co-authored-by: john verdonck <John@johns-MacBook-Pro.local>
2020-05-22 10:04:07 -07:00
Kyle Housley 8eff31b191
Add AWS SNS/SQS support (#342)
* working but WIP aws pubsub

* working pubsub impl, problematic resource naming

* working implementation with tags and hashed topic/queue names

* add correct permissions for sqs queue to allow sns publishing

* fix logging messages, make awsToken optional, rename test functions, nits

* lowercase comments

* nits, repetitive use of 'the'

Co-authored-by: Aman Bhardwaj <amanbha@users.noreply.github.com>
Co-authored-by: Yaron Schneider <yaronsc@microsoft.com>
2020-05-21 14:20:16 -07:00
Joni Collinge aa4f9e8753
handle uservalues (#333) 2020-05-20 17:02:47 -07:00
Joni Collinge 1e4363cbe4
Update mDNS resolver to respect service IP address (#341)
* updated mdns resolver to respect ip address

* add conditional case for default

Co-authored-by: Young Bu Park <youngp@microsoft.com>
2020-05-19 10:17:26 -07:00
Brooke Hamilton 909739702e
Fixed SQL Server state store integration tests (#324) (#325) 2020-05-18 09:40:26 -07:00
Mark Chmarny b647397b2c
Fixed termination signal, added read test (#321)
* titter search binding

* refactored signal processing for lint comp

* titter search binding

* refactored signal processing for lint comp

* fixed twitter ref

* fixed termination signal, added read test

* removed unused maxTweet property

* fixed lint issues

* lint fix

Co-authored-by: Yaron Schneider <yaronsc@microsoft.com>
2020-04-30 14:21:23 -07:00
Yaron Schneider 71eaf77932
Update Readme.md (#320) 2020-04-30 09:06:54 -07:00