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

init idea on using ecto for model layer #51

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from
Draft

init idea on using ecto for model layer #51

wants to merge 1 commit into from

Conversation

btkostner
Copy link
Contributor

Right now our data gets pretty messy after the API layer. This uses ecto to improve casting data into structs, and replaces all of the different session data with a single Elementary.Store.Checkout.Cart struct.

  • This includes an auto generated ID to replace session_id
  • Should include functions to convert stripe checkout session to a cart
  • Should include functions to convert a printful order to a cart
  • We should use the struct to pass all of the cart information around
  • We should do more data validation in ecto and handle changeset errors better

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant