Problem/Motivation

When installing or validating the Admin Audit Trail module, Drupal reports a configuration schema error:

Drupal\Core\Config\Schema\SchemaIncompleteException:

Schema errors for views.view.admin_audit_trail with the following errors:

views.view.admin_audit_trail:display.default.display_options.style.options.class missing schema

The issue originates from the View configuration shipped with the module:
config/optional/views.view.admin_audit_trail.yml
Around line 968, the view contains:

style:
  type: table
  options:
    class: ''

The class option is not defined in the schema for the corresponding Views style plugin, resulting in a schema validation failure during configuration validation.
I checked in core https://git.drupalcode.org/project/drupal/-/blob/10.6.12/core/modules/vi... I don't see any schema related to class there

Steps to reproduce

  1. Install Admin Audit Trail on Drupal 10/11.
  2. Enable strict configuration schema validation (or run operations that validate config schema).
  3. Import/install the provided view configuration.
  4. Observe the schema exception

Proposed resolution

Remove the unsupported configuration key:

style:
  type: table
  options:
-   class: ''

Additional Information

The offending key is located here:
config/optional/views.view.admin_audit_trail.yml#L968

Remaining tasks

  • ✅ File an issue about this project
  • ❌ Addition/Change/Update/Fix to this project
  • ❌ 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
  • ➖ UX/UI designer responsibilities
  • ➖ Accessibility and Readability
  • ❌ Reviewed by a human
  • ❌ Code review by maintainers
  • ❌ Full testing and approval
  • ❌ Credit contributors
  • ❌ Review with the product owner
  • ✅ Update Release Notes
  • ✅ Release admin_audit_trail-1.0.11

User interface changes

  • N/A

API changes

  • N/A

Data model changes

  • N/A

Release notes snippet

  • N/A
Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

nitesh624 created an issue. See original summary.

nitesh624’s picture

Issue summary: View changes

rajab natshah made their first commit to this issue’s fork.

rajab natshah’s picture

Thank you, Nitesh Sinha, for reporting this and pinpointing the offending key.

rajab natshah’s picture

Status: Active » Needs review

MR !43 is ready for review: removes the key and adds ReportViewConfigSchemaTest (strict schema validation + a guard against the key returning). Verified locally: kernel suite and the full varbase-e2e pipeline green.

https://git.drupalcode.org/project/admin_audit_trail/-/merge_requests/43

  • rajab natshah committed 3981e7ce on 1.0.x
    fix: #3608941 Remove the unsupported style.options.class key from the...
rajab natshah’s picture

Issue summary: View changes
Issue tags: +admin_audit_trail-1.0.11
rajab natshah’s picture

Status: Needs review » Fixed

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.

Status: Fixed » Closed (fixed)

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