-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Conversation
…o be more consistent
…n to be more consistent
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).
…e more consistent
…n to be more consistent
…ion action to be more consistent
PRIVACY_PROTECTION_CANCEL: null, | ||
PRIVACY_PROTECTION_CANCEL_COMPLETED: null, | ||
PRIVACY_PROTECTION_CANCEL_FAILED: null, | ||
PRIVACY_PROTECTION_ENABLE_COMPLETED: null, |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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.
Code changes look awesome. Great job on this one 👍 |
I tested domain management, domain search, plans, purchases, checkout. If there's nothing else to test this LGTM 👍 |
Purchases: Rename constants for upgrade actions to be more consistent
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