Problem/Motivation
we make several base fields to use just Entity field formatters and not special purpose field handlers in views. However, we have a lot of other field handlers in views that have more functionality than the corresponding field formatters.
Proposed resolution
Replace node_type with field formatter
Remaining tasks
create patch
User interface changes
Entity fields will have more formatting options available, and they'll be consistent with what is available in Views.
API changes
None
| Comment | File | Size | Author |
|---|---|---|---|
| #18 | interdiff-2454171-18.txt | 1.23 KB | damiankloip |
| #18 | 2454171-18.patch | 11.82 KB | damiankloip |
| #14 | interdiff-2454171-14.txt | 1.05 KB | damiankloip |
| #11 | interdiff-2454171-11.txt | 905 bytes | damiankloip |
Comments
Comment #1
xjmComment #2
damiankloip commentedComment #3
damiankloip commentedComment #4
dawehnerTs, you actually exported the view, and not just hacked the config directly.
Comment #6
damiankloip commentedOops ok. Need to remove some of the yaml data. When we save handlers we should not keep old data. This seems to be what's happening?
Comment #7
dawehnerWell the update you made is probably fine, the fails are unrelated.
Comment #10
damiankloip commentedYep, definitely related :)
Comment #11
damiankloip commentedComment #12
damiankloip commentedComment #14
damiankloip commentedComment #15
dawehnerWe have this todo in
\Drupal\views\EntityViewsData::processViewsDataForEntityReferenceDo you think we can simply drop them now?
Comment #16
effulgentsia commentedRaising to critical, because this looks like it's in the first (necessary for access control) category of the "proposed resolution" of #2393339: [META] Make sure Views base fields are using Field API for formatting, and do not lose functionality, but please correct me if I'm mistaken.
Comment #17
dawehnerWent through the views and these are indeed the only adjustments you have to do
This is a change on a filter, let's drop that change, even it might be technically the right thing to do.
Comment #18
damiankloip commentedYep, agreed. Here you go.
Comment #19
dawehnerThank you!
Comment #20
alexpottThis issue is a normal bug fix, and doesn't include any disruptive changes, so it is allowed per https://www.drupal.org/core/beta-changes. Committed 5c2ec02 and pushed to 8.0.x. Thanks!
#2462589: Provide test coverage for access checking of all views fields. will provide the necessary access tests.