Closed (fixed)
Project:
Version Control API
Version:
7.x-1.x-dev
Component:
API - Entity Controllers
Priority:
Major
Category:
Bug report
Assigned:
Reporter:
Created:
24 Jan 2014 at 19:28 UTC
Updated:
15 Apr 2014 at 22:25 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
tvn commentedComment #2
drummChanging the call in
testBranchOffAndDelete()fromto
Makes the test succeed, so I think that confirms it is a caching issue.
Comment #3
drummA call to
$this->repository->loadBranches()inVersioncontrolGitRepositoryHistorySynchronizerDefault::syncEvent()after theenhancementsbranch is deleted does correctly show onlynewbranchremaining.Maybe it is possible the tests somehow have a different repository object.
Comment #4
drummI confirmed the test and
VersioncontrolGitRepositoryHistorySynchronizerDefault::syncEvent()have the same repository object. So,enhancementssomehow gets added back by the time the test checks it.Comment #5
drummThe cached repo comes back with
in
VersioncontrolRepository::syncEvent(). So, whendisableControllerCaching()becomes active, the cache should still be able to be invalidated.Comment #6
drummThis patch resets the cache when
restoreControllerCachingDefaults()is called. I think it is best to clear it all since anything could have changed while caching is off.Comment #7
drumm(correct patch)
Comment #9
marvil07 commentedThanks for the fix!
Added to 7.x-1.x.
Comment #10
drummDeployed to Drupal.org.