Closed (fixed)
Project:
Hosting
Version:
5.x-0.1-beta2
Component:
Code
Priority:
Critical
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
13 Nov 2008 at 20:03 UTC
Updated:
17 Apr 2009 at 15:40 UTC
In this particular situation, which happens when the install fails and you disable a site, the site status is reported as Unknown status.
Comments
Comment #1
anarcat commentedSo another such issue:
Disabled and deleted sites are marked "Site not installed yet, Site disabled, Site deleted".
See also: http://drupal.org/node/331236
Comment #2
anarcat commentedWe should fix the status mess for 0.2.
Comment #3
anarcat commentedSome work has been done to simplify the error handling routines in drush and provision. The bitmask is gone (#414058: ditch the "status bitmaps") and errors are now arrays of strings in the ERROR_CODE drush context that get passed around.
But site statuses are probably still a mess. We especially need to make sure we migrate the site status from the bitmasks to the strings in the database, using an
update_Nfunction.Comment #4
adrian commentedfirst things first. i don't think we need to keep track of whether a site has been imported or not, that said, we also don't care if it's been installed.
We care about :
1. is the site is in the queue to be either installed or imported
2. is the site active
3. has the site been disabled
4. has the site been deleted.
Sites can't be any 2 of these things at the same time, so i suggest keeping the status field, as is, but labelling these as
HOSTING_SITE_DELETED = -2,
HOSTING_SITE_DISABLED = -1,
HOSTING_SITE_QUEUED = 0,
HOSTING_SITE_ACTIVE = 1,
Comment #5
adrian commentedCommitted fix to HEAD.