-
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
Add multi-year domain purchases #860
Conversation
7b2a565
to
e8cda0b
Compare
@umurkontaci looks like we have some merge conflicts - does this need a rebase? |
e8cda0b
to
9502b6d
Compare
@dmsnell Yup, thanks for the ping. Rebased now |
@@ -319,12 +319,14 @@ function businessPlan( slug, properties ) { | |||
* | |||
* @param {Object} productSlug - the unique string that identifies the product | |||
* @param {string} domain - domain name | |||
* @param {Number} volume |
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.
It seems more natural to me to use the word quantity
to specify how many of a specific product item we want in the cart. Maybe we can have some others chime in. volume
sounds a bit odd to me and maybe misleading (though maybe I don't understand this well enough!)
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.
volume
is the name that's being used in the WP codebase, hence the usage.
thanks for rebasing @umurkontaci - it looks like there are now a few anachronisms after the update and I pointed out one or two, but we should probably make sure the style matches the surrounding code if the old stuff had been updated since this PR was born. |
9502b6d
to
eb2f5d9
Compare
|
||
"manage/customize": true, | ||
"manage/customize": true, |
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.
You've used spaces here - it will look weird for anyone that has configured tab
to be expanded to something else than 2 spaces :)
…the client to keep them in sync with the server.
…the action, instead of handling in the React event handler.
7f6abbd
to
dc57031
Compare
dc57031
to
2236727
Compare
@umurkontaci I'm a bit confused - why would we be merging this code if we aren't enabling the feature? Wouldn't it make more sense to leave the code out of the repository until we need it? |
No it wouldn't. If we are not merging this code, by the time we are ready to launch, everything in this code would be irrelevant / stale and I have rewrite the whole thing all over again. |
That's kind of my point. If we merge this in, it seems like it will sit as dead code if and until we decide to allow multi-year purchases, and by the time that happens, this will all be irrelevant / stale and we will have to redo it all anyway, so why not just let this branch go (or bookmark it) and defer the development until we need it - otherwise we'll just be adding an unnecessary maintenance burden, unless I misunderstand you |
It will still be less work to do though. We would have to test the stuff to be working again and make small adjustments, but this piece will be included in code refactoring processes. Refactoring a bunch of functions is easier than coming with an old code and adjusting the whole to the 10 times refactored code. It would be unnecessary maintenance burden if we were adding something we didn't know we'd need it or not. This PR has been thoroughly tested in here and in pre-oss. I don't want to throw everyone's work away. |
@umurkontaci no hard feeling if you end up merging this in, but if I understand you correctly I can't vote to do so - seems like a bad idea to me. I understand not wanting to throw everyone's work away, but that's not a compelling argument to me to put in dead code and I don't think that's the right way to look at this branch. in any case, this code will live on in feel free to ping other people for review. I appreciate your work on this. |
I agree with @dmsnell, we shouldn't merge this pull request. This will add extra maintenance and introduce additional complexity for something that is not used - without mentioning that it will mislead developers who don't know this part of the code and who will wonder what it does and how it fits in the whole application. |
This PR enables users to purchase domains for more than 1 year. As this is a big change, we're adding a feature flag to enable it when we're ready.
Screenshot
Testing
You'll need to test this with D341-code.