Closed (fixed)
Project:
Acquia Connector
Version:
7.x-2.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
30 Jul 2013 at 21:11 UTC
Updated:
6 Sep 2013 at 18:31 UTC
Jump to comment: Most recent file
Comments
Comment #1
coltranePatch cleans up acquia_agent_get_subscription() to return FALSE or an array of active subscription data. Also removes unnecessary variable delete in acquia_agent_check_subscription() and limits variable acquia_subscription_data from containing the xmlrpc error number.
Comment #2
coltraneI'm considering letting an expired subscription's data live in the variable and moving most subscription checks to use _is_active() but that may be more changes than I want to do.
Comment #3
coltraneD6 patch of #1
Comment #4
coltraneThis approach breaks acquia_search_acquia_subscription_status() since it relies on the subscription integers from acquia_agent_get_subscription().
Comment #5
coltraneWell, to better catch that dependency we need tests! Attached patch adds test for subscription being an int.
Comment #6
coltraneNow testing # of outgoing HTTP requests and not replacing subscription data when server returns timeout (-110) or server error (503).
Comment #7
damiankloip commentedChanges look sensible to me.
Do we have data that we can use to test against? So we can also assert that the previous data has remained unchanged?
Oh, and nitpicking...A couple of files need newlines at the end :)
Comment #8
coltraneYep, I can test that!
Comment #9
coltraneConsidering this fixed for now. http://drupalcode.org/project/acquia_connector.git/commit/b8453cb and http://drupalcode.org/project/acquia_connector.git/commit/d99b990