-
Notifications
You must be signed in to change notification settings - Fork 5
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
Renamed Goods as PhysObj #17
Conversation
also took the opportunity to correct a few old (and sometimes very wrong docstrings)
Pull Request Test Coverage Report for Build 225
💛 - Coveralls |
Sounds good to rename. I'm wondering how to manage virtual things likes licenses and so on but as long there is no physical things to represent virtual things I don't believes we needs to follow some stock ! I'm not so aware about all this folk works and have never played with it, I've only give a quick eye to the diff. I'm wondering:
regards, |
@petrus-v thanks for your remarks ! Let me address them in order:
There's still work to be done on this PR. I may end up writing some migration steps to rename tables and columns (if @jssuzanne asks me to). |
I believe that all comments of @petrus-v are now addressed. I will indeed add migration steps to issue the relevant |
Build fails because anyblok_wms_base requires a version of Anyblok that's not released yet. |
Now that Wms.Goods also encompasses the former concept of Location, a more general naming felt necessary, hence PhysObj, short for Physical Object.
The constant name and its doc dated back from before the split of Goods into Goods and Avatars, making it rather confusing, now.
This is of little impact for users, due to direct imports being uncommon within Anyblok, but this commit renames Python packages and modules from the 'goods' terminology to the 'physobj' one.
Comes with compatibility wrappers to ease the transition There are still various goods_type, goods_properties etc fields, e.g, in Arrival, RequestItem etc, but somehow it feels less disturbing and will be done later.
We don't know of any DB in service with reservation data yet, so we only take care of the data in wms_goods table. Implemented as a pre_migration, requiring the proper version comparison of AnyBlok, as well as various fixes related to these migrations, released in version 0.20.0
There are still lots of variables named 'goods', including test attributes, but only a few will matter for code clarity and will be treated later
it is in fact very seldom used: only two occurrences in wms-core, and a few in wms-quantity.
Now that AnyBlok 0.20.0 is out, featuring SharedDataTestCase, and since in this branch we require it for other reasons, we can as well get rid of the compatibility copy we had in anyblok_wms_base.
Well done ! |
thanks @petrus-v , lots of cherry picking and squashes in that one :-) |
After #16, if feels wrong to use "Goods" for the model representing all physical objects, since some of them are not goods at all (we could even have an Earth or Universe top location among them).