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: ''
| Comment | File | Size | Author |
|---|---|---|---|
| #8 | 2945772-8.patch | 764 bytes | martin107 |
Comments
Comment #2
martin107 commentedHere is the patch
Comment #4
martin107 commentedI 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
Comment #5
socketwench commentedI'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.
Comment #6
martin107 commentedFrom 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.....
Comment #7
martin107 commentedLooking 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
Comment #8
martin107 commentedreroll 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.
Comment #9
socketwench commentedI 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.
Comment #11
socketwench commentedThanks martin!