Closed (fixed)
Project:
Drupal core
Version:
8.2.x-dev
Component:
configuration system
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
3 Dec 2015 at 13:19 UTC
Updated:
31 Mar 2016 at 10:54 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
alexpottThis should be postponed on #2625258: LocaleConfigManager::updateConfigTranslations() deletes translations if a config object's name happens to match that of a shipped configuration object
Comment #3
catchThat's now in.
Comment #4
alexpottComment #5
jordanpagewhite commentedComment #6
jordanpagewhite commentedDo we want to get rid of the getter entirely with this issue?
Comment #7
tstoeckler@jordanpagewhite yes, that is the idea. That's why it was specifically prefixed with _ and is also private.
Comment #8
jordanpagewhite commented@tstoeckler Cool, thanks for the feedback. I gave it a shot in this patch. If I misunderstood the direction that we're shooting for, just let me know.
Comment #9
tstoeckler@jordanpagewhite That's perfect!.... except for one tiny little detail ;-) you forgot to update the
$config_entity_type = $this->_getConfigManager()->getEntityTypeIdByName($name);line to use$this->configManagerinstead.Can you post an updated patch, that would be great? You can set your patch to "Needs review" then, so it will get tested automatically.
Comment #10
anil280988 commentedHi jordanpagewhite/tstoeckler,
Thanks for the patch. You need to change the status to "Needs Review" for the patch to be tested.
@tstoeckler, I have added the change you asked for. Changed
$config_entity_type = $this->_getConfigManager()->getEntityTypeIdByName($name); to $config_entity_type = $this->configManage;
Is it what you have asked for? If not, kindly suggest what need to be changed.
Comment #12
anil280988 commentedPatch is working fine on my Local. Could anyone suggest the reason it failed the test. Thanks in advance.
Comment #13
catchThe service definition in core/services.yml needs updating too.
Comment #14
id.medionHi everyone,
I have updated the locale.services.yml according to changes in __construct(). Please review.
Comment #15
jordanpagewhite commentedComment #17
claudiu.cristeaComment #18
joshi.rohit100Comment #19
claudiu.cristeaComment #21
kristen polThe patch looks good. What's the best way to test?
Comment #22
catch@Kristen Pol this is covered by existing automated testing, so doesn't need any manual testing at all.
Comment #23
kristen pol@catch Thanks for the quick reply. Good to know!
Comment #24
dawehnerNice!
Comment #25
alexpottCommitted d5cb79a and pushed to 8.1.x and 8.2.x. Thanks!
Comment #28
gábor hojtsyThanks!