Oleg Zhurakousky
d70079eb4d
GH-1117 Enhance support for function composition to handle null returns
...
Resolves #1117
2024-03-27 19:05:21 +01:00
Oleg Zhurakousky
8745f32ac2
GH-1097 Ensure empty POJO converted to {} instead of null
...
Resolves #1097
2024-03-27 18:31:32 +01:00
sheheryar aamir
7969d06fc8
GH-1127 Fix String cast to OffsetDateTime issue for CloudEventMessageUtils
...
Resolves #1127
Resolves #1128
2024-03-27 16:26:18 +01:00
Oleg Zhurakousky
3931ea4f14
GH-1104 Add support for case insensitive routing header names
...
Resolves #1104
2024-01-31 13:53:24 +01:00
Jeffrey Douangpaseuth
fb0af94da2
fix JsonMessageConverter mimetype NPE
2024-01-30 17:21:53 -05:00
Oleg Zhurakousky
8e9948c4c3
GH-1075 Fix conversion of complex types
...
Resolves #1075
2023-10-13 10:25:35 +02:00
Oleg Zhurakousky
afb419d701
GH-1063 Fix header propagation in composed function
...
Resolves #1063
2023-09-25 13:11:59 +02:00
Oleg Zhurakousky
9f04138e4f
GH-1065 Fix Collection discovery in JsonMapper
...
Resolves #1065
2023-08-30 15:22:52 +02:00
Chris Bono
7bc499ddea
Do not convert text/plain content to JSON
...
Fixes bug and removes test comments from previous commit.
Resolves #1056
2023-08-07 14:22:52 +02:00
Chris Bono
c97c0b2a96
Add tests to illustrate the bug
2023-08-07 14:16:18 +02:00
Oleg Zhurakousky
6969ec9720
GH-1043 Add support for communicating type via MimeType parameter for JsonMessageConverter
...
Resolves #1043
2023-06-01 16:58:46 +02:00
Soby Chacko
0ba011a903
Function wrapping BiConsumer improvements
...
When a BiConsumer user function is provided, we wrap it inside a Function
when registering it in FunctionRegstration. FunctionInvocationWrapper sees
this as a Function and downstream clients (such as Spring Cloud Stream) does
not have visibility into the user function type from a FunctionInvocationWrapper
API perspective. This commit propagates the BiConsumer targer user function info
as part of FunctionInvocationWrapper API.
For more information, see: https://github.com/spring-cloud/spring-cloud-stream/issues/2670
Resolves #1016
2023-03-24 11:39:29 +01:00
Oleg Zhurakousky
9491c9ce04
GH-958 Add support for default routing
...
Resolves #958
2022-11-17 11:27:32 +01:00
Oleg Zhurakousky
fd65decdb6
GH-944 Remove deprecations and update documentation for MessageRoutingCallback
...
Resolves #944
2022-10-25 16:01:06 +02:00
Oleg Zhurakousky
857fa022f4
Polishing previous observability comit
2022-10-20 11:12:58 +02:00
Oleg Zhurakousky
0abfeee528
GH-924 Fix regression with structured CE cnversion into Message
...
Resolves #924
2022-09-08 16:20:43 +02:00
Soby Chacko
c8109270d2
Remove AVRO message converters in 4.0.x
...
Since we are migrating Schema Registry to Spring Cloud Stream,
the AVRO message converters in Spring Cloud Function could reside
in Spring Cloud Stream as part of its Schema Registry.
Resolves https://github.com/spring-cloud/spring-cloud-function/issues/921
Resolves #922
2022-08-29 18:56:21 +02:00
Oleg Zhurakousky
e83b0dfabe
GH-919 Fix regression that was modifying result message
...
Resolves #919
2022-08-24 16:19:22 +02:00
Oleg Zhurakousky
a7a8217f58
Remove functionType deprecations
2022-07-27 17:41:09 +02:00
Chris Bono
fc0dacb893
GH-892 Remove use of reflection from CloudEventMessageUtils
...
Fixes #892
Resolves #894
2022-07-13 14:18:42 +02:00
Oleg Zhurakousky
b3f564b40f
Fix function eligibility filtering
2022-06-16 18:27:23 +02:00
Oleg Zhurakousky
39e4bed412
GH-884 Add initial support for BiFunction
...
Resolves #884
polish
2022-06-14 09:36:09 +02:00
Oleg Zhurakousky
9f9d5602e7
GH-883 Add support for filtering out ineligible functions
...
Resolves #883
2022-06-13 15:46:45 +02:00
Oleg Zhurakousky
724ba06c11
Fix FunctionTypeUtils as well as LocalServerPort issue
...
Resolves #871
2022-06-07 16:01:50 +02:00
Artem Bilan
66b88f2f1e
FunctionTypeUtils test for NPE
...
Related to https://stackoverflow.com/questions/72163534/spring-batch-integration-throwns-org-springframework-messaging-messagehandlingex
The `FunctionTypeUtils.isMessage()` fails with NPE
when target method has non-message argument with generic parameter.
Even if we instantiate the class with specific generic argument,
that info is not available for reflection and `MethodParameter`
end up with a generic parameter name which is essentially a `TypeVariable`
The stacktrace is like this:
```
java.lang.NullPointerException: Cannot invoke "java.lang.Class.getGenericInterfaces()" because "targetType" is null
at net.jodah.typetools.TypeResolver.getTypeVariableMap(TypeResolver.java:494)
at net.jodah.typetools.TypeResolver.resolveRawClass(TypeResolver.java:387)
at net.jodah.typetools.TypeResolver.resolveRawClass(TypeResolver.java:373)
at org.springframework.cloud.function.context.catalog.FunctionTypeUtils.isMessage(FunctionTypeUtils.java:416)
```
2022-06-07 15:21:09 +02:00
Oleg Zhurakousky
4661ab186b
GH-873 Fix JsonNode conversion
...
Resolves #873
2022-05-30 14:39:03 +02:00
Oleg Zhurakousky
085ae9f620
GH-878 Fix concurrency issue during registration and lookup of functions
...
Resolves #878
2022-05-30 12:11:36 +02:00
Oleg Zhurakousky
3bfa5faa44
GH-791 Add support for propagating input headers
...
Resolves #791
polishing merge
2022-05-04 14:48:14 +02:00
Oleg Zhurakousky
536bd3920f
Remove observability
2022-05-03 19:48:16 +02:00
spencergibb
470eda85a7
Revert "Remove io.micrometer.observation code"
...
This reverts commit 830a7e7cc2 .
2022-03-31 16:09:58 -04:00
spencergibb
830a7e7cc2
Remove io.micrometer.observation code
2022-03-31 13:05:24 -04:00
Oleg Zhurakousky
97a55a3608
GH-828 Add support for configuring additional routers
...
Resolves #828
2022-03-24 18:26:41 +01:00
Oleg Zhurakousky
bbf56b0744
GH-830 Fix conversioin exception for custom converters
...
Resolves #830
2022-03-23 17:17:49 +01:00
Oleg Zhurakousky
bb3f33f1c5
Fix deprecations and breaking changes caused by dependencies
2022-03-17 14:59:04 +01:00
Oleg Zhurakousky
a364aaf86a
GH-823 Polishing
...
Resolves #823
2022-03-04 17:03:07 +01:00
Marcin Grzejszczak
ea3be5ef39
GH-823 Add initial support for Observability
2022-03-04 16:59:43 +01:00
onobc
dc52af8df6
Improve ContextFunctionCatalogAutoConfiguration conditional loading
...
- Allow custom AvroSchemaServiceManager to be used
- Make AvroSchemaMessageConverter bean method specifically typed
- Make CloudEventsMessageConverter bean method specifically typed
- Add tests focusing on the conditional loading aspects of the auto configuration
Fixes gh-797
Resolves #814
2022-02-23 15:43:15 +01:00
Oleg Zhurakousky
be031cd315
GH-816 Enhance test validating collection output
2022-02-23 15:08:18 +01:00
Oleg Zhurakousky
95f9fbf417
Revert "GH-816 Fix support for function that returns Iterable with target-protocol set"
...
This reverts commit ed6642e18e .
2022-02-23 12:18:17 +01:00
Oleg Zhurakousky
ed6642e18e
GH-816 Fix support for function that returns Iterable with target-protocol set
...
Resolves #816
2022-02-21 14:50:29 +01:00
Roman S Samarev
18677ca47c
SimpleFunctionRegistry: Fixed: compose of supplier...consumer pipeline produces a supplier type. This fix allows testing of composed pipelines without input and output
...
SimpleFunctionRegistry: added info. No functional changes
Resolves #809
2022-02-15 20:31:55 +01:00
Soby Chacko
609035b918
Revert "* Simplify functionalTracingEnabled variable logic"
...
This reverts commit 159c82e4a9 .
2022-02-11 12:38:40 -05:00
Oleg Zhurakousky
2d59a0d759
GH-804 Add support for case-insensitive Cloud Event determination
...
Resolves #804
2022-02-09 14:23:21 +01:00
Oleg Zhurakousky
5b4cec0db3
GH-804 Add support for case-insensitive routing
2022-02-09 13:58:01 +01:00
Artem Bilan
159c82e4a9
* Simplify functionalTracingEnabled variable logic
...
* Add `BeanFactoryAwareFunctionRegistryTests.testWrappedWithAroundAdviseNotMessageReturnConfiguration()`
to verify that non-Message return from the target function is wrapped to the `Message` before return
to the `FunctionAroundWrapper`
2022-02-07 15:09:51 +01:00
Oleg Zhurakousky
536d3d6e80
GH-794 Address regression with input type conversion of Maps
...
Resolves #794
2022-01-26 12:51:13 +01:00
Oleg Zhurakousky
012a4daa59
Cleanup and additional test
2022-01-24 16:19:26 +01:00
Oleg Zhurakousky
5074b7eee4
Finish migration to java17, boot 3.0, spring 6
2022-01-14 11:05:58 +01:00
Oleg Zhurakousky
4076e88965
GH-768 Modified test to try to force the issue
2021-12-01 08:25:34 +01:00
Oleg Zhurakousky
4f2c24bcf9
GH-768 Add tests to validate proper map values conversion
...
Resolves #768
2021-11-30 15:27:04 +01:00