Follow-up from #1416372: Translator Plugin: Local User.

Decide if we really want default auto approve to 1, not sure if that makes sense. Maybe the server should do that in the server installation profile instead.

Comments

berdir’s picture

Status: Active » Needs review
StatusFileSize
new616 bytes

This will make the tests fail.

Any objections to doing this?

cgalli’s picture

Yes, possibly.

Using the LUI with auto accept OFF on the same installation as the jobs are created it leads to confusing status and color displays.
See issue 1416372, #40

berdir’s picture

It was already partially improved by using the same configuration for the colors.

And that's not an argument against this, we need to improve that anyway even if it's not the default setting.

Status: Needs review » Needs work

The last submitted patch, remove-default-accept-1876986-1.patch, failed testing.

Anonymous’s picture

Issue summary: View changes

Updated issue summary.

cgalli’s picture

Status: Needs work » Needs review

Status: Needs review » Needs work

The last submitted patch, 1: remove-default-accept-1876986-1.patch, failed testing.

cgalli’s picture

Issue summary: View changes
StatusFileSize
new639 bytes

Redo the patch with current code base
Let's see if and where test fails

berdir’s picture

Status: Needs work » Needs review

Status: Needs review » Needs work

The last submitted patch, 7: remove-default-accept-1876986-7.patch, failed testing.

cgalli’s picture

Component: Core » Translator: Local
Status: Needs work » Needs review
StatusFileSize
new2.43 KB

Adapted tests to accept translations, should pass now

berdir’s picture

$job->acceptTranslation() should also work and has much less overhead.

cgalli’s picture

I tried before. Did not work:

    $items = $job->getItems();
    $items[1]->acceptTranslation();
    $this->drupalGet('translate/1');

The reloaded page does not show the new status of the the job item.

Is there another way to reaload the page?

berdir’s picture

StatusFileSize
new2.91 KB

Welcome to the wonderful world of static cache and web tests. Always a wonderful experience :)

blueminds’s picture

Status: Needs review » Reviewed & tested by the community

looks good

berdir’s picture

Status: Reviewed & tested by the community » Fixed

Thanks, committed and pushed.

Status: Fixed » Closed (fixed)

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