On Monday I finished the branch which replaces the subscriptions.getForOAuthToken() stubbed call with a database backend, which Anthony approved [1]. mvo and I also chatted with Anthony to identify exactly what API calls we'll need to verify the oauth token/identifier.
I then worked on a branch to map-out the state transitions for the Subscription model (a jpeg with the diagram is in doc/subscription_states.jpg if anyone's interested[2]), which anthony approved [3]. The branch sets up the infrastructure for a state-as-an-object pattern so that each state encapsulates all the info about which transitions are allowed as well as the behavior for those transitions. Finally, I just finished a branch which adds the identity verification via the canonical identity provider API when calling subscriptions.getForOAuthToken(). As this requires special credentials supplied by SSO administrators, I've ensured that this step can be skipped for the dev server with a setting (details in the README). Anthony has also approved this branch [4], and all 3 are now landed in trunk. The first two weeks have been great fun! Tomorrow I'll continue on with the "I want to buy X" story, by working my way through the implementation of the states. Anthony is going to try to make the mock payment server available as a separate package so I can write the tests against it (rather than against my own mock service). Cheers, Michael. [1] https://code.edge.launchpad.net/~michael.nelson/software-center-agent/subscriptions-model/+merge/29190 [2] https://devpad.canonical.com/~michaeln/subscription_states.jpg [3] https://code.edge.launchpad.net/~michael.nelson/software-center-agent/subscription-states/+merge/29269 [4] https://code.edge.launchpad.net/~michael.nelson/software-center-agent/cip-check-openid-identifier/+merge/29303 _______________________________________________ Mailing list: https://launchpad.net/~buy-something Post to : [email protected] Unsubscribe : https://launchpad.net/~buy-something More help : https://help.launchpad.net/ListHelp

