please provide a (half-public) test-mode for the purchase feature

Bug #744377 reported by Michael Vogt
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Software Center Agent
Fix Released
Low
Michael Nelson
software-center (Ubuntu)
Fix Released
Medium
Unassigned

Bug Description

Hi,

please provide a way to test the purchase feature from the client. This should probably involve:
- add a additional "half-public/testing/good-name" state to a for-pay item
- allow the agent to query for those items
- allow the user to reset both the SCA subscription and the launchpad private PPA subscription (either via a UI or automatically after e.g. 2h)
- provide a 1$ package in this state
- provide a 0$ package in this state

(to test both conditions)

QA Steps:
As a normal user, create an app and review-approve it as admin or a reviewer, then as a user who has the qa_application permission,
1) Add (mvo to fill in details when sc client is updated) environment variable and run sc. You should see your ReviewApproved application in the apps available for purchase.
2) Purchase and install the app,
3) View your subscriptions at /subscriptions/, click on the subscription for your app, you should now see a button to cancel the subscription.
4) Click on the cancel subscription button, after a moment you should be informed that the subscription was cancelled (including the LP p3a subscriptions).
5) Uninstall the application and then verify that you can redo steps 1-2.

Revision history for this message
Michael Vogt (mvo) wrote :

Another similar report is:

https://bugs.launchpad.net/ubuntu/+source/software-center/+bug/681935

but the feature to remove subscriptions again is not outlined there.

Revision history for this message
Michael Nelson (michael.nelson) wrote :

I've added functionality for cancelling subscriptions (available to qa users only, and only their own subscriptions), and have added a new authenticated api url which will include non-published review-approved apps (again, qa only).

I'll do an scaclient branch that adds this so sc can use it.

I've not added the $0 and $1 dollar apps - I'm not sure the data belongs as functionality (and we'd have no way to keep it in the correct state anyway). I think we can create these apps and QA will need to ensure they don't QA approve them, or similar? Or alternatively, we can provide a script which will add those apps? Not sure.

description: updated
Revision history for this message
Michael Nelson (michael.nelson) wrote :

Hi mvo! If you get a chance, can you please check the small api addition above, or for clarity:

https://code.launchpad.net/~michael.nelson/software-center-agent/744377-sca-client-test/+merge/59928

which will allow an authenticated request to display apps ready for qa, but only to qa users. If you're happy with it, we'll land it in the agent, otherwise, let me know :)

Changed in software-center-agent:
assignee: nobody → Michael Nelson (michael.nelson)
status: New → In Progress
Changed in software-center-agent:
status: In Progress → Fix Committed
summary: - please provide a (half-pulibc) test-mode for the purchase feature
+ please provide a (half-public) test-mode for the purchase feature
Michael Vogt (mvo)
Changed in software-center (Ubuntu):
importance: Undecided → Medium
status: New → Confirmed
Changed in software-center-agent:
importance: Undecided → Low
tags: added: kb-feature sp-1
Revision history for this message
Michael Vogt (mvo) wrote :

Hi, sorry for the slow reply. In order to make this work we need to merge
 lp:~mvo/software-center/piston-sc-agent
first. We are currently still using the old lazr client code for talking to the scagent.

Revision history for this message
Michael Vogt (mvo) wrote :

The piston-sc-agent branch is now in trunk and with the SOFTWARE_CENTER_AGENT_INCLUDE_QA=1 environment set it will get the QA apps instead of the public ones.

Changed in software-center-agent:
milestone: none → 11.05
status: Fix Committed → Fix Released
Changed in software-center-agent:
status: Fix Released → Fix Committed
Revision history for this message
Michael Vogt (mvo) wrote :

Software-cetner with this feature is in oneiric now.

Changed in software-center (Ubuntu):
status: Confirmed → Fix Released
tags: added: sp-4
removed: sp-1
Revision history for this message
Anthony Lenton (elachuni) wrote :

The authenticated list of available apps for purchase has been verified working on production sca.

Revision history for this message
Dave Morley (davmor2) wrote :

this is now available in trunk/oneiric

Changed in software-center-agent:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.