Skip to content
This repository has been archived by the owner on Aug 9, 2020. It is now read-only.

category CRUD #506

Open
2 of 6 tasks
HaGuesto opened this issue May 18, 2019 · 3 comments
Open
2 of 6 tasks

category CRUD #506

HaGuesto opened this issue May 18, 2019 · 3 comments

Comments

@HaGuesto
Copy link
Member

HaGuesto commented May 18, 2019

Context

Categories, products and attributes are one of the first things which need to be defined for both shop and WH. At the moment we can load and edit them through a node module into our database.
However for quick edits we probably want to have a CRUDs in the frontend.

ToDo

Remarks

  • For the third task look at AddBoxDialog. Be careful it still needs to be refactored, right @jamescrowley ?
  • We might want to limit update and delete for categories, because what would it mean for the products related to it.

optional Todos

  • Add icons to categories
  • At some point there should be subcategories.
@jamescrowley
Copy link
Contributor

I think just copy and paste for now - it's already been simplified a fair amount, and if we spot other patterns we want to optimise (validation might be one of them), then can do that.

@jamescrowley
Copy link
Contributor

Rather than assuming CRUD I think it's good to consider the actual scenarios around why you'd update or delete - there may be a few, in which case we should model this, and the impact on other dependent entities in the system.

@HaGuesto
Copy link
Member Author

I can imagine that update and delete might be tough.
delete for example should only possible if there are no connected product.
updates should also affect all entries of products.

maybe u and d of CRUDs we skip for now :)

@HaGuesto HaGuesto self-assigned this May 23, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants