Problem/Motivation

The current admin views do not have the "Authored by" filter. It's handy to include the "Author" filter for content administration.

The following pages do not have the Author filter:
- /admin/content

Steps to reproduce

Given that an "Editor" was logged in
When navigating to "/admin/content"
Then no way to filter by author. To only list content which was created by a selected user.

Proposed resolution

Add "Authored by" filter to:
- /admin/content

Remaining tasks

  • ✅ File an issue about this project
  • ✅ Add "Authored by" filter to content views pages
  • ✅ Testing to ensure no regression
  • ➖ Automated unit/functional testing coverage
  • ➖ Developer Documentation support on feature change/addition
  • ➖ User Guide Documentation support on feature change/addition
  • ✅ Update Release Notes and Update Helper on new feature change/addition
  • ✅ Code review from 1 Varbase core team member
  • ✅ Full testing and approval
  • ✅ Credit contributors
  • ✅ Review with the product owner
  • ✅ Release varbase-9.0.3, varbase_core-9.0.12

Varbase update type:

  • ➖ No Update
  • ➖ Optional Update
  • ➖ Forced Update
  • ✅ Forced Update if Unchanged

User interface changes

Having the authored by exposed filter

Having the authored by exposed filter

Filter with a selected user

Filter with a selected user

API changes

  • None

Data model changes

  • None

Comments

Mohammed J. Razem created an issue. See original summary.

rajab natshah’s picture

Issue summary: View changes
rajab natshah’s picture

Issue summary: View changes
rajab natshah’s picture

Issue summary: View changes
rajab natshah’s picture

Issue summary: View changes
rajab natshah’s picture

Assigned: Unassigned » rajab natshah
rajab natshah’s picture

Issue summary: View changes
rajab natshah’s picture

Issue summary: View changes
rajab natshah’s picture

Issue summary: View changes
rajab natshah’s picture

Title: Add "Author" filter to admin content views in Varbase Admin » Add "Authored by" filter to admin content views in Varbase Admin
Issue summary: View changes
rajab natshah’s picture

Issue summary: View changes
rajab natshah’s picture

Issue summary: View changes

  • RajabNatshah committed 886eb8f on 9.0.x
    Issue #3227277: Add "Authored by" filter to admin content views in...
rajab natshah’s picture

rajab natshah’s picture

Assigned: rajab natshah » mohammed j. razem
Issue summary: View changes
Status: Active » Needs review
Issue tags: +varbase-9.0.3, +varbase_core-9.0.12
rajab natshah’s picture

Assigned: mohammed j. razem » Unassigned
rajab natshah’s picture

Assigned: Unassigned » rajab natshah
Status: Needs review » Needs work

❌ Update Release Notes and Update Helper on new feature change/addition
✅ Forced Update if Unchanged

rajab natshah’s picture

Status: Needs work » Active
rajab natshah’s picture

Issue summary: View changes
rajab natshah’s picture

Assigned: rajab natshah » mohammed j. razem
Issue summary: View changes
Status: Active » Needs review
StatusFileSize
new181.95 KB
new160.85 KB
new130.37 KB

✅ Update Release Notes and Update Helper on new feature change/addition
✅ Forced Update if Unchanged

Varbase Update Helper - Before the update

Varbase Update Helper - Before the update

Varbase Update Helper - After the update

Varbase Update Helper - After the update

Content administration page after the update

Content administration page after the update

