Commit Graph

969 Commits

Author SHA1 Message Date
Oleg Zhurakousky
16f2cc85aa GH-560 Add explicit support for S3 AWS Event
Resolves #560
2020-07-16 09:42:10 +02:00
Oleg Zhurakousky
15842c5e15 GH-554 Fix condition check for annotation processor in initializer
Resolves #554
2020-07-15 12:25:08 +02:00
Oleg Zhurakousky
ba4f5211f1 GH-557 Add special handling for wild-card content type and subtype
Add special handling for wild-card content type and subtype to NegotiatingMessageConverterWrapper
Add author tags

Resolves #557
2020-07-15 10:37:41 +02:00
dsolomakha
8496340edc add plugin repositories to fix gcp-background sample
Resolves #558
2020-07-15 10:14:35 +02:00
Oleg Zhurakousky
0537ce061b Add condition to reset content-type only if it isd not already set
Polish some of the POMs to address missing dependencies
Temporary disconnect gcp background sample until errors are fixed
2020-07-15 09:41:04 +02:00
Oleg Zhurakousky
8ef8190681 Fix POMs version 2020-06-22 16:45:21 +02:00
Oleg Zhurakousky
2fe888dde8 Fix s-c-builld version 2020-06-22 16:04:37 +02:00
buildmaster
38216f5502 Bumping versions to 3.0.9.SNAPSHOT after release 2020-06-22 07:40:22 +00:00
buildmaster
a07c402509 Going back to snapshots 2020-06-22 07:40:22 +00:00
buildmaster
13b009fb3c Update SNAPSHOT to 3.0.8.RELEASE 2020-06-22 07:30:59 +00:00
dzou
3e41df831c Fix error propagation for GCP adapter
Fix tests
2020-06-22 09:13:18 +02:00
Oleg Zhurakousky
e8846443c4 GH-551 Fix support for AWS SQSEvent
Resolves #551
2020-06-22 08:21:56 +02:00
Oleg Zhurakousky
98fd8ca9cd GH-550 Add support for wrapping value into Message if necessary
Resolves #550
2020-06-19 15:27:21 +02:00
Oleg Zhurakousky
62e8132fce Polish test 2020-06-17 09:53:52 +02:00
Oleg Zhurakousky
c5de8dba17 Polish previous commit
Add author tag
Rename 'getPayloadType' method to 'getGenericType' and ad javadoc

Resolves #543
2020-06-17 09:35:18 +02:00
anshlykov
9f30a296dd SimpleFunctionRegistryTests: reactive function test case
FunctionTypeUtils#isTypeCollection: unwrap publisher

JsonMessageConverter: handler for a ParameterizedType conversionHint

refactor
2020-06-17 09:34:55 +02:00
Oleg Zhurakousky
8c092ee463 GH-537 Fix JsonMapper creation
This fix insures that 'spring.http.converters.preferred-json-mapper' property is only used as mechanism to break tie in the event both jackson and gson are available in classpath or AC

Resolves #537
2020-06-11 20:55:05 +02:00
Oleg Zhurakousky
39f8dcf6d2 Fix test 2020-06-11 19:36:20 +02:00
Oleg Zhurakousky
90249d4b1c GH-538 Fix default lookup on FunctionRegistration
Resolves #538
2020-06-11 19:25:26 +02:00
Oleg Zhurakousky
a1dc7e3181 GH-503 Add test to demonstrate custom message converter usage
Resolves #503
2020-06-11 15:37:04 +02:00
Oleg Zhurakousky
56b026597b GH-500 Fix NPE in FunctionEndpointInitializer
This ensures that posting to the consumer does not result in NPE given that there is no body

Resolves #500
2020-06-10 19:45:26 +02:00
Oleg Zhurakousky
27540a93e8 Add repositores section to parent POM 2020-06-10 18:42:19 +02:00
Oleg Zhurakousky
8060790d1e GH-531 Fail function registration for incompatible types
Given that we now can auto-discover function type from provided target object, this fix will fail function registration if provided type is not compatible (assignableFrom. . .)

