Oleg Zhurakousky
096df2f22c
SCST-2065 Fix deserialization error when multi IO signature
...
Fix deserializatioin error when using complex signatures such as Function<Tuple2<Flux<Message<String>>
The issue originated from spring cloud stream https://github.com/spring-cloud/spring-cloud-stream/issues/2065
2020-12-10 15:53:05 +01:00
Oleg Zhurakousky
066b154508
interim
2020-12-10 07:56:15 +01:00
Oleg Zhurakousky
6b03cf7a1e
Polish previous commit
...
Add FunctionInspector dependency back to SimpleFunctionRegistry since we can't remove it yet to avoid backward comatibility issues
Resolves #617
2020-12-08 18:44:16 +01:00
Mingyuan Wu
b4f193fd3c
Disconnect FunctionInspector from AbstractComposableFunctionRegistry and SimpleFunctionRegistry
2020-12-08 17:31:56 +01:00
Oleg Zhurakousky
5299de10c3
Minor improvements and clean up Cloud Event package
2020-12-03 20:31:17 +01:00
Oleg Zhurakousky
119a688388
Consolidate Cloud Events attribute prefix swap logic
2020-12-02 18:56:51 +01:00
Oleg Zhurakousky
aede56dfc6
Fix Cloud Events support for Message functions
...
Ensured Cloud Event completness by adding assertion for required attributes as well as generation of default values for attributes such as ID and SPECVERSION
2020-12-02 18:22:17 +01:00
Oleg Zhurakousky
923d5204e4
Tidy up logic around canonicalization of attributes
...
Added initial test to validate builder and utils
2020-12-02 15:17:17 +01:00
Oleg Zhurakousky
753d6369a2
interim
2020-12-02 13:10:05 +01:00
Oleg Zhurakousky
91b343aa0f
interim
2020-12-02 12:45:45 +01:00
Oleg Zhurakousky
523cd1023f
Change canonical format of Cloud Event Message attributes to have 'ce-' prefix
2020-12-02 11:24:03 +01:00
Oleg Zhurakousky
0cdcc46f57
Minor cleanup and javadocs
2020-12-02 09:20:50 +01:00
Oleg Zhurakousky
306da4248a
Restructure Cloud Events support to optionally support Cloud Events SDK
2020-12-01 22:12:34 +01:00
Oleg Zhurakousky
70fbcec586
Revert "Add a new strategy for header enrichment"
...
This reverts commit 6852d674e1 .
2020-11-30 15:23:42 +01:00
Dave Syer
6852d674e1
Add a new strategy for header enrichment
...
There was a TODO in the cloud events section of the function catalog.
This extracts that into a strategy and autoconfigures it:
CloudEventOutputMessageHeaderEnricher.
2020-11-25 16:07:14 +00:00
Oleg Zhurakousky
e2788fbab0
GH-611 Add test to ensure there is no regression
...
Resolves #611
2020-11-23 20:25:18 +01:00
Oleg Zhurakousky
e4242388fb
GH-609 Fix support for missmatched Publishers
...
Given that s-c-f-web always sends input as Flux, it creates issues for Function<Mono, Mono>, so this fixes it
Resolves #609
2020-11-20 12:13:52 +01:00
Oleg Zhurakousky
e112b6c9dc
GH-608 Add test to validate there is no regression
...
Resolves #608
2020-11-20 11:27:03 +01:00
Dave Syer
abfe1b648c
Move @Autowired field to lazy init method
2020-11-20 09:56:03 +00:00
buildmaster
ccbcb11409
Going back to snapshots
2020-11-17 16:13:28 +00:00
buildmaster
e4ad754beb
Update SNAPSHOT to 3.1.0-M5
2020-11-17 16:11:20 +00:00
Oleg Zhurakousky
cd2d84d382
Fix spelling errors in method name
2020-11-17 16:54:29 +01:00
Oleg Zhurakousky
462e9f0855
Minor cleanup
2020-11-17 10:47:45 +01:00
Oleg Zhurakousky
1187c04dde
Add AMQP prefix recognition to CloudEventMessageUtils
2020-11-17 10:00:23 +01:00
Oleg Zhurakousky
53addc50c8
Add additional Cloud Event function test
2020-11-17 08:58:53 +01:00
Oleg Zhurakousky
0a413331e8
Polishing cleanup and javadoc
2020-11-17 08:01:21 +01:00
Oleg Zhurakousky
f249f28383
Improve and add javadocs
...
Related to GH-422 and GH-606
2020-11-16 19:15:39 +01:00
Oleg Zhurakousky
2aa92a72a1
GH-422, GH-606 Fis structure mode attribute generation
2020-11-16 17:44:07 +01:00
Oleg Zhurakousky
24ef2747ba
GH-422, GH-606 Improve generation of default attributes for Consumer
2020-11-16 16:49:59 +01:00
Oleg Zhurakousky
ee3868debd
GH-422, GH-606 Add support for generating attributes using provider in Consumer
2020-11-16 16:27:54 +01:00
Oleg Zhurakousky
6093aefe14
GH-422, GH-606 Fix attributes generatioin
2020-11-16 14:20:02 +01:00
Oleg Zhurakousky
ac54a83e09
Clean up and simplifications around CloudEvent processing
...
This commit effectively a merge of work with #607 and simplifies the following
- CloudEventAttributesProvider now provides CloudEventAttributes initialized with defaults to be set by the user
- In HTTP RequestProcessor the logic of sanitizing headers was improved to ensure that correct prefix is applied
Resolves #607
2020-11-16 13:40:53 +01:00
Oleg Zhurakousky
a0208ceadd
Made RequiredAttributeAccessor constructor public
...
Related to #422,606
2020-11-16 12:25:48 +01:00
Oleg Zhurakousky
ada16079ca
GH-422 GH-606 Add support for normalizing structure-mode CE message
...
Normalizing in this context means converting it to binary-mode so the rest of the processing logic is the same.
Added support for canonical attribute names. Now, internally any attribute can be set as 'ce_' regardless where it came from are where it goes to as the frameork will be able to recognize both
Removed CloudEventMessageConverter
Renamed CloudEventAttributes to CloudEventAttributesHelperas it is better suited to what it actually does
2020-11-16 12:06:33 +01:00
Oleg Zhurakousky
c31b7f1f20
Make CloudEventAttributesProvider a FunctionalInterface
...
Related to #422 and #606
2020-11-16 08:41:42 +01:00
Oleg Zhurakousky
311649c312
Fix CloudEvent prefix and fix the name of CloudEventAttributesProvider.java
2020-11-13 16:07:33 +01:00
Oleg Zhurakousky
e627aa1a28
fix styles
2020-11-13 11:43:31 +01:00
Oleg Zhurakousky
784fde2e1f
GH-606 add initila support for generating default cloud event attributes
2020-11-13 11:39:48 +01:00
Oleg Zhurakousky
9c58e6d64b
GH-422 GH-606 Add support for simplifying message headers to attribute mapping
...
Added CloudEventAttributesProvider and default implementation
Added CloudEventMessageUtils
2020-11-13 10:24:27 +01:00
Oleg Zhurakousky
f999cdd787
GH-422 Formalize Cloud Event conversion strategy to consistently handle binary-mode and structured-mode cloud events
...
Moved CloudEvent related artifacts to ‘cloud events’ package with hopes to eventually donating it to CNCF SDK
Created CloudEventUtils identifying necessary constants and utility methods
2020-11-12 17:01:42 +01:00
Oleg Zhurakousky
a39476561a
GH-422 Add RabbitMQ instructions for Cloud Events interaction
2020-11-11 11:53:39 +01:00
Oleg Zhurakousky
a6eb8339a5
GH-422 Improvements in cloud event samples
...
Added initial README
Polished tests
2020-11-11 09:18:51 +01:00
Oleg Zhurakousky
2a88b52ca1
GH-422 Add initial set of Cloud Event samples
...
This commit adds initial set of samples and tests demonstrating various ways of how cloud event can be consumed (i.e., structured, bindary, pojo etc)
2020-11-10 16:29:30 +01:00
Oleg Zhurakousky
8a032e7ed9
GH-422 Initial support for CloudEvents
...
Added initial implementation of MessageConverter
At the moment there seem that MessageConverter(s) would be the only thing needed to integrate Cloud Events with various elements of Spring
2020-11-10 14:50:09 +01:00
Oleg Zhurakousky
43e1651527
GH-592 Logging improvements
...
Resolves #592
2020-11-09 20:06:13 +01:00
Oleg Zhurakousky
3cea0343df
PR-605 less formatting
...
Resolves #605
2020-11-09 16:16:23 +01:00
Oleg Zhurakousky
8774383dc8
GH-601 add test to validate the issue is fixed
...
Resolves #601
2020-11-09 15:35:35 +01:00
Oleg Zhurakousky
9b325ce7e6
GH-602 Ensure collections with converted items are not converted again
...
Resolves #602
2020-11-09 14:07:20 +01:00
Oleg Zhurakousky
dd0f70bc8e
Simplify logic around getting item type of a function type
2020-11-04 11:29:01 +01:00
Oleg Zhurakousky
1209fa1053
Additional clean up and polishing
2020-11-04 10:43:29 +01:00