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

feat(abg)!: replace data class perks by code generation in bindings #1644

Open
wants to merge 1 commit into
base: vampire/binding-version-v2
Choose a base branch
from

Conversation

Vampire
Copy link
Collaborator

@Vampire Vampire commented Sep 6, 2024

Fixes #1629

Copy link
Collaborator Author

Vampire commented Sep 6, 2024

Warning

This pull request is not mergeable via GitHub because a downstack PR is open. Once all requirements are satisfied, merge this PR as a stack on Graphite.
Learn more

This stack of pull requests is managed by Graphite. Learn more about stacking.

@Vampire Vampire force-pushed the vampire/no-data-bindings branch 2 times, most recently from fcb93fe to f2e6c05 Compare September 6, 2024 22:12
@Vampire Vampire force-pushed the vampire/versioned-routes branch from 6e0c383 to 05942ab Compare September 8, 2024 08:10
@Vampire Vampire force-pushed the vampire/no-data-bindings branch from f2e6c05 to f9bff8a Compare September 8, 2024 08:11
@Vampire Vampire changed the base branch from vampire/versioned-routes to vampire/binding-version-v2 September 8, 2024 08:11
@Vampire Vampire force-pushed the vampire/no-data-bindings branch 2 times, most recently from 26ff564 to 915be83 Compare September 8, 2024 15:23
@Vampire Vampire force-pushed the vampire/binding-version-v2 branch from 5b756f4 to a485fe4 Compare September 8, 2024 20:27
@Vampire Vampire force-pushed the vampire/no-data-bindings branch from 915be83 to 01e7a87 Compare September 8, 2024 20:27
@Vampire Vampire force-pushed the vampire/binding-version-v2 branch from a485fe4 to 6c58c0d Compare September 9, 2024 08:05
@Vampire Vampire force-pushed the vampire/no-data-bindings branch from 01e7a87 to 781eb1b Compare September 9, 2024 08:05
@Vampire Vampire force-pushed the vampire/binding-version-v2 branch from 6c58c0d to 66b9afd Compare September 9, 2024 10:57
@Vampire Vampire force-pushed the vampire/no-data-bindings branch from 781eb1b to 248813f Compare September 9, 2024 10:57
@Vampire Vampire force-pushed the vampire/binding-version-v2 branch from 66b9afd to f8e466f Compare September 10, 2024 16:43
@Vampire Vampire force-pushed the vampire/no-data-bindings branch from 248813f to a5da3b1 Compare September 10, 2024 16:43
@Vampire Vampire force-pushed the vampire/binding-version-v2 branch from f8e466f to eb02b5a Compare September 23, 2024 08:13
@Vampire Vampire force-pushed the vampire/no-data-bindings branch from a5da3b1 to f58ac6b Compare September 23, 2024 08:13
@Vampire Vampire force-pushed the vampire/binding-version-v2 branch from eb02b5a to 36a0a91 Compare September 24, 2024 00:41
@Vampire Vampire force-pushed the vampire/no-data-bindings branch from f58ac6b to f11c738 Compare September 24, 2024 00:41
@Vampire Vampire force-pushed the vampire/binding-version-v2 branch from 36a0a91 to 8895541 Compare September 29, 2024 17:29
@Vampire Vampire force-pushed the vampire/no-data-bindings branch from f11c738 to 5e87ccb Compare September 29, 2024 17:29
@Vampire Vampire force-pushed the vampire/binding-version-v2 branch from 8895541 to 4281b5d Compare September 29, 2024 21:12
@Vampire Vampire force-pushed the vampire/no-data-bindings branch from 5e87ccb to c89a7e1 Compare September 29, 2024 21:12
docs/user-guide/using-actions.md Outdated Show resolved Hide resolved
- The `equals` method will work like before.
- The `hashCode` method will work like before.
- The `toString` method will work like before.
- Destructuring assignments are not possible anymore as this will likely break silently or during
Copy link
Member

Choose a reason for hiding this comment

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

I initially wanted to ask why this change is made under v2 of the bindings server, and it's probably because of this remark about destructuring. I think it's enough to provide component1...componentN functions, then destructuring should work, and we wouldn't have to bump the route version just yet.

