Closed (duplicate)
Project:
Drupal core
Version:
8.0.x-dev
Component:
breakpoint.module
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
12 Feb 2013 at 16:21 UTC
Updated:
29 Jul 2014 at 21:53 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
tim.plunkettThis is still crazypants.
Comment #2
rainbowarrayMy understanding is that the main change needed here is to create a storage controller. Would that also resolve the issue of translation of config object names into config entity IDs?
If there's an example of a similar conversion to a storage controller, I'd be glad to give this a try.
Comment #3
rainbowarrayI worked with timplunkett on IRC to set up a patch to take care of this move. There's a decent chance this breaks and will need work. Let's test and see!
Comment #4
rainbowarrayUploading the patch: usually pretty useful.
Comment #6
tim.plunkettI'm guessing some of these use statements can be removed now.
This should be renamed to something like deleteBreakpointsBySource or something?
We should implement EntityControllerInterface and use that for injecting these services.
"Removes"
There is a possibility we can rewrite this to use loadByProperties, but that should wait for the patch to pass first.
You're missing a comma after the } the line before entity_keys, which is why this failed to install.
Comment #7
rainbowarrayI must have messed up the patch last night, as it didn't cleanly apply to 8.x. I did a reroll of my own work (shouldn't make patches at 2 a.m. I guess), and then made the changes above except for the third suggestion, as I wasn't sure how to do that.
Hopefully this moves things in the right direction.
We made this patch in a demo on contributing to d8 at the Twin Cities Drupal Open House.
Comment #9
rainbowarrayI uploaded the wrong patch.
Comment #11
rainbowarrayComma error caused the failure, I think.
Comment #13
tim.plunkettAhh, this will always cause problems:
You had Drupal\breakpoint\BreakpointGroupStorageController but core/modules/breakpoint/lib/Drupal/breakpoint/Controller/BreakpointGroupStorageController.php
Extra "Controller" in there.
I also fixed up the DI, we need the breakpoint entity type and storage controller.
Comment #15
tim.plunkett13: breakpoint-1915272-13.patch queued for re-testing.
Comment #16
tim.plunkettComment #17
rainbowarraySince this is passing tests, what's next? Do we need some manual testing that deleting breakpoints still works?
Comment #18
tim.plunkettHmmm, #2080823: Create API to discover config entities' soft dependencies and use this to present a confirm form on module uninstall completely removes every line from this patch. Maybe this is just a dupe of that one?
Comment #19
alexpottI agree with #18 - this will become unnecessary once config entity dependencies are managed properly.