Nginx 1.4.6
Install Magento 2.0.2
Upgrade to Magento 2.1.0
Custom category attributes show in the category admin form, as they did in 2.0.2
The custom attributes still appear in the eav_attribute_* tables
Same here.
Creating custom attributes for Products and Categories, only show up for Products but not in Categories. As some imports will create both Product and Category attributes, it will be painful if they aren't visible in the admin backend.
Thank you for confirming, @mhauri.
Did your custom attributes show in admin forms in earlier versions of Magento 2?
@JacobDrummond yes they did, it wasn't a problem in 2.0.7.
@JacobDrummond , @mhauri As far as I know, from Magento 2.1, all category attributes are loaded via UI component. You can read more here:
http://magento.stackexchange.com/questions/127709/magento-2-1-how-to-create-category-attrbute-programmatically
http://magento.stackexchange.com/questions/129977/create-multiselect-with-source-model-in-ui-component
@mrkhoa99 saw that to, but this can't be the way to go, how do you handle attributes created by an import. This would mean every time the import creates an attribute I have to update my codebase to make them visible. Also it works fine in Products, so why handle them differently.
For me this is still a bug and not a feature.
I agree with @mhauri: the whole point of EAV attributes is they can be determined at runtime.
What is the rationale for using hardcoded UIComponents to build EAV forms?
Hi @veloraven,
After reading @mrkhoa99's comment, it appears this bug is intended as a feature.
Two things:
Are release notes intended to be exhaustive? If not, how would you recommend third-party developers become aware of changes like this?
I am not an expert here, but that has never stopped me responding before! I would expect you should be able to upgrade from 2.0 to 2.1 without stuff disappearing. I don't know the details of why this one was changed. Either something was broken, or if we changed something then the upgrade script should migrate the data. In either case having things disappear from the form "sounds like a bug". But I don't know the details here so I may have to eat my hat.
Hi @alankent,
Adding Category attributes pre-2.1.0
Adding Category attributes post-2.1.0
Upgrade problems
php magento setup:upgrade.Architecture problems
As VP of Architecture, what do you think Magento's EAV strategy should be?
Hi @mhauri et all. The Magento DevDocs team can look into what info we can add to the docs around attributes and UI Components and elsewhere for handling some of these specific questions. @JacobDrummond , the write-up you have immediately above this comment is a helpful guide to what we missed explaining in docs, thanks for that.
I'm sorry that this change from 2.0.x was reflected in the 2.1 Rel Notes, nor in the Backward Incompatible Changes doc.
Great question, @JacobDrummond about how the community should be told of such changes. This one should have been in the Rel Notes and the Backwards Incompatible Changes document. It is quite likely reflected in the changelog.md file (I haven't yet looked). But maybe there are other ways? Let us know your thoughts, please?
@tanberry,
Magento 2.1.1 has been released. There is no accompanying "Backwards Incompatible Changes" document. Is this a documentation gap, or are there truly no backwards incompatibilities?
Hi @JacobDrummond, we are fixing a break in our bamboo builds that stopped the auto-generation of docs covering our backwards incompatible changes... currently they are not published for 2.1.x. ;-( The fix should be ready next week! Along with our recent realization that even patch releases need a "Highlights" section, we will look at how to call out important backwards incompatible changes in patches, ad not just rely on the auto-generated docs.
@JacobDrummond Looks like a solution has been found for the issue a long time ago and this ticket is not active anymore.
I'm closing this report now.
Thank you for collaboration.
@ishakhsuvarov,
Looks like a solution has been found
category_form.xml is not a good solution, given that attributes are configurable at run-time (not just write-time).
Most helpful comment
Hi @alankent,
Adding Category attributes pre-2.1.0
Adding Category attributes post-2.1.0
Upgrade problems
php magento setup:upgrade.Architecture problems
As VP of Architecture, what do you think Magento's EAV strategy should be?