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

GLSP-1266 Fix handling of zero values in builder functions #76

Merged
merged 2 commits into from
Feb 22, 2024

Conversation

ndoschek
Copy link
Contributor

@ndoschek ndoschek commented Feb 21, 2024

What it does

  • Fix handling of zero values in GBoundsAwareBuilder functions
  • Fix handling of zero values in GAlignableBuilder function
  • Adds unit tests for those updated functions

Resolves eclipse-glsp/glsp/issues/1266

Changelog

  • This PR should be mentioned in the changelog
  • This PR introduces a breaking change (if yes, provide more details below for the changelog and the migration guide)

@tortmayr tortmayr self-requested a review February 21, 2024 14:57
Copy link
Contributor

@tortmayr tortmayr left a comment

Choose a reason for hiding this comment

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

Looks good to me. Could you please also make the same adjustment for the GAlignableBuilder functions?
Also please update the Resolves comment in your commit to Resolves eclipse-glsp/glsp/issues/1266 otherwise autoclosing on merge won't work.

- Fix handling of zero values in GBoundsAwareBuilder functions
- Fix handling of zero values in GAlignableBuilder function

Resolves  eclipse-glsp/glsp/issues/1266
@ndoschek ndoschek changed the title GLSP-1266 Fix handling of zero values in GBoundsAwareBuilder functions GLSP-1266 Fix handling of zero values in builder functions Feb 21, 2024
@ndoschek
Copy link
Contributor Author

Sure, thanks for the review @tortmayr!

@ndoschek ndoschek requested a review from tortmayr February 21, 2024 16:11
Copy link
Contributor

@tortmayr tortmayr left a comment

Choose a reason for hiding this comment

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

Thanks! LGTM 👍🏼

@ndoschek ndoschek requested a review from tortmayr February 21, 2024 19:09
@ndoschek
Copy link
Contributor Author

I found some motivation and added a few unit tests for the functions I updated, would be great if you could have a quick look on those as well when you get a chance. Thanks!

Copy link
Contributor

@tortmayr tortmayr left a comment

Choose a reason for hiding this comment

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

Thanks. More test coverage is always appreciated 😉

@ndoschek ndoschek merged commit 4e5a7a9 into main Feb 22, 2024
6 checks passed
@ndoschek ndoschek deleted the issues/1266 branch February 22, 2024 13:35
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.

Fix builder functions to correctly handle 0 values for height / y
2 participants