-
Notifications
You must be signed in to change notification settings - Fork 75
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
Adding missing fields to User #250
Conversation
@mfirry Thank you for this contribution. At first, it looks good. |
Weird, what kind of issue were you getting? |
So at first I figured I could "just" add the two fields (both as (it's a Play app)
|
Hi @mfirry. I believe you're having a binary compatibility issue between the library that's currently published (0.20.0), and the one you've published locally. The error you're receiving says that the current github4s artifact in your classpath doesn't have all those fields. Can you share your you could try doing a |
Hi @pepegar, I'll try what you suggest and update this PR if it works. Thanks a lot. |
Looks like you were right @pepegar. I'll update this in a minute. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
successfully ran the tests locally 👍
I might need to add more fields (like Should I do this in one big PR (this one) or smaller ones? |
@mfirry regarding adding more fields, I don't have a strong opinion. If you want to keep adding commits to this PR is fine from my side. Just mark this PR as WIP and ping us when you're done. |
I'm re-thinking about the following and followers part... I might add Having a |
Ok it does work but the User object in the How to go about it?
I'll spend the weekend thinking about. What's your take? |
Hi @mfirry, hum... that's tricky :) How many different fields are there? My gut feeling is that, if there's no a lot of different fields I prefer to keep a single entity If the fields change a lot though, it may make sense to have different entities. Sorry to give you such a vague answer :) I think we could discuss it much better if you can push your WIP to see how many optional fields we end up with. |
To answer your question, here's the list of fields you get from the
Of all of these, in this PR, I've added I'll open a separate PR in order to be able to add the Deal? :) |
Hi. I'm pretty much done here. Let me know if it makes sense to you. Cheers! |
Hey @mfirry, sorry I forgot about this. I'll review it ASAP, thank you! |
Hi @mfirry, thanks for your contribution! I think your changes are good! However you have to fix also the test so we can have a green in travis and merge your PR 🙂 Fix the tests so we can fully review you PR!! Thanks! 😄 |
Uh sorry. My bad. Don't know how that happened. Fixing it as we speak. |
So some integration tests fail... but it's not clear to me whether I can do anything about it. Can somebody else have a look and point me to the right direction? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @mfirry , I ran the tests locally and they succeeded
I needed these two fields for a personal project (though I know they're pretty easy to come up with... nonetheless, feel free to reject this should you think it's not required.
Note: I had to explicitly define
circe
's en/decoders onUser
's companion object and usesemiauto
instead ofauto
inUsers
. Not sure why I had to but I kept having weirdDerivedDecoder
issues without this change.