Commit Graph

1302 Commits

Author SHA1 Message Date
Oleg Zhurakousky
95a1d10dba Add tests for AWS CustomRuntimeEventLoop 2021-05-17 20:03:11 +02:00
Oleg Zhurakousky
280b8844c7 GH-676 Add initial support for mapping/re-mapping input headers
Add BeanResolver
2021-05-14 10:16:41 +02:00
Oleg Zhurakousky
ea6d15e0aa Change deprecate json mapper property
Resolves #693
2021-05-11 15:51:09 +02:00
dzou
1c87e71aa8 try upgrading sample version
try upgrading sample version of adapter dependency

Restore GSON mapper preference

default to GSON if impl not specified
2021-05-11 15:37:24 +02:00
buildmaster
d9f2bb4079 Bumping versions 2021-05-06 11:43:45 +00:00
Oleg Zhurakousky
7d053862ce Add javadoc on new public method
Resolves #690
2021-04-26 15:16:47 +02:00
Soby Chacko
007d1f06ea GH-689: Native compilation related changes
Provide mutator/accessor for enhancer filed in FunctionInvocationWrapper
in SimpleFunctionRegistry. This is required by graalvm native compilation in
Spring Cloud Stream applications.

Resolves https://github.com/spring-cloud/spring-cloud-function/issues/689
2021-04-22 19:57:50 -04:00
Oleg Zhurakousky
8f8e5172ba polishing 2021-04-15 16:52:04 +02:00
Oleg Zhurakousky
c5ce314032 GH-680 Add additional DEBUG logging to CloudEventsFunctionInvocationHelper 2021-04-14 20:01:54 +02:00
Oleg Zhurakousky
f35258dd9f Merge pull request #687 from meltsufin/gcf-not-alpha
Update documentation that GCF is GA, not Alpha
2021-04-14 19:41:12 +02:00
Oleg Zhurakousky
15c58fd63f GH-680 Add support for strict (or not) dependency on target-protocol header for CE
Resolves #680
2021-04-14 18:49:01 +02:00
Mike Eltsufin
5646821158 Update documentation that GCF is GA, not Alpha 2021-04-14 11:44:13 -04:00
Oleg Zhurakousky
05907134f0 GH-685 Update Kotlin documentation
Add test for collections

polishing
2021-04-13 09:23:56 +02:00
Oleg Zhurakousky
d22d66bc20 GH-685 Move Kotlin configurations to s-c-function-context module
Resolves #685
2021-04-12 15:02:56 +02:00
Oleg Zhurakousky
92468bcd53 Merge additional test to ensure propper type conversion 2021-04-10 08:10:23 +02:00
Taras Danylchuk
2c82cf91f8 gh-608 issue 2021-04-10 07:59:38 +02:00
Oleg Zhurakousky
376aae2d67 GH-677 Add spring.cloud.function.preferred-json-mapper property
Deprecate spring.http.converters.preferred-json-mapper
Resolves #677
2021-04-09 15:50:50 +02:00
buildmaster
c93e2c3b9d Bumping versions 2021-04-08 18:56:43 +00:00
Oleg Zhurakousky
4837efdcca Add test for FunctionAroundWrapper 2021-04-08 17:10:17 +02:00
Oleg Zhurakousky
fc42819357 GH-662 Fix support for reactive functions in AWS
This commit also includes other minor fixes around CustomRuntime which was getting in the way of this specific issue
 Added lookup for _HANDLER env variable
 Added few tests (will need more)
 Added support for Iterable for reactive functions

Resolves #662
2021-04-08 15:57:14 +02:00
Oleg Zhurakousky
cf58cdc700 GH-673 Change the logic to recognize AWS CustomRuntime
Prior to this it was based on existance of AWS_LAMBDA_RUNTIME_API env variable which turned out to be not very reliable since it is present in Java 11 runtime
With this commit it simple ensures that the handler is neither FunctionInvoker nor AbstractSpringFunctionAdapterInitializer

