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

Add extension distance methods with useSpheroid #1639

Merged
merged 4 commits into from
Jan 7, 2021

Conversation

tiborfsk
Copy link
Contributor

@tiborfsk tiborfsk commented Jan 6, 2021

Copy link
Member

@roji roji left a comment

Choose a reason for hiding this comment

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

Thanks, that looks pretty good! See comments below on the extension methods, and can you please also add tests in SpatialQueryNpgsqlGeometryTest?

@tiborfsk
Copy link
Contributor Author

tiborfsk commented Jan 7, 2021

Thanks, that looks pretty good! See comments below on the extension methods, and can you please also add tests in SpatialQueryNpgsqlGeometryTest?

Okay. Please why are some AssertSql calls commented out in some of the test cases in SpatialQueryNpgsqlGeometryTest?

@roji
Copy link
Member

roji commented Jan 7, 2021

Please why are some AssertSql calls commented out in some of the test cases in SpatialQueryNpgsqlGeometryTest?

The commented assertions are only on the SQL that gets generated - the actual functionality still gets tested (via the base class). In the EFCore.PG provider we don't systematically assert SQLs for all tests (like in the SqlServer provider), since SQL has tended to change in various ways because of upstream EF changes (and reacting every time takes a lot of effort). But you're right that we should clean this up here.

It would be great if you could assert SQL for the specific test you're adding, I'll try to clean up the rest soon.

Copy link
Member

@roji roji left a comment

Choose a reason for hiding this comment

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

Thanks, that looks great!

@roji roji merged commit ba26542 into npgsql:main Jan 7, 2021
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.

2 participants