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 implementation of distinctBy #602

Merged
merged 1 commit into from
Jun 15, 2023
Merged

Conversation

alexklibisz
Copy link
Contributor

Addressing #543

Shamelessly lifted @xuwei-k 's recommended implementation and added a few unit tests. Happy to expand as necessary.

@alexklibisz alexklibisz mentioned this pull request Jun 10, 2023
@julienrf
Copy link
Contributor

It is not clear to me why the binary compatibility tests are failing. It seems the value of versionPolicyIntention is Compatibility.BinaryAndSourceCompatible but I can’t see where we provide such value in the build. @SethTisue do you have an idea?

@julienrf julienrf linked an issue Jun 12, 2023 that may be closed by this pull request
@SethTisue SethTisue self-assigned this Jun 14, 2023
@SethTisue SethTisue mentioned this pull request Jun 14, 2023
5 tasks
@SethTisue SethTisue force-pushed the alexklibisz-543 branch 2 times, most recently from d1859d8 to 3234b3c Compare June 14, 2023 18:00
@SethTisue
Copy link
Member

SethTisue commented Jun 14, 2023

the MiMa thing went away on rebase (thanks to #595 I guess?)

I also did scalafmt compat/src/main/scala-2.11_2.12/scala/collection/compat/PackageShared.scala compat/src/test/scala/test/scala/collection/CollectionTest.scala to fix the scalafmt check

@SethTisue SethTisue merged commit 04db1f4 into scala:main Jun 15, 2023
@SethTisue
Copy link
Member

thank you @alexklibisz ! I'll roll a release before too much longer (ticket on that is #603)

mergify bot referenced this pull request in slick/slick Jun 16, 2023
…2.11.0 (#2749)

[![Mend
Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Update | Change |
|---|---|---|
|
[org.scala-lang.modules:scala-collection-compat](http://www.scala-lang.org/)
([source](https://github.com/scala/scala-collection-compat)) | minor |
`2.10.0` -> `2.11.0` |

---

### Release Notes

<details>
<summary>scala/scala-collection-compat</summary>

###
[`v2.11.0`](https://github.com/scala/scala-collection-compat/releases/tag/v2.11.0):
2.11.0

[Compare
Source](https://github.com/scala/scala-collection-compat/compare/v2.10.0...v2.11.0)

#### What's Changed

- Add `RegexOps` by [@&#8203;jozic](https://github.com/jozic) in
[https://github.com/scala/scala-collection-compat/pull/595](https://github.com/scala/scala-collection-compat/pull/595)
- Add implementation of distinctBy by
[@&#8203;alexklibisz](https://github.com/alexklibisz) in
[https://github.com/scala/scala-collection-compat/pull/602](https://github.com/scala/scala-collection-compat/pull/602)

#### New Contributors

- [@&#8203;jozic](https://github.com/jozic) made their first
contribution in
[https://github.com/scala/scala-collection-compat/pull/595](https://github.com/scala/scala-collection-compat/pull/595)
- [@&#8203;alexklibisz](https://github.com/alexklibisz) made their
first contribution in
[https://github.com/scala/scala-collection-compat/pull/602](https://github.com/scala/scala-collection-compat/pull/602)

**Full Changelog**:
scala/scala-collection-compat@v2.10.0...v2.11.0

</details>

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined),
Automerge - At any time (no schedule defined).

🚦 **Automerge**: Disabled by config. Please merge this manually once you
are satisfied.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the
rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update
again.

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

This PR has been generated by [Mend
Renovate](https://www.mend.io/free-developer-tools/renovate/). View
repository job log
[here](https://app.renovatebot.com/dashboard#github/slick/slick).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNS4xMTcuMyIsInVwZGF0ZWRJblZlciI6IjM1LjExNy4zIiwidGFyZ2V0QnJhbmNoIjoibWFpbiJ9-->
@alexklibisz alexklibisz deleted the alexklibisz-543 branch June 17, 2023 18:05
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.

add distinctBy
3 participants