Commit Graph

1457 Commits

Author SHA1 Message Date
Oleg Zhurakousky
655e48ea3a Update issue templates 2020-03-15 08:13:13 +01:00
Oleg Zhurakousky
4e044ae06e Update issue templates 2020-03-15 08:08:21 +01:00
Oleg Zhurakousky
c254777da8 Update issue templates 2020-03-15 08:07:11 +01:00
Oleg Zhurakousky
639f0de771 Update issue templates 2020-03-15 08:04:26 +01:00
Oleg Zhurakousky
957976adfa Bump s-c-function to 3.0.4.B-S
Change docs reference of StreamBridgeUtils to StreamBridge
2020-03-09 20:11:53 +01:00
Soby Chacko
8b3b0815a4 Update s-c-build to 3.0.0 snapshot 2020-03-04 20:05:22 +01:00
Oleg Zhurakousky
3d941329e7 Put back producer property description 2020-03-02 17:53:11 +01:00
Oleg Zhurakousky
eee1b1385c GH-1920 Add MessageConverter filtering logic
This way we ensure that only custom converters and converters defined by stream are included
effectively eliminating the possibility of other auto-configuration interfering with their converters

Resolves #1920
2020-03-02 13:13:31 +01:00
Oleg Zhurakousky
ad7bf9563f GH-1919 Fix function+consumer composition
Ensured that when composing Function and Consumer no output binding is created. The initila fix was part of #1911 which addressed the reactive function/consumer combination. This fix does the same for imperative function/consumer combination

Resolves #1919
2020-03-02 09:58:36 +01:00
Oleg Zhurakousky
e52266c01f Fix typo 2020-02-28 04:48:07 +01:00
Oleg Zhurakousky
0debb8d64f GH-1912 Added support for non-reactive-source messaging bridge
Currently the use of reactive EmitterProcessor is the only way to connect foreign sources such as HTTP with spring-cloud-stream
The newly added StreamBridgeUtils class provides a simpler mechanism to brideg non-stream application with stream application without requiring reactor API while also honoring the same type conversion and partitioning contract used by functions

Added docs

Resolves #1912

Address PR comments

Resolves #1918
2020-02-27 18:13:26 +01:00
Oleg Zhurakousky
6d4ab48358 GH-1911 Fix support for Function<Flux, Mono<Void>>
Basically the Function<Flux, Mono<Void>> shoudl be treated as Consumer while allowing reference to the Flux so additional operations coudl be applied, but it will no longer result in creation of dummy output destination

Resolves #1911
2020-02-27 16:00:36 +01:00
Oleg Zhurakousky
58efbb1586 Polishing previous work 2020-02-26 19:47:27 +01:00
Oleg Zhurakousky
f25d37683f GH-1917 add missing support for composing reactive function
Added missing support for composing reactive function to an existing legacy source. Imperative functions already had such support
Added tests as well as minor refactoring/cleanup in FunctionConfiguration

Resolves #1917
2020-02-26 09:51:11 +01:00
Oleg Zhurakousky
b5e9444d0c GH-1916 Fix partition support for reactive functions
Fixed output partition support for reactive functions. For imperative functions it was already addressed with https://github.com/spring-cloud/spring-cloud-stream/issues/1893
Added tests

Resolves #1916
2020-02-24 16:39:24 +01:00
Oleg Zhurakousky
1361e2b092 Update POMs for Ivyland 2020-02-14 10:48:02 +01:00
Oleg Zhurakousky
6d2a07c601 Remove schema and reactive modules 2020-02-14 10:36:20 +01:00
buildmaster
54b9fb63a7 Bumping versions to 3.0.3.BUILD-SNAPSHOT after release 2020-02-13 08:02:28 +00:00
buildmaster
59709fb6d2 Going back to snapshots 2020-02-13 08:02:28 +00:00
buildmaster
cda48351a0 Update SNAPSHOT to 3.0.2.RELEASE 2020-02-13 07:59:55 +00:00
Oleg Zhurakousky
4dff694beb upgraded to lates s-c-function and s-c-build
cleaned javadoc errors in some modules
2020-02-12 19:07:27 +01:00
Oleg Zhurakousky
f742dca2a7 Added temporary fix to avoid breaking change due to new functionality in functions 2020-02-12 15:43:25 +01:00
Oleg Zhurakousky
6fc3b85481 GH-1876 Some cleanup on functional and annotation mix
Some plishing and cleanup as well as re-enabling few tests,. but as explained in GH issue there is really nothing to fix here since the behav ior is by design.
2020-02-11 14:09:59 +01:00
Oleg Zhurakousky
897cb670aa GH-1897 Fixed javadocs
Fixed javadocs issues that were preventing javadocs from being generated

Resolves #1897
2020-02-11 09:25:40 +01:00
Soby Chacko
a8dd003b34 Add missing properties in DefaultPollerProperties
cron and initialDelay properties in DefaultPollerProperties

Resolves #1903
2020-02-10 16:53:39 +01:00
Oleg Zhurakousky
51f6187e39 GH-1893 Added partition support for Supplier
- Expended functional support for SpEL-based partitioning of outgoing messages that was added cce66f338a to Supplier.
- Added tests

- polished docs

Resolves #1893
2020-02-10 16:42:56 +01:00
Oleg Zhurakousky
968d3581df Updated initializr image 2020-02-06 14:48:50 +01:00
Oleg Zhurakousky
2dc7e89345 GH-1902 Added support for contentType value as byte[]
changed stream overview image to showcase functional programming model

