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

Add warehouse identifier to orders #98

Open
cgsmith opened this issue Dec 30, 2022 · 1 comment
Open

Add warehouse identifier to orders #98

cgsmith opened this issue Dec 30, 2022 · 1 comment
Assignees
Labels
enhancement New feature or request
Milestone

Comments

@cgsmith
Copy link
Contributor

cgsmith commented Dec 30, 2022

Adding a warehouse_id on orders will be easier to assign warehouse users to customers to see orders.

@cgsmith cgsmith added the enhancement New feature or request label Dec 30, 2022
@cgsmith cgsmith self-assigned this Dec 30, 2022
@cgsmith cgsmith added this to the MVP milestone Mar 20, 2023
@cgsmith
Copy link
Contributor Author

cgsmith commented Mar 23, 2023

@cebe This is to allow some changes to how users work.

  1. Having a warehouse_id on the order table will allow, in the future, for orders that changed or deleted to be updated or deleted upstream at the warehouse level.
  2. Users will have a type assigned to them "Warehouse" user or "Ecommerce" user. A warehouse user can be assigned to warehouse identifiers. This will control what orders they can see. (maybe this needs to be a role??)
  3. I'd like to have an API key that works for all orders associated with a user. For example, if a warehouse user requests for an order assigned to a different warehouse they should receive a 404 or other error. We are seeing more users that are using different warehouses. The different warehouses should not see orders that do not pertain to them.
  4. Orders that do not have a warehouse ID associated with it should not be visible to the warehouse.

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

No branches or pull requests

2 participants