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

Refactor Condition and Column Rendering #662

Merged
merged 18 commits into from
Aug 22, 2023
Merged

Conversation

jeffgbutler
Copy link
Member

This PR introduces RenderingContext which makes it easier to pass around the support objects necessary for rendering.

The PR changes the rendering method for columns and functions such that they now receive the whole rendering context in their render methods. This allows for rendering of more complex functions (such as requested in #655)

The PR also changes the rendering method for conditions such that the rendering is only performed in the DefaultConditionVisitor. Previously rendering was shared between that visitor and the conditions themselves which was confusing.

Finally, the PR implements the change to the sum function requested in #655.

@coveralls
Copy link

coveralls commented Aug 22, 2023

Coverage Status

coverage: 100.0%. remained the same when pulling 31c935d on jeffgbutler:gh-655 into 6b71409 on mybatis:master.

@jeffgbutler jeffgbutler merged commit 9eff6e4 into mybatis:master Aug 22, 2023
@jeffgbutler jeffgbutler deleted the gh-655 branch August 22, 2023 20:20
@jeffgbutler jeffgbutler added this to the 1.5.1 milestone Aug 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants