Config inspector complaints about bibcite_keyword and bibcite_contributor views

Created on 21 August 2024, 3 months ago
Updated 9 September 2024, 2 months ago

Config Inspector β†’ module show errors related to bibcite_contributor and bibcite_keyword views

Install config_inspector module:
composer require drupal/config_inspector
drush en config_inspector -y
drush config:inspect --only-error
  • Open Config Inspector report: /admin/reports/config-inspector
  • Check Only show errors checkbox
  • Find views.view.bibcite_contributor or views.view.bibcite_keyword and click List

Report shows error:

display.default.display_options.arguments.id.validate_options.bundles		variable type is NULL but applied schema class is Drupal\Core\Config\Schema\Sequence

If a similar view is exported it'll populate display.default.display_options.arguments.id.validate_options.bundles with {} instead of null.

Views configuration should be updated to avoid such errors.

πŸ› Bug report
Status

RTBC

Version

2.0

Component

Code

Created by

πŸ‡²πŸ‡©Moldova p-andrei

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

  • Issue created by @p-andrei
  • πŸ‡²πŸ‡©Moldova p-andrei

    Here is a patch that updates config value for display.default.display_options.arguments.id.validate_options.bundles in views.view.bibcite_keyword.yml and views.view.bibcite_contributor.yml

  • Status changed to Needs review 3 months ago
  • Status changed to RTBC 2 months ago
  • πŸ‡ΊπŸ‡ΈUnited States benjifisher Boston area

    I am working on the same project as @p-andrei.

    This looks like the correct fix to me.

    I get the same change (replacing null with { }) if I

    1. Edit one of the views.
    2. Edit and save the contextual filter (without making any changes).
    3. Save the view.
    4. Clear caches.

    I also tested that this change fixes the config validation issue.

Production build 0.71.5 2024