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

change 'collapse_type_name' to retain enum types #9587

Merged
merged 2 commits into from
Aug 26, 2023

Conversation

EmiOnGit
Copy link
Contributor

Objective

Fixes #9509

Solution

We use the assumption, that enum types are uppercase in contrast to module names.
collapse_type_name is now retaining the second last segment, if it starts with a uppercase character.

@alice-i-cecile alice-i-cecile added C-Bug An unexpected or incorrect behavior A-Utils Utility functions and types labels Aug 26, 2023
Copy link
Member

@alice-i-cecile alice-i-cecile left a comment

Choose a reason for hiding this comment

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

Nice fix and great tests. Thanks!

Copy link
Contributor

@nicopap nicopap left a comment

Choose a reason for hiding this comment

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

lgtm. Just a nit.

crates/bevy_utils/src/short_names.rs Outdated Show resolved Hide resolved
Co-authored-by: Nicola Papale <nicopap@users.noreply.github.com>
@alice-i-cecile alice-i-cecile added the S-Ready-For-Final-Review This PR has been approved by the community. It's ready for a maintainer to consider merging it label Aug 26, 2023
@alice-i-cecile alice-i-cecile added this pull request to the merge queue Aug 26, 2023
Merged via the queue into bevyengine:main with commit a6991c3 Aug 26, 2023
21 checks passed
@EmiOnGit EmiOnGit deleted the retain-enum-types-9509 branch August 26, 2023 15:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-Utils Utility functions and types C-Bug An unexpected or incorrect behavior S-Ready-For-Final-Review This PR has been approved by the community. It's ready for a maintainer to consider merging it
Projects
None yet
Development

Successfully merging this pull request may close these issues.

System set names are too aggressively stripped when reporting system order ambiguities
3 participants