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: Rename constants for upgrade actions to be more consistent #1253

Merged
merged 22 commits into from
Dec 8, 2015

Conversation

stephanethomas
Copy link
Contributor

This pull request makes sure that constants for store events all follow the same naming convention. This naming convention - which is heavily inspired from Ian Obermiller's post - was discussed some times ago internally but we never found the time to actually update our code. Well, I had some free time during my flight from London to Philadelphia so here it goes :).

The logic didn't change and everything should work as before.

Review

  • Code review
  • QA review

This doesn't respect exactly the naming convention because unfortunately we use the same action in case of failure. However it at least reflects the fact that this is a server action (as opposed to a view action).
@stephanethomas stephanethomas added [Status] Needs Review The PR is ready for review. This also triggers e2e canary tests and wp-desktop tests automatically. [Feature] Checkout The checkout screen and process for purchases made on WordPress.com. [Feature Group] Emails & Domains Features related to email integrations and domain management. [Feature] Purchase Management Related to managing purchases such as subscriptions, plans, history, auto-renew, cancellation, etc. labels Dec 3, 2015
@stephanethomas stephanethomas self-assigned this Dec 3, 2015
PRIVACY_PROTECTION_CANCEL: null,
PRIVACY_PROTECTION_CANCEL_COMPLETED: null,
PRIVACY_PROTECTION_CANCEL_FAILED: null,
PRIVACY_PROTECTION_ENABLE_COMPLETED: null,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is one looks like a lonely one ;) Of course not related to this PR, but we should double check that part of Domain Management.
DOMAIN_LOCKING_ENABLE_COMPLETED & ICANN_VERIFICATION_RESEND_COMPLETED are another constants to check.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There are in fact other inconsistencies. For example the delete DNS action is plain wrong: we're currently missing a DNS_DELETE_COMPLETED event and we're expecting an error object in the payload of the DELETING_DNS event that we never pass. And I'm not talking of how we handle errors :).

@fabianapsimoes, we should probably take care of that at some point.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@stephanethomas can you open a new issue for that? I'm guessing this falls under Cobalt's realm, so pinging @aidvu.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @fabianapsimoes. @klimeryk will pick it probably.

@gziolo
Copy link
Member

gziolo commented Dec 4, 2015

Code changes look awesome. Great job on this one 👍
I haven't tested this one so leaving in Needs review state.

@scruffian
Copy link
Member

I tested domain management, domain search, plans, purchases, checkout. If there's nothing else to test this 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 Dec 5, 2015
gziolo added a commit that referenced this pull request Dec 8, 2015
Purchases: Rename constants for upgrade actions to be more consistent
@gziolo gziolo merged commit 9b29602 into master Dec 8, 2015
@gziolo gziolo deleted the fix/upgrades-actions branch December 8, 2015 07:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Feature] Checkout The checkout screen and process for purchases made on WordPress.com. [Feature Group] Emails & Domains Features related to email integrations and domain management. [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.

5 participants