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

datatables: Fix priority of default converters #514

Merged
merged 2 commits into from
Oct 26, 2018

Conversation

mpkorstanje
Copy link
Contributor

Summary

In some scenarios default converters would be used when a defined
converter was available. This was caused by returning a default
converter as soon as no regular converter was available.

This heuristic works well with two exceptions:

  • When the table contains a single line the default table entry
    transformer is never applicable
  • When the table keys don't imply a table entry the default table
    entry transformer is never applicable

By inlining this lookup and working out the exceptions the
old behaviour is restored.

Details

Fixes: cucumber/cucumber-jvm#1489
Fixes: cucumber/cucumber-jvm#1490

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:

  • I've added tests for my code.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.

In some scenarios default converters would be used when a defined
converter was available. This was caused by returning a default
converter as soon as no regular converter was available.

This heuristic works well with two exceptions:
 * When the table contains a single line the default table entry
   transformer is never applicable
 * When the table keys don't imply a table entry the default table
   entry transformer is never applicable

By inlining this lookup and working out the exceptions the
old behaviour is restored.

Fixes: cucumber/cucumber-jvm#1489
Fixes: cucumber/cucumber-jvm#1490
@mpkorstanje mpkorstanje merged commit d09d08d into master Oct 26, 2018
@mpkorstanje mpkorstanje deleted the fix-default-converter-priority branch October 26, 2018 13:49
@lock
Copy link

lock bot commented Oct 26, 2019

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock bot locked as resolved and limited conversation to collaborators Oct 26, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
1 participant