Resolves #673
2021-04-07 16:13:11 +02:00
Oleg Zhurakousky
324a978dab GH-679 Add test to validate output conversion for composed functions
Resolves #679
2021-04-07 11:53:17 +02:00
Oleg Zhurakousky
ba8dd58db6 GH-678 Fix race condition leading to NPE in Azure FunctionInvoker
Resolves #678
2021-04-06 14:02:04 +02:00
Oleg Zhurakousky
721e6a72c8 GH-570 Remove hard dependency on Gson for GCP
Resolves #570
2021-04-06 12:20:39 +02:00
Oleg Zhurakousky
9c5a937496 Fix NPE possibility for ConversionService not being present in the Bean Factory 2021-04-01 13:56:35 +02:00
buildmaster
5a5ed0841f Bumping versions 2021-03-26 18:57:23 +00:00
Oleg Zhurakousky
eb319e525a GH-668 Initial NPE fix in RequestProcessor when no path argument provided 2021-03-25 14:28:18 +01:00
Oleg Zhurakousky
9ae7df586c Revert "Polishing"
This reverts commit fc9e4c424c.
2021-03-24 18:50:55 +01:00
Soby Chacko
fc9e4c424c Polishing 2021-03-24 13:47:53 -04:00
Oleg Zhurakousky
cbee6603d0 Simplify FunctionInvocationHelper and its CE implementation 2021-03-24 16:31:41 +01:00
Oleg Zhurakousky
d16d61b294 GH-675 Made KotlinFunctionWrapper public 2021-03-23 13:48:09 +01:00
Oleg Zhurakousky
6c2758e2d3 Polishing SDK CloudEvent integration 2021-03-19 15:52:57 +01:00
Oleg Zhurakousky
ecafecaecc Provide initial integration with SDK CloudEvent 2021-03-19 15:00:02 +01:00
Soby Chacko
6401697f18 Array reification error with KStream[] in Kotlin
Exclude Kafka Streams functions with KStream[] return type as this
causes some array reification errors in Kotlin.

See this issue for more details: https://github.com/spring-cloud/spring-cloud-stream-binder-kafka/issues/1044

Resolves https://github.com/spring-cloud/spring-cloud-function/issues/669

Resolves #670
2021-03-18 19:58:07 +01:00
Oleg Zhurakousky
1e42e82063 Minor simplification in FunctionRSocketMessageHandler 2021-03-17 14:58:35 +01:00
Oleg Zhurakousky
835f3cc723 RSocket - Add Cbor test, fixed consumer test and minor cleanup
polish
2021-03-16 20:53:48 +01:00
buildmaster
85515c12f9 Bumping versions to 3.1.3-SNAPSHOT after release 2021-03-16 13:20:48 +00:00
buildmaster
6fd1b8d1c4 Going back to snapshots 2021-03-16 13:20:47 +00:00
buildmaster
255c0f67c1 Update SNAPSHOT to 3.1.2 2021-03-16 13:17:55 +00:00
Oleg Zhurakousky
9b3bbdfead Update spring-cloud-deployer-resource-maven version 2021-03-16 14:07:17 +01:00
Oleg Zhurakousky
3136e49a6a Add deploy plugin to Kotlin sample 2021-03-16 14:02:37 +01:00
Oleg Zhurakousky
c88907d4cb Polish 2021-03-16 13:53:13 +01:00
Oleg Zhurakousky
c05bb2bcd4 Clean up kotlin sample POM 2021-03-16 13:48:56 +01:00
Oleg Zhurakousky
c5148a6f71 Fix versions 2021-03-16 13:46:26 +01:00
Oleg Zhurakousky
41382538f5 Fix versions 2021-03-16 13:42:57 +01:00
Oleg Zhurakousky
39fa045880 GH-667 Ensure delegation to other available argument resolvers
In RSocket module we provide custom argument resolver that is aware of how to create a Message if incoming data is application/json
However in the event it's anything else, this fix ensures that there is a delegation model to give other argument resolvers a chance

Resolves #667
2021-03-16 13:00:37 +01:00
Oleg Zhurakousky
70744bb976 Fix encoder/decoder to return decodableMimeTypes
This effectively fixes the Cbor exclusiion
2021-03-15 12:23:27 +01:00
Oleg Zhurakousky
4e42e3631a GH-437 Refactor Azure request handler
This approach simplifies the existing request handlers while also fixing the invocation model to ensure AC is not created multiple times and ExecutionContext is properly propagated via Message headers
The old request handlers are deprecated
Documentation updates as well as tests
Resolves #437
2021-03-15 11:08:36 +01:00
Oleg Zhurakousky
b0ef4522d4 GH-600 Fix logic in Azure adapter to ensure proper handling of sveral functions
This also addresses re-initialization of AC when the second function is invoked
Added second function to the azure examples

Resolves #600
2021-03-11 15:26:06 +01:00
Oleg Zhurakousky
3c5d905eab GH-437 Pass ExecutionContext via MessageHeader
Caching it as part of ApplicationContext was not the right idea so this changes it
2021-03-10 18:53:25 +01:00