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

#146 Implement transitions alias #150

Merged
merged 9 commits into from
Aug 31, 2021
Merged

Conversation

Voycawojka
Copy link
Contributor

Description

Motivation and Context

#146

Screenshots (if appropriate)

Upgrade notes (if appropriate)

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.

@@ -0,0 +1,25 @@
tasks {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we need those files. I think it is the IDEA problem that it copies those files to the project root folder during tests execution (especially when those test fail).

@@ -0,0 +1,7 @@
# node & transitions
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This file is valid.

@@ -86,6 +87,16 @@ void expectTransitionSuccessWithNodeBThenNodeC(Vertx vertx) throws Throwable {
}, vertx);
}

@Test
@DisplayName("Expect 'on' to alias 'onTransitions'")
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please add the case when we mix onTransitions and on.

Additionally please update all functional tests to use on instead od onTransitions.

@Voycawojka
Copy link
Contributor Author

Connected with PR: Knotx/knotx-stack#119

@codecov
Copy link

codecov bot commented Jul 14, 2020

Codecov Report

Merging #150 into master will increase coverage by 0.00%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff            @@
##             master     #150   +/-   ##
=========================================
  Coverage     90.80%   90.80%           
- Complexity     1619     1620    +1     
=========================================
  Files           153      153           
  Lines          6783     6785    +2     
  Branches        183      183           
=========================================
+ Hits           6159     6161    +2     
  Misses          530      530           
  Partials         94       94           
Impacted Files Coverage Δ Complexity Δ
...agments/task/factory/generic/GraphNodeOptions.java 84.31% <100.00%> (+0.64%) 17.00 <1.00> (+1.00)

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 cd1d87b...536ff39. Read the comment docs.

Copy link
Member

@tomaszmichalak tomaszmichalak left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please add a section

# New Feature
Describe this change - this will be used in release notes.


@Test
@DisplayName("Expect 'onTransitions' to take precedence over 'on' alias")
void expectAliasToTakePrecedence(Vertx vertx) throws Throwable {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Or maybe we can throw some configuration exception when both on and onTransitions defined?

@tomaszmichalak tomaszmichalak merged commit 64ed7bd into master Aug 31, 2021
@tomaszmichalak tomaszmichalak deleted the alias-for-ontransitions branch August 31, 2021 18:56
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