Copy link
Member

Choose a reason for hiding this comment

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

My plan is to revisit our discussion we had on Slack to ensure that there's no simpler option to achieve what we want. Sometimes ideas come after time 😄

Copy link
Member

Choose a reason for hiding this comment

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

Let's see if someone has some interesting take on this: https://kotlinlang.slack.com/archives/C8C4JTXR7/p1729233924861659

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I think it's enough to provide component1...componentN functions, then destructuring should work, and we wouldn't have to bump the route version just yet.

It would not be, as said on Slack.
It was intentional I left them out.
And additionally the copy method now also enforces named-arguments which is also a breaking change.
So to replicate here too, the goal here was not to somehow make it compatible with the upcoming Kotlin versions, but to improve the API to the originally intended way.
That this also fixes the copy visibility thing is merely a by-product and just was the trigger to finally have a look at it.

@Vampire Vampire force-pushed the vampire/binding-version-v2 branch from 4281b5d to 1f9acc7 Compare October 27, 2024 03:52
@Vampire Vampire force-pushed the vampire/no-data-bindings branch from c89a7e1 to fb71bbb Compare October 27, 2024 03:52
@Vampire Vampire requested a review from krzema12 October 27, 2024 03:56
@Vampire Vampire force-pushed the vampire/binding-version-v2 branch from 1f9acc7 to 3bf0f10 Compare October 27, 2024 04:07
@Vampire Vampire force-pushed the vampire/no-data-bindings branch from fb71bbb to f39603b Compare October 27, 2024 04:07
@Vampire Vampire force-pushed the vampire/binding-version-v2 branch from 3bf0f10 to 7a302ad Compare October 27, 2024 20:37
@Vampire Vampire force-pushed the vampire/no-data-bindings branch from f39603b to fb29350 Compare October 27, 2024 20:37
@Vampire Vampire force-pushed the vampire/binding-version-v2 branch from 7a302ad to c660603 Compare October 27, 2024 21:27
@Vampire Vampire force-pushed the vampire/no-data-bindings branch from fb29350 to 458e968 Compare October 27, 2024 21:28
@Vampire Vampire force-pushed the vampire/binding-version-v2 branch from c660603 to 79fa813 Compare October 28, 2024 10:51
@Vampire Vampire force-pushed the vampire/no-data-bindings branch from 458e968 to 1d3eee8 Compare October 28, 2024 10:51
@Vampire Vampire force-pushed the vampire/binding-version-v2 branch from 79fa813 to d2f3975 Compare October 28, 2024 14:07
@Vampire Vampire force-pushed the vampire/no-data-bindings branch 2 times, most recently from e286a75 to 9142ab8 Compare October 28, 2024 21:20
@Vampire Vampire force-pushed the vampire/binding-version-v2 branch from d2f3975 to d20434c Compare October 30, 2024 09:39
@Vampire Vampire force-pushed the vampire/no-data-bindings branch from 9142ab8 to 791e29c Compare October 30, 2024 09:39
@Vampire Vampire force-pushed the vampire/binding-version-v2 branch from d20434c to d42909a Compare October 30, 2024 11:03
@Vampire Vampire force-pushed the vampire/no-data-bindings branch from 791e29c to c32b52c Compare October 30, 2024 11:03
@Vampire Vampire force-pushed the vampire/binding-version-v2 branch from d42909a to 9d293a1 Compare October 30, 2024 14:13
@Vampire Vampire force-pushed the vampire/no-data-bindings branch from c32b52c to ac57787 Compare October 30, 2024 14:13
@Vampire Vampire force-pushed the vampire/binding-version-v2 branch from 9d293a1 to 30dd897 Compare December 8, 2024 23:08
@Vampire Vampire force-pushed the vampire/no-data-bindings branch from ac57787 to 6a4b37c Compare December 8, 2024 23:08
@Vampire Vampire force-pushed the vampire/binding-version-v2 branch from 30dd897 to 9d65dc9 Compare December 9, 2024 11:56
@Vampire Vampire force-pushed the vampire/no-data-bindings branch from 6a4b37c to e1c02e0 Compare December 9, 2024 11:56
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.

2 participants