Skip to content
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
merged 41 commits into from
Mar 10, 2020

Conversation

marcinus
Copy link
Contributor

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 optional JsonObject 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 and SubtaskNodeFactory.
FragmentsEngine is changed to return full FragmentEventContextTaskAware for potential future reuse.

Motivation and Context

Relates to #92

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)

Checklist:

  • My code follows the code style of this project.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.

I hereby agree to the terms of the Knot.x Contributor License Agreement.

@tomaszmichalak tomaszmichalak force-pushed the feature/expose-task-metadata branch from 8dc5c30 to 9d2999d Compare February 17, 2020 08:48
@marcinus marcinus force-pushed the feature/expose-task-metadata branch from 55ce510 to fc22860 Compare February 22, 2020 21:07
@tomaszmichalak tomaszmichalak force-pushed the feature/expose-task-metadata branch from fc22860 to 93ef44f Compare February 24, 2020 11:43
@codecov
Copy link

codecov bot commented Feb 24, 2020

Codecov Report

Merging #104 into master will not change coverage by %.
The diff coverage is n/a.

Impacted file tree graph

@@            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.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update e945ff6...e945ff6. Read the comment docs.

@tomaszmichalak tomaszmichalak merged commit ffa6866 into master Mar 10, 2020
This was referenced Mar 11, 2020
@tomaszmichalak tomaszmichalak deleted the feature/expose-task-metadata branch March 11, 2020 16:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants