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

Migrate to magnolia1 #4422

Merged
merged 7 commits into from Aug 1, 2022
Merged

Migrate to magnolia1 #4422

merged 7 commits into from Aug 1, 2022

Conversation

RustedBones
Copy link
Contributor

Fix #4420

@RustedBones RustedBones added this to the 0.12.0 milestone Jun 14, 2022
@codecov
Copy link

codecov bot commented Jun 14, 2022

Codecov Report

Merging #4422 (5f8017b) into main (406faf5) will decrease coverage by 0.02%.
The diff coverage is 83.33%.

❗ Current head 5f8017b differs from pull request most recent head 8f654eb. Consider uploading reports for the commit 8f654eb to get more accurate results

@@            Coverage Diff             @@
##             main    #4422      +/-   ##
==========================================
- Coverage   60.50%   60.48%   -0.03%     
==========================================
  Files         275      275              
  Lines        9882     9882              
  Branches      444      438       -6     
==========================================
- Hits         5979     5977       -2     
- Misses       3903     3905       +2     
Impacted Files Coverage Δ
...n/scala/com/spotify/scio/coders/DerivedCoder.scala 91.89% <80.00%> (ø)
...chemas/instances/LowPrioritySchemaDerivation.scala 100.00% <100.00%> (ø)
...y/scio/values/PairSkewedSCollectionFunctions.scala 93.24% <0.00%> (-2.71%) ⬇️

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 406faf5...8f654eb. Read the comment docs.

Copy link
Contributor

@kellen kellen left a comment

Choose a reason for hiding this comment

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

Approving to unblock a merge, but see comments

build.sbt Outdated Show resolved Hide resolved
build.sbt Outdated Show resolved Hide resolved

type Typeclass[T] = Coder[T]

def combine[T](ctx: CaseClass[Coder, T]): Coder[T] =
Copy link
Contributor

Choose a reason for hiding this comment

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

What's the logic on this rename?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

magnolia1 changed its API:

  • combine -> join
  • dispatch -> split

The magnolia macro expects those functions to be defined. This code shouldn't be used directly by users anyway

@RustedBones RustedBones marked this pull request as ready for review July 11, 2022 08:27
@RustedBones RustedBones merged commit 36935c1 into main Aug 1, 2022
@RustedBones RustedBones deleted the magnolia1 branch August 1, 2022 14:54
clairemcginty pushed a commit that referenced this pull request Oct 14, 2022
* Migrate to magnolia1

* Update doc links

* Remove magnolia1 annotations

* Disable formatting block

* Improve macro transformation to remove annotations

* Prefix type param matchers with tp

* Update to released version of magnolify
clairemcginty pushed a commit that referenced this pull request Oct 14, 2022
* Migrate to magnolia1

* Update doc links

* Remove magnolia1 annotations

* Disable formatting block

* Improve macro transformation to remove annotations

* Prefix type param matchers with tp

* Update to released version of magnolify
RustedBones added a commit that referenced this pull request Nov 22, 2022
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.

Update magnolia artifact
2 participants