Resolves #1902
2020-02-06 14:31:19 +01:00
Oleg Zhurakousky
cce66f338a GH-1893 Fix SpEL partition support
Consolidated code around PartitionHandler and interceptor

Consolidated ContentTypeConfiguration and the returning CompositeMessageConverter

Added support (reluctantly) to allow SpEL expressions for determining partition for function programming model. In other words something like  would work

That said, it is highly recommended to never use payload as a source for any kind of expressions (input or output) as payload constitutes privileged information that should only be accessible to he producer and consumer.

Resolves #1893
Resolves #1877
2020-02-05 17:48:04 +01:00
Oleg Zhurakousky
2fca323654 Additional enhancements to dynamic binding test feature 2020-02-03 13:23:43 +01:00
Oleg Zhurakousky
ce221adf0d Fixing check styles in last commit 2020-01-31 07:05:19 +01:00
Oleg Zhurakousky
a1449d6524 Adding utility for manual binding for testing 2020-01-31 05:43:47 +01:00
Oleg Zhurakousky
93a489ac9a Updated testing section with destination naming
Related to #1894
2020-01-29 11:03:48 +01:00
Oleg Zhurakousky
41ab7abc51 GH-1894 Added test to demonstrate testing with explicit bindings
Resolves #1894
2020-01-27 17:56:42 +01:00
Oleg Zhurakousky
67b36959fd GH-1885, GH-1896 Added tests for conversion of collection of messages
Also, fixed the routing exception when function returns a publisher

Resolves #1885
Resolves #1896
2020-01-27 17:29:10 +01:00
Oleg Zhurakousky
4077b0d728 GH-1898 Fix map/collection tyoe conversion
Delegated conversion of individual collection elements that are  non-String and non-byte[] to ObjectMapper
In the future we can potentially explore delegation to Spring's ConversionService

Resolves #1898
2020-01-27 11:33:47 +01:00
Oleg Zhurakousky
a94e533a50 GH-1894 Added support for named destination in test binder
Deprecated indexed operations
Modified several tests to use new operators

Resolves #1894
2020-01-24 19:16:21 +01:00
Oleg Zhurakousky
e1a3b72027 GH-1894 interim 2020-01-24 18:18:40 +01:00
Oleg Zhurakousky
badd024207 GH-1895 Made test binder not eligible as default
This effectively ensures that it has to be explicitly added

Resolves #1895
2020-01-24 17:53:14 +01:00
Oleg Zhurakousky
92379f60c7 GH-1891 Updated the doc by adding a note on Consumer 2020-01-24 13:21:48 +01:00
Oleg Zhurakousky
358dc106ca GH-1891 Added test to validate propper behavior of stateful functions
While the original issue was addressed with the reversak of a5e990b2d0 commit
this commit simply adds a test to validate the expected behavior

Resolves #1891
2020-01-23 19:27:35 +01:00
Oleg Zhurakousky
664629573f Polished subscribtion logic in FunctionConfiguration 2020-01-23 18:13:56 +01:00
Oleg Zhurakousky
a5e990b2d0 Revert "Additional consolidation and simplification of logic around bootstrapping multiple argument and single arguments functions"
This reverts commit c614e15f10.
2020-01-23 16:33:52 +01:00
Stephen Oakey
3461b97286 Add @ConditionalOnAvailableEndpoint to Actuator Endpoints
Resolves #1889

- Added @ConditionalOnAvailableEndpoint to endpoint bean
definitions so that they may be managed by Spring Boot's
configuration properties.
2020-01-21 20:23:13 +01:00
Oleg Zhurakousky
c614e15f10 Additional consolidation and simplification of logic around bootstrapping multiple argument and single arguments functions 2020-01-21 20:05:22 +01:00
Oleg Zhurakousky
9ce5e57080 Clean up and refactoring
- Upgraded to functions 3.0.2.BS
- Fixed Supplier sample in documentation (see https://stackoverflow.com/questions/59744352/messagedeliveryexception-in-case-of-using-function-and-supplier-in-one-spring-cl)
- Consolidated and simplified logic around bootstrapping multiple argument and single arguments functions
- Added test for useNativeEncoding
2020-01-15 07:05:12 +01:00
Oleg Zhurakousky
ca54a9f878 GH-1882 Ensured that BindableProxyFactory.getObject() can return null
The call to getObject() may result in NPE if 'type' is null. Regardless of why that may be the getObject() will simply return null instead of throwing an exception

Resolves #1882
2020-01-10 14:21:51 +01:00
Oleg Zhurakousky
51e8d73116 GH-1880 Fixed application event propagation
Whe framework creates child context it contains different set of listeners then the ones that are in parent. Such child context was created whenevr explicit binder 'environment' was provided. And because BindingCreatedEvent was fired on parent application context it was never acted upon thus preventing subscription on the reactive Supplier

Resolves #1880
2020-01-10 14:03:52 +01:00
Oleg Zhurakousky
d7c2b7aed8 GH-1883 Fixed native encoding support for functions
Addressed native encoding issue similar to the way it was done for the Supplier in #1885 where functions that are configured with useNativeEncoding should be looked up with no content type provided ensuring no output conversion is performed.

Resolves #1883
2020-01-09 20:14:56 +01:00
Oleg Zhurakousky
65940f8904 Removing white spaces
Resolves #1875
2020-01-08 16:50:46 +01:00