Closed (won't fix)
Project:
Provision
Version:
6.x-2.x-dev
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
4 Oct 2012 at 10:23 UTC
Updated:
8 Jan 2013 at 11:54 UTC
Jump to comment: Most recent file
The provision_drupal_sync_site function seems to do too much.
Contrary to it's name it's also used to sync a platform.
This does need to be tested for side-effects!
This bugged my while working on #1083366: Make the spokes authoritative for files/ and private/ directories
| Comment | File | Size | Author |
|---|---|---|---|
| #4 | Refactor_provision_drupal_sync_site-1803074-4.patch | 1.69 KB | helmo |
| provision-refactor-provision_drupal_sync_site.patch | 1.8 KB | helmo |
Comments
Comment #1
anarcat commentedGood catch. However, why keep on calling _platform() from _site() if you do the rename? Call both upwards in the stack and you're done! If you make sure you cover all incantations in core, then we make an API change update for 2.x and we're done.
Thanks for the patch.
Comment #2
helmo commentedWell that's why I added "TODO: is this really neccecary?" in the patch. While working on this I wasn't entirely sure what to do.
Comment #3
anarcat commentedInstead of this:
... just do this:
and don't call sync_platform() from sync_site(). No?
Comment #4
helmo commentedThen this should do it.
I did another grep though my sources and couldn't find any other places where this is used. So we should be OK.
Comment #5
anarcat commentedthis is gone? seems to me the new logic is to sync the site even for platforms now... have you tested this?
Comment #6
helmo commentedI did some testing in a mixed 1.x/2.x setup.... I really should make some time to get a full aegir 2.x test server vm up...
Instead of just adding the _platform call here my Initial patch had replaced _site with _platform. Looks likt #3 inspired me, but it seems odd reading it now.
Comment #7
helmo commentedI've been working with http://drupal.org/project/vagrant_scripts_aegir to get my own test bot...
Good news is, they pass with the patch from #4
But it's still odd.
Comment #8
anarcat commentedMy point is that there is a conditionnal around the site sync that is gone, now we sync files on sites even on platforms. This may not fail in the test suite because we don't test remote servers, but I think the conditionnal should be added back in.
Comment #9
helmo commentedWell never mind, this is probably not worth the effort.
Feel free to re-open ...
Comment #9.0
helmo commentedtypo