Skip to content

Made implicit conversions to/from Raster and ProjectedRaster deprecated. - #2834

Merged
pomadchin merged 2 commits into
locationtech:masterfrom
metasim:metasim/deprecated-implicit-raster
Dec 7, 2018
Merged

pomadchin merged 2 commits into
locationtech:masterfrom
metasim:metasim/deprecated-implicit-raster

Conversation

@metasim

@metasim metasim commented Dec 1, 2018

Copy link
Copy Markdown
Member

Partially addresses #2829.

@pomadchin pomadchin left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM, but I wrote a couple of non critical questions.

/**
* Implicit conversion from a PolygonFeature to a [[Raster]].
*/
@deprecated("Implicit conversions considered unsafe", "2.1.1")

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I don't have a strong opinion about this deprecation warning. Can't we just remove them as we're preparing 3.0 release and definitely can break API?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

When you say "remove them" do you mean the @deprecation annotations, or the messages?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Conversions, we can just mention in docs that we removed these implicits.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Back-porting it and publishing the deprecation warnings with 2.1.1 is defiantly a good-guy move and we should do it.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

I'm still confused as to what you want me to do with this part.

Comment thread doc-examples/src/main/scala/geotrellis/doc/examples/raster/MatchingRasters.scala Outdated
@metasim

metasim commented Dec 3, 2018

Copy link
Copy Markdown
Member Author

NB: Build failed only due to one config timing out.

@pomadchin pomadchin left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Looks good to me, @metasim do you want to do smth else in terms of this PR?
Also probably it makes sense to create a separate PR just to remove these conversions.

@metasim

metasim commented Dec 4, 2018

Copy link
Copy Markdown
Member Author

If you're happy with the PR I say merge it. And yes, a separate PR for removal in 3.0 with appropriate changelog notice.

@pomadchin
pomadchin merged commit 42f94a6 into locationtech:master Dec 7, 2018
@pomadchin pomadchin added this to the 3.0 milestone Dec 7, 2018
@metasim
metasim deleted the metasim/deprecated-implicit-raster branch December 7, 2018 14:41
echeipesh pushed a commit that referenced this pull request Dec 28, 2018
Made implicit conversions to/from Raster and ProjectedRaster deprecated.
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