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:

IMAGE V1

view edit

IMAGE V2

page with term

CommentFileSizeAuthor
#5 v2.PNG8.53 KBrpmskret
#5 v1.PNG17.84 KBrpmskret
v11.PNG20.42 KBrpmskret
v10.PNG8.18 KBrpmskret
v9.PNG9.86 KBrpmskret

Comments

rpmskret created an issue. See original summary.

rpmskret’s picture

Issue summary: View changes
rpmskret’s picture

Issue summary: View changes
rpmskret’s picture

Issue summary: View changes
rpmskret’s picture

Issue summary: View changes
StatusFileSize
new17.84 KB
new8.53 KB

I retested the issue using a clean install on drupal and rewrote the issue description for better clarity.

rpmskret’s picture

Component: taxonomy data » Miscellaneous
Issue summary: View changes

Add a summary of the issue.

rpmskret’s picture

Status: Active » Closed (works as designed)

I 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.