-
Notifications
You must be signed in to change notification settings - Fork 277
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
Proposal for #856: Deprecations instead of removals #873
Proposal for #856: Deprecations instead of removals #873
Conversation
I thought about doing something like this as well, but I believe the issue here is that
I'm fine with renaming this class to avoid confusion, but I'm not sure how I feel about |
That works for me 👍 As I mentioned on the other PR, I'm still in the process of understanding what this class is for 😄
Yeah I thought of that too. It's unfortunate that Some options are changing |
I left a comment that explains things in greater detail: #856 (comment) Hopefully that helps!
I would think that However, looking at the code for
Since either one of these approaches will result in a "breaking" change, I'd prefer changing |
74c5d80
to
ee3d3d0
Compare
Signed-off-by: Louise Poubel <[email protected]>
Signed-off-by: Louise Poubel <[email protected]> Co-authored-by: Alejandro Hernández Cordero <[email protected]>
Signed-off-by: Louise Poubel <[email protected]>
5bb0efc
to
e9eeef0
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the suggestions! I think this makes the transition a smoother process.
As we discussed offline, I went ahead and renamed ComponentStorage
to EntityComponentStorage
in d3e5a25 to keep authorship of those files - so, once you merge in the latest changes from #856 and address the comment I left below, I think we can merge this 👍
Signed-off-by: Louise Poubel <[email protected]>
Signed-off-by: Louise Poubel <[email protected]>
Signed-off-by: Louise Poubel <[email protected]>
Signed-off-by: Ashton Larkin <[email protected]>
Some proposals to #856 , focused on providing a smoother migration for users with tick-tock.
ComponentKey
around, it's still a unique identifier, but we useEntity
as theComponentId
StorageDescriptor
classes, because they are outside ofdetail
.Factory::Register
without loss of functionality.details/ComponentStorageBase.hh
header with minimal code not to break public API.ComponentStorage
class toEntityStorage
, so it's not confused with the old class.I considered changing the
CreateComponent
function toNewComponent
, for example, so we could deprecate the old one that returnsComponentKey
. But that would mean many systems would need to be updated to use the new function. On the other hand, keeping the function name while changing the return type requires zero changes to our systems because they're all ignoring that return type anyway. So I think it will be easier for most users if we just change the return type.Also removed some runtime warnings from deprecated functions, the compiler warnings should be enough.