Closed (fixed)
Project:
Drupal core
Version:
8.0.x-dev
Component:
configuration system
Priority:
Critical
Category:
Task
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
9 Nov 2014 at 00:03 UTC
Updated:
26 Nov 2014 at 14:34 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
alexpottHere's an implementation. We have to put the event listener in core since a test might not have simpletest or config enabled.
Comment #2
effulgentsia commentedThat's not the main thing this method does. Also, could use an @throws.
A valid what?
Does this test have anything to do with traits? Same for the web test.
Nice comment. Could use one for the two other code blocks. Same for the web test.
Comment #3
alexpott@effulgentsia thank you the review
re #2
Comment #4
effulgentsia commentedThanks!
Comment #5
wim leersWhy not do this on every config save, rather than only during tests? That'd greatly improve DX. Is this really so slow? Do we have so many config writes?
Comment #6
wim leersOnly found silly nitpicks in review.
Namespace missing.
s/non existing/non-existing/
I don't know of Drupal using such shorthand variable names anywhere else.
<message>., <next>looks weird (period followed by comma).Comment #7
alexpottAlso I realised one of the tests was wrong.
Comment #8
effulgentsia commentedComment #9
tstoecklerSorry for coming so late to this, but this breaks the
testing.services.ymlsupport introduced in #2229011: Tests are no longer modifiable. Specifically, the line that comes directly after the cutoff in the hunk above, copies the testing services file (if it exists) to$directory . '/services.yml', thus, it conflicts with the addition here. Both should be possible to have at the same time.Comment #10
alexpott@tstoeckler yep nice spot! Just moving the adding of the service should work without issue.
Comment #11
tstoecklerYes, that's very neat. I hadn't thought of that.
Comment #12
wim leersWhat about #5?
Follow-up, because we don't want to block this issue on that discussion?
Comment #13
alexpott@wim yep I will explore turning it on always in the general config schema issue. atm doing so would require us to fix all the schema in this issue.
Comment #14
wim leersD'oh, right, I think I've been told this in IRC already. Very much looking forward to getting instant feedback when a config entity (or config schema!) is wrong! :) That'll be a great DX improvement.
Comment #15
catchCommitted/pushed to 8.0.x, thanks!