Resolves #531
2020-06-10 18:29:18 +02:00
Oleg Zhurakousky
670ed857f4 Merge pull request #534 from dzou/fix-gcp-sample-3.0.x
Fix the GCP Adapter for branch 3.0.x
2020-06-09 13:25:24 +02:00
dzou
68f50a8b62 Fix GCP sample for 3.0.x 2020-06-08 18:09:09 -04:00
buildmaster
e67b8be21a Bumping versions to 3.0.8.BUILD-SNAPSHOT after release 2020-05-28 10:03:11 +00:00
buildmaster
a39255c748 Going back to snapshots 2020-05-28 10:03:10 +00:00
buildmaster
ec5d929a65 Update SNAPSHOT to 3.0.7.RELEASE 2020-05-28 09:45:34 +00:00
Oleg Zhurakousky
6633bd62f7 Bumbed s-c-build version to 2.3.0.RELEASE in preparation for 3.0.7.RELEASE 2020-05-28 11:34:23 +02:00
Oleg Zhurakousky
19ab6b9946 Polishing 528419cf 2020-05-28 09:26:44 +02:00
Oleg Zhurakousky
4c8a209c89 Add deployment configuration to GCP background 2020-05-27 16:43:13 +02:00
Oleg Zhurakousky
2e8537889d Add repositories to GCP HTTP sample POM 2020-05-27 16:25:45 +02:00
dzou
9044ea5e9a Fix the GCP integration tests 2020-05-27 14:14:11 +02:00
Oleg Zhurakousky
528419cfd3 Fix AWS FunctionInvoker to ensure it properly interprets translation of incoming APIGateway request to user FunctionInvoker
This assumes that
- 'body' will be extracted for cases such as POJO or String input
- Map input will simply represent the incoming request
- APIGatewayProxyRequestEvent input represents native representation of API Gateway request

Similar fixes went for Kinesis side of things
Added additional tests for both Kinesis and ApiGateway
2020-05-27 14:12:40 +02:00
Oleg Zhurakousky
0580e9c7a5 GH-514 Remove 'proxyInvokerIfNecessary()' method
It is really not needed as it does not add much value other then allows user to cast POJO function to its actual type. The reality is that the actual goald of POJO function is to make sure they can be looked at as plain Functions.

Resolves #514
2020-05-27 14:10:25 +02:00
Oleg Zhurakousky
1ca0810171 GH-524 Fix AWS documentation
Removed reference to the old request handlers which was the source of confusion

Resolves #524
2020-05-22 14:14:08 +02:00
Oleg Zhurakousky
0133504dce Fix the classpath archive API call in GcfJarLauncher 2020-05-22 13:09:49 +02:00
dzou
03cdd34832 Add docs and updates for background function support
rename fuction-sample-gcp to function-sample-gcp-http

refdoc polish

background sample polish

Resolves #525
Update pub/sub bg function to use base64 encoding
2020-05-22 12:41:35 +02:00
谭繁华
4d1655632e Polish checkstyles in GCP module
Resolves #520
2020-05-22 12:40:11 +02:00
Mike Eltsufin
4af243ee0b Re-enable GCP sample test and fix mvn not found
enable test output temporarily for Travis

Revert "enable test output temporarily for Travis"

This reverts commit a797ca75e8c7a48e57f988360e5d57dbb497a6fb.

Resolves #527
2020-05-22 12:40:03 +02:00
dzou
9a481e83a0 Move Layout into adapter class
pr comments, mv package, make work locally.

revert pom change to parent

Rm provided scope - this is problematic for spring-boot-maven plugin to build jar

Detach sample from spring-cloud-function-parent

Update readmes

cleanup

Add comment

fix javadoc
Resolves #518
2020-05-22 12:38:38 +02:00
Oleg Zhurakousky
ee65baed30 Temporarily ignore GCF sample test 2020-05-22 12:28:22 +02:00
dzou
649da5c095 Add gcp adapter to dep mgmt
Resolves #517
2020-05-22 12:28:05 +02:00
Mike Eltsufin
ce7c9dc8a1 Add Integration Test for GCP Sample
Fixes: #505.

add the json dependency to fix it

remove json dep
Resolves #507
2020-05-22 12:27:56 +02:00
Oleg Zhurakousky
b9f4db91a4 Add special handling for collections NegotiatingMessageConverterWrapper
This will ensure that Function<List<String>>...> can still be handled with regular converters
2020-05-22 12:27:46 +02:00
Oleg Zhurakousky
aa18a12204 Polish POM for function-sample-supplier-exporter 2020-05-07 12:17:38 +02:00
Oleg Zhurakousky
2108450f2b Add Supplier Exporter sample 2020-05-07 10:33:52 +02:00
Oleg Zhurakousky
41acbfd438 Fix Message unwrapping condition 2020-05-07 10:33:45 +02:00
Oleg Zhurakousky
9310898396 Fix styles 2020-05-05 14:53:48 +02:00
Oleg Zhurakousky
ad3c0f15bb Change from warn to debug when function is not found 2020-05-05 14:51:56 +02:00