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
- Install Admin Audit Trail on Drupal 10/11.
- Enable strict configuration schema validation (or run operations that validate config schema).
- Import/install the provided view configuration.
- 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
Issue fork admin_audit_trail-3608941
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
Comment #2
nitesh624Comment #4
rajab natshahThank you, Nitesh Sinha, for reporting this and pinpointing the offending key.
Comment #6
rajab natshahMR !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
Comment #8
rajab natshah✅ Released admin_audit_trail-1.0.11
Comment #9
rajab natshah