-
Notifications
You must be signed in to change notification settings - Fork 5
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
#92 Provide task metadata to event consumer. Expose in debug script. #104
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8dc5c30
to
9d2999d
Compare
handler/engine/src/main/java/io/knotx/fragments/engine/Task.java
Outdated
Show resolved
Hide resolved
55ce510
to
fc22860
Compare
fc22860
to
93ef44f
Compare
Codecov Report
@@ Coverage Diff @@
## master #104 +/- ##
=========================================
Coverage 87.56% 87.56%
Complexity 1415 1415
=========================================
Files 148 148
Lines 6000 6000
Branches 185 185
=========================================
Hits 5254 5254
Misses 653 653
Partials 93 93 Continue to review full report at Codecov.
|
handler/core/src/main/java/io/knotx/fragments/engine/NodeMetadata.java
Outdated
Show resolved
Hide resolved
…-fragments into feature/expose-task-metadata
Voycawojka
reviewed
Mar 2, 2020
handler/core/src/main/java/io/knotx/fragments/handler/consumer/metadata/EventLogConverter.java
Outdated
Show resolved
Hide resolved
Voycawojka
reviewed
Mar 2, 2020
handler/core/src/main/java/io/knotx/fragments/handler/consumer/metadata/MetadataConverter.java
Outdated
Show resolved
Hide resolved
Voycawojka
reviewed
Mar 2, 2020
handler/core/src/main/java/io/knotx/fragments/task/factory/node/action/ActionNodeFactory.java
Outdated
Show resolved
Hide resolved
…-fragments into feature/expose-task-metadata
…-fragments into feature/expose-task-metadata � Conflicts: � handler/core/src/test/java/io/knotx/fragments/handler/consumer/metadata/MetadataConverterTest.java
…-fragments into feature/expose-task-metadata # Conflicts: # handler/core/src/main/java/io/knotx/fragments/task/factory/node/action/ActionProvider.java
handler/core/src/main/java/io/knotx/fragments/handler/LoggedNodeStatus.java
Show resolved
Hide resolved
handler/core/src/main/java/io/knotx/fragments/handler/ExecutionPlan.java
Show resolved
Hide resolved
tomaszmichalak
approved these changes
Mar 10, 2020
This was referenced Mar 11, 2020
Closed
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Provides a maintainable way to append metadata to Tasks.
The metadata creation is integrated in DefaultTaskFactory and NodeFactories (Action and Subtask).
The metadata is then provided to the consumer and can be exposed in HTML.
Description
Task
definition now contains an optionalJsonObject
field metadata.DefaultTaskFactory
makes use of this field to provide metadata that is generated from configuration.NodeFactory
interface is enhanced with a default method for returning node's metadata.This method is overriden in
ActionNodeFactory
andSubtaskNodeFactory
.FragmentsEngine
is changed to return fullFragmentEventContextTaskAware
for potential future reuse.Motivation and Context
Relates to #92
Types of changes
Checklist:
I hereby agree to the terms of the Knot.x Contributor License Agreement.