Please see #962330: refactor and clarify the fields in the client content type in the hosting issue queue.

I need to check out the situation in uc_hosting and make sue this doesn't adversely affect us. Also take advantage of the idea that client titles should be unique to stop using the email as a means to find an associated client.

Finally, I will need to come up with a new strategy to avoid the creation of duplicate clients.

I'm creating this issue to document my struggles with that.

Comments

sfyn’s picture

http://drupal.org/node/962330#comment-4254578

I have summarized anarcat's changes as best I can.

sfyn’s picture

Perhaps the best way of dealing with this is to do something I have been wanting to do for a while anyway - move to using the hosting_signup module to take care of the client creation stuff that uc_hosting does.

sfyn’s picture

Status: Active » Needs review

For now I have just made some adjustments to the add_client function. I have also changed the purchase workflow so that we no longer try to "guess" the client - either we create a new one or the logged user selects one:

For more details see commits 0c9f972bf through 936b7d962.

sfyn’s picture

Note that these patches undo some things I did to address #900098: New orders are not applied to the original Aegir client

sfyn’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.