Problem/Motivation

For some reason I can't get them working from the UI. I stuck a debugger on it and I believe the test runner batch gets tangled up with the sitemap runner batch. I've tried them from drush and I also get 6 fails.

Proposed resolution

Fix tests

Remaining tasks

Patch.

User interface changes

API changes

Data model changes

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Sam152 created an issue. See original summary.

Sam152’s picture

Not totally sure why yet, but looking into it.

Sam152’s picture

Status: Active » Needs review
FileSize
1.35 KB

Few issues, the config is loaded in the constructor, so the service needs reloading after a change to config, settings, or the simple_sitemap table. The other issue was that the node was missing a type. Fixed in the drush runner, haven't check the web runner yet.

Sam152’s picture

Screenshot of positive tests results from a drush run.

gbyte’s picture

Few issues, the config is loaded in the constructor, so the service needs reloading after a change to config, settings, or the simple_sitemap table.

The reloading was actually done by the initialize() method in Simplesitemap class - we removed this here. Now I know why it was there in the first place... We need those tests badly. ;)

Sam152’s picture

But initialize was only ever called from the constructor, so I think the outcomes would have been the same?

gbyte’s picture

It was also called on very save_config().
Anyway, I guess recreating the service is as good.

gbyte’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

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