Skip to content

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

Open
Vampire wants to merge 1 commit into
vampire/binding-version-v2from
vampire/no-data-bindings
Open

feat(abg)!: replace data class perks by code generation in bindings#1644
Vampire wants to merge 1 commit into
vampire/binding-version-v2from
vampire/no-data-bindings

Conversation

@Vampire

Copy link
Copy Markdown
Collaborator

Fixes#1629

@VampireGraphite App

Vampire commented Sep 6, 2024

Copy link
Copy Markdown
CollaboratorAuthor

@Vampire
Vampireforce-pushed the vampire/no-data-bindings branch 2 times, most recently from fcb93fe to f2e6c05CompareSeptember 6, 2024 22:12
@Vampire
Vampireforce-pushed the vampire/versioned-routes branch from 6e0c383 to 05942abCompareSeptember 8, 2024 08:10
@Vampire
Vampireforce-pushed the vampire/no-data-bindings branch from f2e6c05 to f9bff8aCompareSeptember 8, 2024 08:11
@Vampire
Vampire changed the base branch from vampire/versioned-routes to vampire/binding-version-v2September 8, 2024 08:11
@Vampire
Vampireforce-pushed the vampire/no-data-bindings branch 2 times, most recently from 26ff564 to 915be83CompareSeptember 8, 2024 15:23
@Vampire
Vampireforce-pushed the vampire/binding-version-v2 branch from 5b756f4 to a485fe4CompareSeptember 8, 2024 20:27
@Vampire
Vampireforce-pushed the vampire/no-data-bindings branch from 915be83 to 01e7a87CompareSeptember 8, 2024 20:27
@Vampire
Vampireforce-pushed the vampire/binding-version-v2 branch from a485fe4 to 6c58c0dCompareSeptember 9, 2024 08:05
@Vampire
Vampireforce-pushed the vampire/no-data-bindings branch from 01e7a87 to 781eb1bCompareSeptember 9, 2024 08:05
@Vampire
Vampireforce-pushed the vampire/binding-version-v2 branch from 6c58c0d to 66b9afdCompareSeptember 9, 2024 10:57
@Vampire
Vampireforce-pushed the vampire/no-data-bindings branch from 781eb1b to 248813fCompareSeptember 9, 2024 10:57
@Vampire
Vampireforce-pushed the vampire/binding-version-v2 branch from 66b9afd to f8e466fCompareSeptember 10, 2024 16:43
@Vampire
Vampireforce-pushed the vampire/no-data-bindings branch from 248813f to a5da3b1CompareSeptember 10, 2024 16:43
@Vampire
Vampireforce-pushed the vampire/binding-version-v2 branch from f8e466f to eb02b5aCompareSeptember 23, 2024 08:13
@Vampire
Vampireforce-pushed the vampire/no-data-bindings branch from a5da3b1 to f58ac6bCompareSeptember 23, 2024 08:13
@Vampire
Vampireforce-pushed the vampire/binding-version-v2 branch from eb02b5a to 36a0a91CompareSeptember 24, 2024 00:41
@Vampire
Vampireforce-pushed the vampire/no-data-bindings branch from f58ac6b to f11c738CompareSeptember 24, 2024 00:41
@Vampire
Vampireforce-pushed the vampire/binding-version-v2 branch from 36a0a91 to 8895541CompareSeptember 29, 2024 17:29
@Vampire
Vampireforce-pushed the vampire/no-data-bindings branch from f11c738 to 5e87ccbCompareSeptember 29, 2024 17:29
@Vampire
Vampireforce-pushed the vampire/binding-version-v2 branch from 8895541 to 4281b5dCompareSeptember 29, 2024 21:12
@Vampire
Vampireforce-pushed the vampire/no-data-bindings branch from 5e87ccb to c89a7e1CompareSeptember 29, 2024 21:12
Comment threaddocs/user-guide/using-actions.md Outdated
- 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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
CollaboratorAuthor

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
Vampireforce-pushed the vampire/binding-version-v2 branch from 4281b5d to 1f9acc7CompareOctober 27, 2024 03:52
@Vampire
Vampireforce-pushed the vampire/no-data-bindings branch from c89a7e1 to fb71bbbCompareOctober 27, 2024 03:52
@Vampire
Vampireforce-pushed the vampire/binding-version-v2 branch from 9d293a1 to 30dd897CompareDecember 8, 2024 23:08
@Vampire
Vampireforce-pushed the vampire/no-data-bindings branch from ac57787 to 6a4b37cCompareDecember 8, 2024 23:08
@Vampire
Vampireforce-pushed the vampire/binding-version-v2 branch from 30dd897 to 9d65dc9CompareDecember 9, 2024 11:56
@Vampire
Vampireforce-pushed the vampire/no-data-bindings branch from 6a4b37c to e1c02e0CompareDecember 9, 2024 11:56
@Vampire
Vampireforce-pushed the vampire/binding-version-v2 branch from 9d65dc9 to cd64a8eCompareJanuary 4, 2025 13:33
@Vampire
Vampireforce-pushed the vampire/no-data-bindings branch from e1c02e0 to f416585CompareJanuary 4, 2025 13:33
@Vampire
Vampireforce-pushed the vampire/binding-version-v2 branch from cd64a8e to 62d0334CompareJanuary 22, 2025 17:45
@Vampire
Vampireforce-pushed the vampire/no-data-bindings branch from f416585 to 38ae26eCompareJanuary 22, 2025 17:45
@Vampire
Vampireforce-pushed the vampire/binding-version-v2 branch from 62d0334 to 1692740CompareJanuary 23, 2025 00:35
@Vampire
Vampireforce-pushed the vampire/no-data-bindings branch from 38ae26e to 78478e8CompareJanuary 23, 2025 00:35
@Vampire
Vampire changed the base branch from vampire/binding-version-v2 to graphite-base/1644February 21, 2025 03:50
@Vampire
Vampire changed the base branch from graphite-base/1644 to vampire/binding-version-v2February 21, 2025 03:51
@Vampire
Vampire changed the base branch from vampire/binding-version-v2 to graphite-base/1644February 21, 2025 13:53
@Vampire
Vampireforce-pushed the vampire/no-data-bindings branch from 2e625de to 792beb4CompareFebruary 21, 2025 13:58
@Vampire
Vampire changed the base branch from graphite-base/1644 to vampire/binding-version-v2February 21, 2025 13:58
@Vampire
Vampireforce-pushed the vampire/no-data-bindings branch from 792beb4 to 6edeaacCompareFebruary 21, 2025 14:00
@Vampire
Vampireforce-pushed the vampire/binding-version-v2 branch 2 times, most recently from 29455da to 5ea294cCompareFebruary 24, 2025 10:17
@Vampire
Vampireforce-pushed the vampire/no-data-bindings branch 2 times, most recently from 44c7839 to a157006CompareFebruary 24, 2025 12:37
@Vampire
Vampireforce-pushed the vampire/binding-version-v2 branch from 5ea294c to 56f3508CompareFebruary 24, 2025 12:37
@Vampire
Vampireforce-pushed the vampire/no-data-bindings branch from a157006 to ff4ec7aCompareFebruary 24, 2025 21:42
@Vampire
Vampireforce-pushed the vampire/binding-version-v2 branch from 56f3508 to aa3ec98CompareFebruary 24, 2025 21:42
@Vampire
Vampireforce-pushed the vampire/no-data-bindings branch from ff4ec7a to 63a6397CompareFebruary 25, 2025 11:20
@Vampire
Vampireforce-pushed the vampire/binding-version-v2 branch from aa3ec98 to 0a56a01CompareFebruary 25, 2025 11:20
@Vampire
Vampire changed the base branch from vampire/binding-version-v2 to graphite-base/1644February 25, 2025 12:11
Sign up for freeto 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

@Vampire@krzema12