Problem/Motivation
The issue I describe here was first encountered on an existing site. Today I recreated the behavior on a fresh new install of drupal 8.
I created a taxonomy tag named "vtest" for the Tags vocabulary.
I edited the "page" content type to include a field for taxonomy tags.
Then I added the taxonomy term "vtest" to one page that was published and one page that was not published.
I copied the Frontpage view. Then I edited as follows:
- changed the Path to /viewstest
- changed the Access to Role | Administrator
- removed all existing filters
- added filter: Content: Has taxonomy term (= vtest)
RESULT: the view shows only the published page.
EXPECTED RESULT: the view should show both pages with the tag "vtest", both the published and the unpublished pages.
Note that there is no filter for publishing status. When I add the filter Content: Publishing status (= No) the view shows no results.
SUMMARY OF ISSUE: When unpublished content has a taxonomy term and views is using that taxonomy term as a filter (has term = term), views returns no results.
Here are 2 screen shots:
Comments
Comment #2
rpmskret commentedComment #3
rpmskret commentedComment #4
rpmskret commentedComment #5
rpmskret commentedI retested the issue using a clean install on drupal and rewrote the issue description for better clarity.
Comment #6
rpmskret commentedAdd a summary of the issue.
Comment #7
rpmskret commentedI see that the functionality lacking in views that motivated this bug report has reasons behind it and it is not in fact a bug. Please see Unpublished entities do not appear in views when using a taxonomy . If you find this issue and are having similar trouble see my comment.