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

Migrate Snowflake and flags to inline value classes #886

Conversation

zTrap
Copy link

@zTrap zTrap commented Oct 24, 2023

Related to #711

Copy link
Member

@lukellmann lukellmann left a comment

Choose a reason for hiding this comment

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

can you run ./gradlew apiDump and commit the result? i want to know how bad it's going to be...

common/src/commonMain/kotlin/entity/Snowflake.kt Outdated Show resolved Hide resolved
common/src/commonMain/kotlin/entity/Snowflake.kt Outdated Show resolved Hide resolved
@lukellmann
Copy link
Member

Is there an issue already for the problems with mockk?

@zTrap
Copy link
Author

zTrap commented Oct 24, 2023

I've got wrong. This problem isn't related to inline classes, but to unsigned numbers. mockk/mockk#544

@lukellmann
Copy link
Member

I've got wrong. This problem isn't related to inline classes, but to unsigned numbers. mockk/mockk#544

the issue you pointed to is now closed, is there any update on this?

@zTrap
Copy link
Author

zTrap commented Feb 1, 2024

Yes, issue is closed, but it's not released yet

@zTrap zTrap force-pushed the feature/snowflake-inline-class branch from be60171 to eeac1bd Compare February 28, 2024 20:21
@zTrap zTrap force-pushed the feature/snowflake-inline-class branch from eeac1bd to 40e43ad Compare May 29, 2024 11:58
@zTrap
Copy link
Author

zTrap commented May 29, 2024

@lukellmann seems like all works fine with mockk v1.13.11

@zTrap zTrap requested a review from lukellmann May 30, 2024 10:16
@lukellmann
Copy link
Member

I'd like to discuss this some more before deciding what to do with this, see https://discord.com/channels/556525343595298817/1245773750486438060

@zTrap zTrap force-pushed the feature/snowflake-inline-class branch from 40e43ad to e1ff834 Compare June 2, 2024 20:51
@lukellmann lukellmann changed the base branch from main to experiments/inline-value-classes June 4, 2024 09:15
@lukellmann
Copy link
Member

i've updated the target branch btw

@zTrap zTrap force-pushed the feature/snowflake-inline-class branch from e1ff834 to 6027d6a Compare June 4, 2024 10:32
@zTrap zTrap requested a review from lukellmann June 4, 2024 10:36
@lukellmann lukellmann changed the title Migrated Snowflake to inline class Migrate Snowflake and Flags to inline value classes Jun 5, 2024
@lukellmann lukellmann changed the title Migrate Snowflake and Flags to inline value classes Migrate Snowflake and flags to inline value classes Jun 5, 2024
@lukellmann lukellmann merged commit b427a29 into kordlib:experiments/inline-value-classes Jun 5, 2024
3 checks passed
@lukellmann
Copy link
Member

these changes can be tested using experiments-inline-value-classes-SNAPSHOT

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.

Think about changing Snowflakes/Permissions/DiscordBitSets/UserFlags/etc to value classes
2 participants