Problem/Motivation

When i'm running PHPUNIT Functional Test case that time facing error. The error message is:

Drupal\Core\Config\Schema\SchemaIncompleteException: Schema errors for views.view.forward_logs with the following errors: views.view.forward_logs:display.default.display_options.filters.status.value variable type is boolean but applied schema class is Drupal\Core\TypedData\Plugin\DataType\StringData

Steps to reproduce

Run any PHPUnit Functional test with the 'views' module enabled, you can got above error message.

Proposed resolution

Go to forward/config/optional : here views.view.forward_logs.yml & views.view.forward_statistics.yml files. Need to update

       filters:
         status:
           value: true

to

       filters:
         status:
           value: '1'

Also uploaded patch fix-forward-log-error.patch file

Remaining tasks

N/A

User interface changes

N/A

API changes

N/A

Data model changes

N/A

Issue fork forward-3291470

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

suchitnikamshiv created an issue. See original summary.

suchitnikamshiv’s picture

Assigned: Unassigned » suchitnikamshiv
Issue summary: View changes
StatusFileSize
new942 bytes
sastha’s picture

Title: Drupal\Core\Config\Schema\SchemaIncompleteException: Schema errors for views.view.forward_logs with the following errors: views.view.forward_logs:display.default.display_options.filters.status.value variable type is boolean but applied schema class is Dru » Drupal\Core\Config\Schema\SchemaIncompleteException: Schema errors for views.view.forward_logs with the following errors: views.view.forward_logs:display.default.display_options.filters.status.value variable type is boolean
Status: Patch (to be ported) » Active
suchitnikamshiv’s picture

StatusFileSize
new942 bytes
suchitnikamshiv’s picture

StatusFileSize
new942 bytes
sastha’s picture

Can you please try value: '1'

suchitnikamshiv’s picture

StatusFileSize
new936 bytes

Ok Sastha, I have tried and it's working fine. Also patch file updated. Please check once.

gobinathm’s picture

Does this issue Exist in 4.0.1 ?

suchitnikamshiv’s picture

Version: 8.x-2.x-dev » 4.0.1

I have tested on 4.0.1 version, it is showing same error message.

suchitnikamshiv’s picture

Version: 4.0.1 » 8.x-2.x-dev
dww’s picture

Version: 8.x-2.x-dev » 4.0.x-dev
Assigned: suchitnikamshiv » Unassigned
Status: Active » Needs work
Issue tags: +Needs tests, +Needs merge request

Confirmed this is still a problem in the 4.0.x branch, which is the only one still being supported.

We're not currently seeing it with the existing tests, since none of them are enabling views. Once I do that, the test starts failing.

So we need a merge request here, to modify tests/src/Functional/PermissionsTest.php to enable views, and perhaps to visit these views and do a little mild access verification on those while we're at it.

I'll be working on this later today, assuming no one beats me to it. 😅

dww’s picture

Assigned: Unassigned » dww

Back from lunch. Working on this now.

dww’s picture

Title: Drupal\Core\Config\Schema\SchemaIncompleteException: Schema errors for views.view.forward_logs with the following errors: views.view.forward_logs:display.default.display_options.filters.status.value variable type is boolean » Default views contain invalid value for node status filter, leading to SchemaIncompleteException
Issue summary: View changes

dww’s picture

Assigned: dww » Unassigned
Status: Needs work » Needs review
Issue tags: -Needs tests, -Needs merge request

Converted to an MR and added test coverage of the default views. Slick, the test-only job failed as expected:
https://git.drupalcode.org/project/forward/-/jobs/8917489

There was 1 error:
1) Drupal\Tests\forward\Functional\PermissionsTest::testPermissions
Drupal\Core\Config\Schema\SchemaIncompleteException: Schema errors for views.view.forward_logs with the following errors: views.view.forward_logs:display.default.display_options.filters.status.value variable type is boolean but applied schema class is Drupal\Core\TypedData\Plugin\DataType\StringData

  • dww committed 97ce71f8 on 4.0.x
    fix: #3291470 Default views contain invalid value for node status filter...

dww’s picture

Status: Needs review » Fixed

Fixed and merged. This will go out soon in 4.0.3.

Thanks, everyone!

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.