Comments

stevector’s picture

Status: Fixed » Closed (fixed)

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

stevector’s picture

Category: task » bug
Priority: Normal » Major
Status: Closed (fixed) » Active

This change broke the tests for installing the default config. I think that functionality of "You don't have a workflow configured, would you like the default one?" should move to hook_requirements.

stevector’s picture

Issue tags: +Workbench Sprint

Tagging for Workbench Sprint.

stevector’s picture

Title: Move exportables to admin/config/workflow » Fix broken tests by moving installation of default workflow to hook_requirements
hass’s picture

Can we postpone this after #1768584: Translatable string review has been committed as this may required a re-role of this translatable string review monster patch? This was really a lot of work.

kbentham’s picture

Status: Active » Needs work
StatusFileSize
new8.54 KB

A patch that add the form to the status reports page, and fixed the tests appropriately.

stevector’s picture

Status: Needs work » Needs review

hass, the translatable string patch is to moderation 1.x. This patch is to 2.x so there should be no conflict.

stevector’s picture

Status: Needs review » Needs work
StatusFileSize
new8.58 KB

I'm getting this error when installing workbench_workflows with this patch

PHP Fatal error:  Call to undefined function workbench_workflows_load_all() in workbench_workflows.install on line 163

I'm confused because that function is in the module file.

I think what's happening here is that hook_requirements gets called even before the module is enabled. Check out the API page on hook_requirements. I think we need to check the value of $phase before running the rest of this code.

I'm also attaching a version of the patch that has some whitespace cleanup.

kbentham’s picture

StatusFileSize
new8.64 KB

I have added a condition to see if $phase is runtime.

stevector’s picture

bbinkovitz’s picture

Status: Fixed » Needs work

These tests still aren't passing, as evidenced by the fact that patches aren't being tested by the bot because the branch has failing tests.

stevector’s picture

Status: Needs work » Postponed (maintainer needs more info)

Hi bbinkovitz,

Which test is failing? I just ran them locally and got all passes.

bbinkovitz’s picture

bbinkovitz’s picture

Status: Postponed (maintainer needs more info) » Needs review
StatusFileSize
new454 bytes

Failures were due to the bot using the wrong version of State Machine. Added version number to the info file, we'll see if that fixes it.

I think the testbot will not test this until it has already been tested :-/ I think we might need to commit it to get testbot to test.

bbinkovitz’s picture

StatusFileSize
new448 bytes

Made the version more specific and/or sensical.

stevector’s picture

Status: Needs review » Fixed

Committed.

bbinkovitz’s picture

Status: Fixed » Needs work

Unfortunately, the testbot failed the test again.

hass’s picture

You may need test_dependency[]...?

dave reid’s picture

Yeah, since state_machine doesn't have an official 3.x release, I think you have to manually specify test_dependency[] as per #698932: "test_dependencies" for dependencies / integration tests

bbinkovitz’s picture

StatusFileSize
new570 bytes

I think the problem may also have been that state_flow was specified as a dependency but state_machine was not.

Fixed both issues in latest patch.

hass’s picture

Status: Needs work » Needs review

Note that test_dependencies does not work in the queue. It need to be committed and it works first after dev is rebuildnext time.

stevector’s picture

Status: Needs review » Fixed

On the IRC suggestion of Dave Reid, I'm trying just the addition of

dependencies[] = state_machine (3.x)

dave reid’s picture

Well, the new dependency was picked up successfully, but for some reason now the testbot has registered both 7.x-2.0 and 7.x-3.x of state machine to be dependencies and it cannot checkout the same module twice because the second time the folder already exists. We may need to open an issue with the test bots.

dave reid’s picture

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