-
Notifications
You must be signed in to change notification settings - Fork 639
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[ISSUE #4646] Add condition for transforming non-data values #4637
base: master
Are you sure you want to change the base?
Conversation
[ISSUE apache#4217 apache#4218 apache#4219 apache#4220]Some bug fixes and optimization in http protocol
…4173) * resolved the tasks mentioned in issue 4105 * changed declaration from strict to raw type * resolved checkstyle iussue
…n APIs of dashboard (apache#4210) * doc: Add JavaDoc for ClientManageController * doc: Add JavaDoc for HttpHandlerManager * doc: Add JavaDoc for AbstractHttpHandler * doc: Add JavaDoc for ConfigurationHandler * doc: Add JavaDoc for MetricsHandler * doc: Add JavaDoc for RegistryHandler * doc: Add JavaDoc for TopicHandler * doc: Add JavaDoc for EventHandler * doc: Add JavaDoc for TCPClientHandler * doc: Add JavaDoc for HTTPClientHandler * doc: Add JavaDoc for GrpcClientHandler
…etmq Module (apache#4183) * doc: Write JavaDoc and comments for AdminController * doc: Write JavaDoc and comments for TopicsHandler * doc: Write JavaDoc and comments for TopicCreateRequest * doc: Write JavaDoc and comments for TopicResponse * doc: Write JavaDoc and comments for RequestMapping * doc: Write JavaDoc and comments for UrlMappingPattern * doc: Update JavaDoc of ClientManageController#start * chore: remove 1 old doc to solve the conflict
…pache#4177) * Make headerMap and sysHeaderMap transient * Make public fields private in HttpEventWrapper
Fix apache#4197 Signed-off-by: Kartik Tayal <[email protected]>
…minWebHookConfigOperationManager (apache#4216) * Optimize: Correct oldAccesssible typos to oldAccessible and add comments * Optimize: Remove redundant transient keyword
Add licenses for eventmesh-sdk-go
…he#4231) * support metadata management in http protocol * fix checkstyle:file format problem * fix checkstyle problem
…MeshMessageProducer] (apache#4212) * Update EventMeshMessageProducer.java Removed stack trace at line 120 * Update EventMeshMessageProducer.java Removed the `if` statement * Update EventMeshMessageProducer.java Fixed indentation at 119
…EN) get null (apache#4225) * Create .lift.toml * Update .lift.toml * Update .lift.toml * Update .lift.toml * Update .lift.toml * Update .lift.toml * Update .lift.toml * Update .lift.toml * Update .lift.toml * delete lift * add token field
…er: expected value, actual value: Assert.assertEquals(expected, actual).[ConfigurationHolderTest]
…HookConfigOperationManager (apache#4228) * Optimize: Use switch...case... and remove redundantly throwed exception. * fix checkstyle
…o containsValue() (apache#4249) * Update TcpClient.java * Update HeatBeatScheduler.java
Added `final` in lines 31,33. Removed the redundant `null` initialization at lines 48 and 69.
…alculation of escape time (apache#4242)
…pache#4235) * fix: Dereference of 'heartbeatItems' may produce NPE. * style: code checkstyle. --------- Co-authored-by: noah.pan <[email protected]>
* fix: Catch Exception instead of Throwable * style: code checkstyle. --------- Co-authored-by: noah.pan <[email protected]>
* replace LinkedList by ArrayList * update import order
* Do some code optimization.[util] * Do some code optimization.[util]
[ISSUE apache#4065]Make registry plugin Nacos support more configuration items
* [ISSUE apache#4011] add kafkaConnector module * [ISSUE apache#4011] add kafkaConnector module * [ISSUE apache#4011] fix codestyle * Fixes apache#4011. add default config for kafka sink and source
The
The |
eventmesh/eventmesh-transformer/src/main/java/org/apache/eventmesh/transformer/JsonPathParser.java Lines 74 to 83 in fdd8796
@pmupkin This is the logic of match . The code in line 82 , it retrieves the content specified in the first parameter JSON based on the second parameter, JSON path. The second parameter, JSON path, is obtained from variablesList property of JsonPathParser . You also said that this attribute stores JSON keys and values without a JSON path, does this mean that the match method is invalid?
这是 |
Regarding the code at line 82, for instance, if a value in the provided JSON format by the user is $.data.time, the JsonPath tool will be used to match corresponding values in CloudEvents. Could you provide an example illustrating the issue you mentioned? |
@pmupkin 我有些困惑。JSON格式不应该是像这样吗 |
Here's a fact: |
@pmupkin Addtionally, please pay attention to the first review comment above #4637 (comment). 您能否提供一个或多个完整的Transformer规则编写示例?然后我根据它们,再学习一遍您的PR #4365中有关Transformer的代码,以及PR #4622的代码。谢谢! |
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## master #4637 +/- ##
============================================
+ Coverage 17.28% 17.40% +0.12%
- Complexity 1741 1762 +21
============================================
Files 792 797 +5
Lines 29697 29798 +101
Branches 2567 2579 +12
============================================
+ Hits 5132 5187 +55
- Misses 24090 24130 +40
- Partials 475 481 +6 ☔ View full report in Codecov by Sentry. |
It has been 60 days since the last activity on this pull request. I am reaching out here to gently remind you that the Apache EventMesh community values every pull request, and please feel free to get in touch with the reviewers at any time. They are available to assist you in advancing the progress of your pull request and offering the latest feedback. If you encounter any challenges during development, seeking support within the community is encouraged. We sincerely appreciate your contributions to Apache EventMesh. |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #4637 +/- ##
============================================
+ Coverage 17.28% 17.40% +0.12%
- Complexity 1741 1762 +21
============================================
Files 792 797 +5
Lines 29697 29798 +101
Branches 2567 2579 +12
============================================
+ Hits 5132 5187 +55
- Misses 24090 24130 +40
- Partials 475 481 +6 ☔ View full report in Codecov by Sentry. |
May I ask that is this PR ready for review? |
It has been 60 days since the last activity on this pull request. I am reaching out here to gently remind you that the Apache EventMesh community values every pull request, and please feel free to get in touch with the reviewers at any time. They are available to assist you in advancing the progress of your pull request and offering the latest feedback. If you encounter any challenges during development, seeking support within the community is encouraged. We sincerely appreciate your contributions to Apache EventMesh. |
It has been 60 days since the last activity on this pull request. I am reaching out here to gently remind you that the Apache EventMesh community values every pull request, and please feel free to get in touch with the reviewers at any time. They are available to assist you in advancing the progress of your pull request and offering the latest feedback. If you encounter any challenges during development, seeking support within the community is encouraged. We sincerely appreciate your contributions to Apache EventMesh. |
It has been 60 days since the last activity on this pull request. I am reaching out here to gently remind you that the Apache EventMesh community values every pull request, and please feel free to get in touch with the reviewers at any time. They are available to assist you in advancing the progress of your pull request and offering the latest feedback. If you encounter any challenges during development, seeking support within the community is encouraged. We sincerely appreciate your contributions to Apache EventMesh. |
Fixes #4646
From a design perspective, the transformer needs to avoid converting non-data fields that users may attempt to transform. The original code allowed users to transform fields in the EventMesh; restrictions have been added. If users utilize non-data fields, an exception will be thrown.