-
Notifications
You must be signed in to change notification settings - Fork 28
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
Case class for BindingCollection/Map #263
Conversation
Signed-off-by: Hongxin Liang <[email protected]>
81f8eb4
to
7bb1271
Compare
Signed-off-by: Hongxin Liang <[email protected]>
@@ -17,13 +17,12 @@ | |||
package org.flyte.flytekit |
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.
BTW why these classes are not under flytekitscala
package?
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.
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.
We cannot make it protected either as it would
* be good for the own object but both implementations deal with list or maps
* of [[SdkBindingData]] and therefore cannot call this method because it is in
* a different class.
Not sure I understand what this refers to.
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.
I think I understand what this means.
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.
I tried revising it a bit in a latter commit.
Signed-off-by: Hongxin Liang <[email protected]>
454bef3
to
a32679d
Compare
TL;DR
Make Scala
BindingCollection
andBindingMap
case classes.Type
Are all requirements met?
Complete description
Making them case classes to be able to support equality check. They should have been case classes in the first place, so this is a bug fix.
This change should have no user impact because both classes are package private.
Tracking Issue
NA
Follow-up issue
NA