-
Notifications
You must be signed in to change notification settings - Fork 13
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
[core] Config V2 & deprecate unused code #218
base: ml/new-payments-design
Are you sure you want to change the base?
Conversation
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
@@ -15,7 +15,7 @@ | |||
/// useful for system-level discounts, or user-specific discounts. | |||
/// | |||
/// TODO: Consider re-using `RequestData` inside the `Receipt`. | |||
/// TODO: Add settings for max year of renewals / max duration of registration here? | |||
/// TODO: Add settings for max year of renewals / max duration of registration here? |
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.
I like this but let's include in a separate PR
public_key: vector<u8>, | ||
/// Minimum length of the label part of the domain. This is different from | ||
/// the base `domain` checks. This is our minimum acceptable length (for sales). | ||
/// TODO: Shoudl we consider removing this? Our range is [1,63] by design, and |
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.
We can keep this as backup or in case we redesign in the future
I did a minor restructure of the codebase to deprecate what's not needed.
That (for now) includes:
update_image.move
: We have proceeded with a different design overall.config.move
: I created aCoreConfig
which is more flexible for future updates, and covers all our current needs. (please seetodo
point for discussion).auction.move
: I kept the auction codebase (and actually ported it to our new config), but decided to move it to the deprecated folder to remove confusion. This system is no longer usable.Additional changes:
payments_version
in the configuration: This allows us to preventPaymentIntent
from being finalized if it does not match the "configured" version from admin.Follow-ups:
I also wanna re-write
controller.move
to do whateverdirect_setup
package does. There's no reason for us not to offer the basic functionality from our core package, now that we know that the basics will (most likely) never change. We can always deauthorize it too so thats also good news 😄Tests fail because of
renewal, register and discount_house
packages. I leave them here on purpose to avoid merge conflicts down the path. Their rewrite is coming up too.