Objective
-
Some major disruption patches are scheduled directly before the first beta release.
-
This issue collects the planned operations (and points out additional candidates).
Planned Disruptions
-
#2247991: [May 27] Move all module code from …/lib/Drupal/… to …/src/… for PSR-4
-
Fix service ID names to be (1) properly namespaced and (2) use proper
.↔_delimiters (Container::camelize()).#2155909-3: Standardize controller service names and hierarchy
-
#2191303: Ensure the service definition files are alphabetical in order
-
#2158871: [Policy, no patch] Clearly denote when @deprecated code is slated to be removed
Candidates
-
#7269: [meta] Add .php extension to PHP files
Old → New foo.module → foo.php foo.install → foo.install.php foo.inc → foo.inc.php bar.theme → bar.php baz.profile → baz.php -
#2135291: [Policy, no patch] PHP 5.4 short array syntax coding standards for Drupal 8
Old → New array("foo", "bar", "baz") → ["foo", "bar", "baz"]
Comments
Comment #1
sunComment #2
sun#2219393: Menu Local Tasks should be sorted by alphabet if there is no weight set was a mistake/misinterpretation and is irrelevant here; hence removing it from the summary.
Comment #3
webchickI think a lot of these could be done during the standard "disruptive patch window" after any alpha release. We're only holding those like PSR-4 (and .php would qualify if we really want to do that) because they will literally break almost every patch in the queue. I don't think that's true for e.g. service IDs, YAML ordering, etc.
Otherwise, just tag 'em as "Will cause commit conflicts" (or whatever the tag is) and they can go in either during a disruptive patch window, or whenever else we're out of criticals/majors to commit.
Comment #4
drifter commentedAdding #2135291: [Policy, no patch] PHP 5.4 short array syntax coding standards for Drupal 8 as a very iffy candidate, there is no consensus, but a major disruption window would be the only chance to do it globally.
Comment #5
sun@webchick: Hm. That makes sense.
The reason for why I also listed the "re-order YAML files alphabetically" issue(s) here is that we obviously don't want a patch that is re-rolled after that change to re-introduce definitions in non-alphabetical order ;)
Hence if part of a larger disruption window, we could possibly limit the re-roll communication to "Here's how: (1) PSR-4 (2) YAML: alphabetical (3) ..."
But I could be wrong. Perhaps those YAML standard changes could even be covered by a unit test that simply parses all .yml files + asserts that definitions are alphabetical + stuff...
Comment #6
xjmI can write one shell script that will download and reroll every NR patch in the queue for PSR-4 (using the script that @donquixote has already provided); not so much if we are lumping in N non-essential, non-beta-blocking tasks with it. So -1 from me. :)
Comment #7
mallezieCombining those disruptive patches makes it indeed neerly impossible to automate the rerollling.
But what if we schedule them the day before the drupalcon austin contribution sprint. That solves the problem 'find an issue you're able to work on' for all 200+ new contributers attending the sprint.
I remember the /core move issue, which caused the reroll need for every single patch, and that was actually done very fast with the community.
Just dropping the idea here.
Comment #8
webchickIt's a fair idea, but I'd personally rather new eager contributors be working on something more valuable as their first contribution than re-rolling busy work. :) However definitely could do as a fallback.
Comment #9
xjmIt's not strategically sound to break every patch in the queue right before DrupalCon Austin. Rerolling for the beta-blocker-patch-breaker is a task that a computer can do, so we should let a computer do it. There will be plenty of other rerolls out there. :)
Comment #10
xjm#2247991: [May 27] Move all module code from …/lib/Drupal/… to …/src/… for PSR-4 is now planned to go in on May 27, separately from other changes proposed here.
Comment #11
damienmckennaIs this an RC target now?
Comment #12
xjmAh nope, I think it's just fixed. :)