Problem/Motivation
In #2716081: BlockContent should have revision_user and revision_created fields and implement RevisionLogInterface we are adding two new fields, revision_user and revision_created, these both need views support and views related tests.
Proposed resolution
- Update EntityViewsData to support
revision_userandrevision_createdfields + relationships UpdateBlockContentViewsDatawithrevision_userrelationship to users table.- Add tests.
| Comment | File | Size | Author |
|---|
Comments
Comment #2
dawehnerWhen we need a custom thing for BlockContentViewsData we should generalize it in EntityViewsData. The relationship to the user table should IMHO ideally happen automatically.
Comment #4
jhedstromUpdating the title and IS to this effect. One question, can the field names
revision_userandrevision_createdbe assumed to be the standard pattern? They currently only appear in the block content revision table.Comment #5
jhedstromAnswered my own question :)
These fields are standard as they are also defined in
RevisionLogEntityTrait.Comment #6
jhedstromIt's possible all that is needed here are explicit tests? I just checked the views data for block content, and the relationship for
revision_useris already setup, andrevision_createdis already properly detected as a date field for argument, sort, and filter plugins.Comment #7
jhedstromHere's a screen shot of the 'contextual filters' (the other plugins look very similar) popup on the
block_contentview as it looks now in 8.3.x.These look like they are already working, so marking needs more info for now.
Comment #8
jibranWe only need tests here.
Comment #22
smustgrave commentedThank you for creating this issue to improve Drupal.
We are working to decide if this task is still relevant to a currently supported version of Drupal. There hasn't been any discussion here for over 8 years which suggests that this has either been implemented or is no longer relevant. Your thoughts on this will allow a decision to be made.
Since we need more information to move forward with this issue, the status is now Postponed (maintainer needs more info). If we don't receive additional information to help with the issue, it may be closed after three months.
Thanks!
Comment #24
smustgrave commentedChecking EntityViewsDataTest and this appears to still be the case.