The Checklist update message

     varbase_core_update_9002:
        '#title': 'Add "Authored by" filter to admin content views in Varbase Admin'
        '#description': '
        <p>This update is mainly targeted to provide an Authored by exposed filter to the content administration page. Only if it was not changed.</p>
        <p>See issue <a href="https://www.drupal.org/i/3227277" target="_blank">#3227277</a> for details.</p><br />'
        '#description_successful': '<p class="messages messages--status">This update is successfully implemented.</p><br />'
        '#description_failed': '
        <p class="messages messages--warning">This update failed to be done automatically.<br />
        <span class="icon-help">Try running drush varbase-up --force varbase_core varbase_core_update_9002 to force applying this update.</span>
        This will likely override your previous configuration! Do this on your own risk.<p><br />
        '
    varbase_core_update_9003:
        '#title': 'Add "Authored by" filter to Media Table and Media Grid views in Varbase Media'
        '#description': '
        <p>This update is mainly targeted to provide an Authored by exposed filter to the media administration pages. Only if they were not changed.</p>
        <p>See issue <a href="https://www.drupal.org/i/3249476" target="_blank">#3249476</a> for details.</p><br />'
        '#description_successful': '<p class="messages messages--status">This update is successfully implemented.</p><br />'
        '#description_failed': '
        <p class="messages messages--warning">This update failed to be done automatically.<br />
        <span class="icon-help">Try running drush varbase-up --force varbase_core varbase_core_update_9003 to force applying this update.</span>
        This will likely override your previous configuration! Do this on your own risk.<p><br />
        '

  • RajabNatshah committed b00099c on 9.0.x
    Issue #3227277 by RajabNatshah, Mohammed J. Razem: Add "Authored by"...
rajab natshah’s picture

Issue summary: View changes
rajab natshah’s picture

Assigned: mohammed j. razem » rajab natshah
Status: Needs review » Active

Feedback by Razem:

Make them 1 update as well instead of 2 updates

Description should be:

'#title': Add the ability to filter by "Author" in administration views (Content and Media)
'#description': This update adds a new filter to the <a href=”link to /admin/content”>Content administration</a> page and the <a href=”link to /admin/content”>Media administration</a> page.

  • RajabNatshah committed b011c55 on 9.0.x
    Issue #3227277 by RajabNatshah, Mohammed J. Razem: Make them 1 update as...
rajab natshah’s picture

StatusFileSize
new152.53 KB
    varbase_core_update_9002:
        '#title': 'Add the ability to filter by "Author" in administration views (Content and Media)'
        '#description': '
        <p>This update adds a new filter to the <a href="../../../admin/content" target="_blank">Content administration</a> page and the <a href="../../../admin/content/media" target="_blank">Media administration</a> page.</p>
        <p>See issue <a href="https://www.drupal.org/i/3227277" target="_blank">#3227277</a> and <a href="https://www.drupal.org/i/3249476" target="_blank">#3249476</a> for details.</p><br />'
        '#description_successful': '<p class="messages messages--status">This update is successfully implemented.</p><br />'
        '#description_failed': '
        <p class="messages messages--warning">This update failed to be done automatically.<br />
        <span class="icon-help">Try running drush varbase-up --force varbase_core varbase_core_update_9002 to force applying this update.</span>
        This will likely override your previous configuration! Do this on your own risk.<p><br />
        '

Varbase update instructions

rajab natshah’s picture

Assigned: rajab natshah » Unassigned
Status: Active » Needs review
rajab natshah’s picture

Status: Needs review » Fixed
rajab natshah’s picture

Issue summary: View changes
rajab natshah’s picture

Issue summary: View changes
andrew answer’s picture

After updating Varbase from 8.x I cannot apply this particular update:

$ drush varbase-up --force varbase_core varbase_core_update_9002
[warning] Expected current configuration for views.view.content is not matching. Unable to apply new config.
[warning] Expected current configuration for views.view.media is not matching. Unable to apply new config.
[warning] Expected current configuration for views.view.media_library is not matching. Unable to apply new config.
rajab natshah’s picture

Thank you, Andrew, for following up on the issue.

Not matching configs: From Varbase 8 to Varbase 9
If the old configs were changed. That means it is not matching configs.

Do you have more than one language on the site?
Or the default language is not English.

#3247625: Fix admin Content and User Admin People view old config after change of schema config by the Views Bulk Operation module
VBO had a change of scheme which affects multilingual websites
All old configs will have issues.
#3222477: Fix broken Pager when Items Per Page is exposed
#3249335: Fix Media Table and Media Grid view old config after change of schema config by the Views Bulk Operation module

Update Helper needs more work on this point.
#3216782: Provide event hook for manipulating the data before diffing

Please, follow the following steps if you want to import the new configs:

Navigate to "/admin/config/development/configuration/report/module/varbase_admin"
And import the source config to the site active config:

  • views.view.content

Navigate to "/admin/config/development/configuration/report/module/varbase_media"
And import the source config to the site active config:

  • views.view.media
  • views.view.media_library

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.