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 sequenceFilter syntax #2600

Merged
merged 1 commit into from
Dec 7, 2018
Merged

Add sequenceFilter syntax #2600

merged 1 commit into from
Dec 7, 2018

Conversation

kubukoz
Copy link
Member

@kubukoz kubukoz commented Nov 7, 2018

No description provided.

@kubukoz kubukoz changed the title Add sequenceFilter syntax WIP: Add sequenceFilter syntax Nov 7, 2018
@@ -77,3 +78,5 @@ trait AllSyntaxBinCompat2
with ValidatedSyntaxBincompat0

trait AllSyntaxBinCompat3 extends UnorderedFoldableSyntax

trait AllSyntaxBinCompat4 extends TraverseFilterSyntaxBinCompat0
Copy link
Contributor

@kailuowang kailuowang Nov 7, 2018

Choose a reason for hiding this comment

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

AllSyntaxBinCompat3 was introduced since last release, you should be able to just use it.

Copy link
Member Author

Choose a reason for hiding this comment

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

Ah, wonderful. I was actually thinking about that but hadn't checked before making this PR. I'll move the extension there, then.

I also plan on providing some test(s).

@kubukoz
Copy link
Member Author

kubukoz commented Nov 13, 2018

@kailuowang is there a chance to get this in 1.5.0? I'll merge the bincompat syntax traits now.

@kubukoz kubukoz changed the title WIP: Add sequenceFilter syntax Add sequenceFilter syntax Nov 13, 2018
@kubukoz
Copy link
Member Author

kubukoz commented Nov 13, 2018

Looks like I'm missing the new instances (TraverseFilter[List]) in syntax tests, this shouldn't take long

@@ -2,3 +2,12 @@ package cats
package syntax

trait TraverseFilterSyntax extends TraverseFilter.ToTraverseFilterOps

trait TraverseFilterSyntaxBinCompat0 {
Copy link
Contributor

Choose a reason for hiding this comment

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

We also want this to go to cats.syntax.all and cats.implicits right?

Copy link
Contributor

Choose a reason for hiding this comment

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

also can we add at least a doctest for it?

Copy link
Member Author

Choose a reason for hiding this comment

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

It was in cats.syntax.all :) I added it to cats.implicits now, also made a doctest. Because there's been a release in the meantime, I added back the new bincompat trait. I'll push the changes once sbt gives me a green light.

@kailuowang
Copy link
Contributor

ideally we want to test all non-bug fix changes in RC before rolling out. So if it's not urgent let's wait for 1.6. I plan to shorten the release cadence to 1-2 months.

@codecov-io
Copy link

codecov-io commented Nov 14, 2018

Codecov Report

Merging #2600 into master will increase coverage by <.01%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #2600      +/-   ##
==========================================
+ Coverage   95.12%   95.12%   +<.01%     
==========================================
  Files         363      364       +1     
  Lines        6704     6706       +2     
  Branches      289      289              
==========================================
+ Hits         6377     6379       +2     
  Misses        327      327
Impacted Files Coverage Δ
...re/src/main/scala/cats/syntax/traverseFilter.scala 100% <100%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update b781a1a...0fb9cda. Read the comment docs.

@kubukoz
Copy link
Member Author

kubukoz commented Nov 14, 2018

Sure, that fits me. I'll update this PR soon :)

@kubukoz
Copy link
Member Author

kubukoz commented Dec 7, 2018

@kailuowang please take a look :)

Copy link
Contributor

@kailuowang kailuowang left a comment

Choose a reason for hiding this comment

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

LGTM, thanks so much for keeping this one updated.

@LukaJCB LukaJCB merged commit 903617a into typelevel:master Dec 7, 2018
@kailuowang kailuowang added this to the 1.6 milestone Jan 8, 2019
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.

4 participants