Problem/Motivation

In the course of writing up #3188950: Test Coverage: Smart Segment Access Control, I noticed that the schema definition is incomplete for the entities defined by the module. As a result, I had to add protected $strictConfigSchema = FALSE; in order to make the new test pass.

Truth be told, I'm not an expert in this area of Drupal development, so community support would be greatly appreciated!

Steps to reproduce

Remove the strict schema check property and attempt to run the test.

Proposed resolution

Add the missing schema definitions.

Remaining tasks

TBD

User interface changes

TBD

API changes

TBD

Data model changes

TBD

Current Test Result

Passes with #6!

Comments

Luke.Leber created an issue. See original summary.

michaellander’s picture

Hey @Luke.Leber, thank you for this and your work on the tests. I was just talking with @gantal about this yesterday. Most of it can be copied from 8.x-1.x. I believe he should be getting that setup early next week which should fix any missing schema issues.

luke.leber’s picture

Thanks for the follow-up Michael.

I've sent a couple messages over the #smart_content channel on drupal.slack.com as well if you haven't seen them yet. If you have a few minutes, I'd like to discuss how you would like to work through organizing the testing work. With the new issue forks feature, there's now a number of ways to go about things.

gantal’s picture

Attaching a patch of my WIP. This corrects decision config schema but the segment set schema still needs updating.

luke.leber’s picture

Issue summary: View changes
gantal’s picture

StatusFileSize
new6.94 KB

More definite config schema in this patch.

luke.leber’s picture

It looks like #6 does the trick for getting the test added by https://www.drupal.org/project/smart_content/issues/3188950 to run without protected $strictConfigSchema = FALSE;.

Bravo!

luke.leber’s picture

Issue summary: View changes
gantal’s picture

Status: Active » Needs review
StatusFileSize
new7.32 KB

One last patch! Left out decision block schema in my last patch; this one includes it. Any residual errors should be gone after #3194816: Group 'op' setting sometimes saved as array and sometimes saved as string is fixed. Thanks for updating the tests and the issue summary, @Luke.Leber!

  • michaellander committed 8b6cd04 on 3.x authored by gantal
    Issue #3188961 by gantal, Luke.Leber, michaellander: Complete the schema...
michaellander’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

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