Problem/Motivation

ConfigInstallProfileOverrideTest is using tour. Need to decouple that

Steps to reproduce

Proposed resolution

Create a custom test module with optional config and update/replace tour config in test_config_overrides profile with config similar to new test module. To mimic what tour was previously doing in ConfigInstallProfileOverrideTest.

Remaining tasks

User interface changes

API changes

Data model changes

Release notes snippet

Issue fork drupal-3387163

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:

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

smustgrave created an issue. See original summary.

smustgrave’s picture

Status: Active » Needs work

Ended up reusing actions as they were already included.

xjm’s picture

A test of the configuration system should not rely on any core feature. Coupling test coverage to anything unnecessary to the test is bad and causes no end of false fails, technical debt, and weird problems. We should therefore always use test fixtures instead of real core features unless the feature itself is what's being tested. If Tour can be swapped for Action without any impact on the coverage or intended functionality of the test, it can also be swapped for a test module with a similar configuration structure. Thanks!

smustgrave’s picture

Status: Needs work » Needs review

All green

larowlan’s picture

Status: Needs review » Needs work

Left a comment, we already have \Drupal\config_test\Entity\ConfigTest so I think we can simplify this even further

smustgrave’s picture

Status: Needs work » Needs review

Switched up to using entity_test_bundle.

larowlan’s picture

Status: Needs review » Reviewed & tested by the community

Looks good to me, nice one!

alexpott’s picture

Status: Reviewed & tested by the community » Needs work

Nice decoupling from the tour module but unfortunately I think we've subtly changed the nature of what is being tested here and given how optional configuration is handled during installation I think the changes are important. I've added comments to the MR in gitlab.

smustgrave’s picture

Status: Needs work » Needs review

Addressed feedback

smustgrave’s picture

Updated

larowlan’s picture

Status: Needs review » Reviewed & tested by the community

I think this is ready again, but I will admit I've struggled to get my head around it.

Looking at it line by line, it looks to me like the removed tour config has been replaced with equivalent test config entities

alexpott’s picture

Status: Reviewed & tested by the community » Needs work

Added some more comments to the MR.

smustgrave’s picture

Status: Needs work » Needs review

@alexpott think I addressed the issues.

quietone’s picture

Status: Needs review » Needs work

Came by here to move issues along for the tour module.

@smustgrave, thanks for working on this and learning about the configuration system on the way!

I think this is ready again, but I will admit I've struggled to get my head around it.

I agree with @larowlan! A completed issue summary is extremely valuable to anyone working on an issue and this one is empty. :-( What this, and every issue, should have is a high quality issue summary that explains what the code is doing with as much detail as needed so contributors don't need to start from scratch. Because of the time spent figuring out the changes, I did not review the code (and beside larowlan and alexpott already have) so I stuck to the comments. Setting to NW for improvement in that area.

smustgrave’s picture

Issue summary: View changes
Status: Needs work » Needs review

Addressed feedback.

Some of it though not sure gitlab was showing old versions.

smustgrave’s picture

Issue summary: View changes
larowlan’s picture

Status: Needs review » Needs work

One minor comment now, and then I think this is ready

🤯 This one has been a real struggle to comprehend

smustgrave’s picture

Assigned: Unassigned » smustgrave

Thanks! Will take care of it

smustgrave’s picture

Assigned: smustgrave » Unassigned
Status: Needs work » Reviewed & tested by the community

Since this has gone through a round of reviews and last feedback was a comment change think this is good to RTBC.

larowlan’s picture

+1 RTBC

alexpott’s picture

Version: 11.x-dev » 10.2.x-dev
Status: Reviewed & tested by the community » Fixed

Committed and pushed c8a07913a0 to 11.x and ebdf86b465 to 10.2.x. Thanks!

Backported to 10.2.x to keep tests aligned.

  • alexpott committed ebdf86b4 on 10.2.x
    Issue #3387163 by smustgrave, larowlan, alexpott, xjm, quietone:...

  • alexpott committed c8a07913 on 11.x
    Issue #3387163 by smustgrave, larowlan, alexpott, xjm, quietone:...
smustgrave’s picture

Thanks for all the help on this one everyone. Certainly was a confusing one.

larowlan’s picture

Yes definitely, thanks @alexpott for the eagle eyes

Status: Fixed » Closed (fixed)

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