Backport issue. Followup to #565220: Fix Weight form element behavior
| Comment | File | Size | Author |
|---|---|---|---|
| #39 | 2946801-39_copy_10.patch | 1.51 KB | mcdruid |
| #35 | 2946801-35_test_only.patch | 718 bytes | mcdruid |
| #33 | 2946801-33_copy_10.patch | 1.51 KB | mcdruid |
Issue fork drupal-2946801
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
- 2946801-d7-fix-weight
changes, plain diff MR !20
Comments
Comment #2
volegerComment #3
andypostComment #4
manuel garcia commentedThanks !
Comment #5
volegerComment #6
volegerAddressed @alexpott suggestion from parent issue.
Comment #10
volegerTypo. This time the test should be green.
#5 comment has test only patch.
Comment #11
ToxaViking commentedLooks good
Comment #12
mustanggb commentedComment #13
joseph.olstadBumping to 7.61, this didn't make it into 7.60
Comment #14
joseph.olstadComment #15
joseph.olstadComment #16
mustanggb commentedComment #17
joseph.olstadComment #18
joseph.olstad1) The patch looks good but we need to backport the D8 weight tests from here: / #565220: Fix Weight form element behavior
2) To increase our confidence in the test results for the above issue, these two should go in first so we can re-queue php 7.3 and php 5.3 tests.
#3047844: [Regression] Tests fail on PHP 5.3
#3025335: session_id() cannot be changed after session is started
For the fame and glory, anyone want to backport the tests from here?
Comment #19
joseph.olstadComment #20
volegerNot really sure about what else we need to backport. This introduced test reproduce same steps.
The difference is that D8 test uses Weight render class method which has more requirements that just pass render element definition.
But the important part what the test check is the same as in D8 test version - the #options values have to introduce the #default_value which has absolute value larger then #delta absolute value.
Just set the tests against PHP 5.3 and 7.3
Comment #21
volegerThere are no patch related errors in the test reports.
#3047844: [Regression] Tests fail on PHP 5.3 and #3025335: session_id() cannot be changed after session is started exists to address test failures in HEAD.
So there no tests to backport. Return RTBC status.
Comment #22
joseph.olstadthe tests to backport are from D8, this D8 commit:
here's the patch with the tests we need to backport to D7:
see comment #565220-38: Fix Weight form element behavior
Comment #23
joseph.olstadDoes this test or it's equivalent (something similar) exist in D7? If so, then no need to backport.
Comment #24
joseph.olstadAh ok sorry yes we have tests, see voleger comment #20 #2946801-20: [D7] Fix Weight form element behavior
Thanks
Comment #25
joseph.olstadJustification:
1) This fix is in D8 already
2) The patch has tests.
3) No change record is required (this is a bug fix)
Comment #26
mustanggb commentedComment #27
mustanggb commentedComment #28
volegerComment #30
volegerCreated a merge request. I hope this will help with the final review.
Also, the merge request creates a tugboat instance, so here steps to reproduce for manual testing:
- Login as the user with permission to edit block layout configuration.
- go to the block layout page.
- add for some testing region 40 blocks and save the configuration.
- change the mode of weight element on the page from draggable elements to the weight input fields.
- try to remove one of the blocks in the testing region and save the configuration.
Expected results (behavior with a patch applied): no weight values changed for the blocks in the testing region.
Current result (behavior in the current core version): some of the blocks had changed weight value in the testing region, which breaks the site builder expectation of the configuration result.
Comment #31
volegerComment #32
joseph.olstadComment #33
mcdruid commentedCopies of test only patch from #5 and patch from #10 for a fresh round of tests.
Sorry, I've not had a chance to learn my way around merge requests on d.o yet.
Comment #35
mcdruid commentedErm the test only patch looks a bit broken actually.
Here's another which is just the test from #10.
Comment #37
mcdruid commentedIt's a shame this is so laborious to test manually ("add 40 blocks..." ;)
However the patch makes sense and matches what was committed to D8, plus test looks good.
Comment #39
mcdruid commentedHmm we don't want the test only patch to keep failing. Copy of #10 again which should pass and keep this at RTBC.
Comment #40
fabianx commentedRTBM, +1 from me for merge
Not seeing any conflicts that could arise except for hidden elements to suddenly show up.
Needs a good release notes notice.
Comment #42
mcdruid commentedThank you!