A bug only because something seems unsightly

Now that all links are ajax links by default, as the user clicks on a flag follower

visually the steps are

1) The wait icons flashes on the screen.
2) The ajax response is a empty string and so the animation proceeds with an empty string.

While clumsy looking, I think the is acceptable, because at any time the admin user can blank the (un)flag_mesage field all while there are active links rendered on other users pages.

All this is of no concern to a consumer of the flag_follwer module -- we should just provide sensible defaults.

flag_short: 'Follow this user'
flag_long: ''
flag_message: ''
unflag_short: 'Unfollow this user'
unflag_long: ''
unflag_message: ''
unflag_denied_text: ''

CommentFileSizeAuthor
#8 2945772-8.patch764 bytesmartin107
#2 2945772-2.patch761 bytesmartin107

Comments

martin107 created an issue. See original summary.

martin107’s picture

Status: Active » Needs review
StatusFileSize
new761 bytes

Here is the patch

Status: Needs review » Needs work

The last submitted patch, 2: 2945772-2.patch, failed testing. View results

martin107’s picture

I want to significantly broaden the scope of the issue.

looking at the failing test below ... drupalPostForm is the outmoded way of doing things.
IF this needs to be a functionalJavascriptTest then I want to do a little upgrade of this test...

It is inefficient, in time to worry about the stability of the test

LinkTypeFieldEntryTest

    // Enter the field value and submit it.
    $this->flagFieldValue = $this->randomString();
    $edit = [
      'field_' . $this->flagFieldId . '[0][value]' => $this->flagFieldValue,
    ];
    $this->drupalPostForm(NULL, $edit, $this->createButtonText);

    // Check that the node is flagged.
    $this->assertLink($this->flag->getShortText('unflag'));
socketwench’s picture

I'm thinking that we should stick to the original definition of this issue for the sake of an Alpha 3. Then cut a follow up to deal with the test problem.

martin107’s picture

Priority: Minor » Major

I'm thinking that we should stick to the original definition of this issue for the sake of an Alpha 3.

From what I can see the solution to the problem is not straightforward ....

or the changes made in the patch do not immediately lead back to test fails.... it looks like timing is involved.

Unfortunately the same applies to FlagPermissionsTest.

I will see what I can do over the weekend.....

martin107’s picture

Priority: Major » Normal
Related issues: +#2945195: test instability ( round 2 )

Looking at FlagPermsssionsTests and making notes for myself....

1) It is appropriate that FlagPermisssionsTest be a functional test as it is testing a normal 'reload' link, not an ajax link.
2) This patch changes only flag_followers links, something not used in the test.

Other issue/patches have been experiencing test instability .. I have been trying to accumulate random looking test failures in one place. as we find them

martin107’s picture

Category: Bug report » Task
Status: Needs work » Needs review
StatusFileSize
new764 bytes

reroll triggered by #2945797: Flag follower and flag_bookmark should default to a ajax link type

Just to describe what is on my mind ....

The test fail was on against 8.4.4 -- something before the selenium driver updates...
It will be interesting to see what testing againsts 8.6.x looks like.

socketwench’s picture

Status: Needs review » Reviewed & tested by the community

I didn't think this would fix the test problems, I think we have to leave those outstanding since we don't know what in the heck is going on yet.

Patch looks good.

  • martin107 authored 8b08ae7 on 8.x-4.x
    Issue #2945772 by martin107, socketwench: Fixed incomplete definition of...
socketwench’s picture

Status: Reviewed & tested by the community » Fixed

Thanks martin!

Status: Fixed » Closed (fixed)

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