Skip to content

Deprecate predicate argument in single, colsInGroups, colsAtAnyDepth #1176

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

Merged
merged 10 commits into from
Jun 2, 2025

Conversation

koperagen
Copy link
Collaborator

As we discussed, predicate makes compiler plugin support of these functions unreliable. Deprecation suggests to use filter, updates some examples to use nameStartsWith

@koperagen koperagen added this to the 1.0.0-Beta1 (0.16) milestone May 6, 2025
@koperagen koperagen requested a review from Jolanrensen May 6, 2025 13:58
@koperagen koperagen self-assigned this May 6, 2025
@koperagen koperagen force-pushed the predicate-deprecation-1 branch from 97204c3 to 5887f8b Compare May 6, 2025 14:10
@koperagen koperagen force-pushed the predicate-deprecation-1 branch from 5887f8b to a112e5e Compare May 6, 2025 14:15
Copy link
Collaborator

@Jolanrensen Jolanrensen left a comment

Choose a reason for hiding this comment

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

Overall meaningful changes that will help push users to functions that the compiler plugin can help with :)

see my comments for things that missing still

Copy link
Collaborator

Choose a reason for hiding this comment

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

Grammar DSL still contains predicates

Copy link
Collaborator

Choose a reason for hiding this comment

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

this is in all files I see, please try to rewrite those, and fix it in ColumnsSelectionDsl.kt as well. Let me know if you need help :)

@koperagen
Copy link
Collaborator Author

@Jolanrensen i'll be absent for a few weeks, maybe you could take over this PR? I found where i missed conditions in grammar, but couldn't finish today

@Jolanrensen Jolanrensen self-assigned this May 26, 2025
@Jolanrensen
Copy link
Collaborator

While removing all predicates from the dsl grammers, I'll also collect all deprecation messages into the deprecation.kt file, as is our convention.

@Jolanrensen Jolanrensen requested a review from zaleslaw May 28, 2025 12:54
@Jolanrensen Jolanrensen merged commit 344b5e5 into master Jun 2, 2025
5 of 6 checks passed
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