Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Purchases: Use /sites/:site_slug/purchases endpoint in UpgradesActions #1063

Merged
merged 1 commit into from
Dec 1, 2015

Conversation

drewblaisdell
Copy link
Contributor

Disparity between the site upgrades and user purchases endpoints (specifically, the lack of a renew_date property) is causing issues when a user visits the delete site component before visiting /purchases. This PR/patch will update fetchSitePurchases to fetch actual purchase objects through a new endpoint.

Requires patch D-587, which adds the new endpoint.

Testing

  • Visit /settings/general/:site for a site with active subscriptions and click 'Delete Site'.
  • Assert that you are prompted to remove your subscriptions before the site can be deleted.
  • Visit /settings/general/:site for a site with no active subscriptions and click 'Delete Site'.
  • Assert that you are prompted to enter the site slug and can successfully delete your site.
  • QA review
  • Code review

Props to @scruffian for noticing this.

@drewblaisdell drewblaisdell added [Status] Needs Review The PR is ready for review. This also triggers e2e canary tests and wp-desktop tests automatically. [Feature] Purchase Management Related to managing purchases such as subscriptions, plans, history, auto-renew, cancellation, etc. labels Nov 30, 2015
@drewblaisdell drewblaisdell self-assigned this Nov 30, 2015
@drewblaisdell drewblaisdell added this to the Purchases: v1 milestone Nov 30, 2015
@scruffian
Copy link
Member

LGTM 👍

@scruffian scruffian added [Status] Ready to Merge and removed [Status] Needs Review The PR is ready for review. This also triggers e2e canary tests and wp-desktop tests automatically. labels Nov 30, 2015
@scruffian scruffian force-pushed the update/site-purchases-endpoint branch from 8f7ab22 to 0951f26 Compare December 1, 2015 14:03
scruffian added a commit that referenced this pull request Dec 1, 2015
Purchases: Use `/sites/:site_slug/purchases` endpoint in `UpgradesActions`
@scruffian scruffian merged commit 1530183 into master Dec 1, 2015
@scruffian scruffian deleted the update/site-purchases-endpoint branch December 1, 2015 14:29
@scruffian
Copy link
Member

This created/surfaced two more issues: #1110 & #1111.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Feature] Purchase Management Related to managing purchases such as subscriptions, plans, history, auto-renew, cancellation, etc.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants