When doing docs for block.js (#2502629: JSDoc block module) I found this part that I wanted to "clean up" and talked to nod_ in IRC about it as well.

As pointed out in that issue, the moving of a function is not the same as changing docs, so here is a new issue for that.

Since the patch was already ready, I am just marking this postponed (as the diff relies on changes in above mentioned issue).

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

eiriksm’s picture

eiriksm’s picture

Issue summary: View changes
Related issues: +#2502629: JSDoc block module
nod_’s picture

eiriksm’s picture

Status: Postponed » Needs review
FileSize
3.02 KB

Re-roll.

Now not postponed anymore, I guess.

eiriksm’s picture

Issue tags: +dcoslo15

Status: Needs review » Needs work

The last submitted patch, 4: move_checkemptyregions-2503981-4.patch, failed testing.

droplet’s picture

and updateLastPlaced, updateBlockWeights ?

eiriksm’s picture

Status: Needs work » Needs review
FileSize
6.06 KB

Hm good point. Those were probably added after I made the initial patch. Also, preeeety sure this patch did not cause that test failure :p

New patch attached.

droplet’s picture

Status: Needs review » Reviewed & tested by the community

Thanks.

The last submitted patch, 1: move_checkemptyregions-2503981-1.patch, failed testing.

catch’s picture

This is just moving code around and updating the declaration, so looks OK for 8.0.x to me.

catch’s picture

Version: 8.0.x-dev » 8.1.x-dev

However it's impossible to tell from reading the patch if that's all it does, and we have zero js test coverage, so moving to 8.1.x.

droplet’s picture

Version: 8.1.x-dev » 8.0.x-dev

change in same scope and same function name. No difference in JS. In runtime, JS vars will be hoisting to top, and end up with same way.

(I'm fine it's landed in D8.1 anyway, that's ZERO changes.)

  • catch committed 958a9f0 on 8.1.x
    Issue #2503981 by eiriksm: Move checkEmptyRegions to named function and...
catch’s picture

Version: 8.0.x-dev » 8.1.x-dev
Status: Reviewed & tested by the community » Fixed

@droplet yes there's no actual change, but there's also no way to verify the zero change without line-by-line reviewing the functions. With js test coverage I'd feel a lot happier about making the change, but until we have that, minor releases give a bit more time to let things bed in.

If we later have to fix this JavaScript, and the fact we didn't commit this to 8.0.x causes a merge conflict, we can always re-open this issue and cherry-pick then.

Committed/pushed to 8.1.x, thanks!

  • catch committed 1426e33 on
    Issue #2503981 by eiriksm: Move checkEmptyRegions to named function and...

  • catch committed 64d66ca on
    Revert "Issue #2503981 by eiriksm: Move checkEmptyRegions to named...

Status: Fixed » Closed (fixed)

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