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 dedicated client view of order #124

Merged
merged 1 commit into from
May 23, 2022

Conversation

krzykamil
Copy link
Collaborator

@krzykamil krzykamil commented May 18, 2022

Also rework routes a bit to not mix client/customer this much
Also move client orders into scope path
Move login out of client orders controller into client controller
Client controller serves as a mock of actual authorization
Client Orders controller now holds actions connected to orders scoped by client
Added relation of client order with actual order, for easy access in the view
The regular show view of order for scoped view of a client is a bit smaller, does not have client name and link to history, restricted to staff
Since orders and client_orders are scoped separatly in cqrs part of the app I thought it would make sense to scope client orders - subsidiary of actual orders - to their connected client in the rails app too.
Done for those issues:
#104
#94

Also rework routes a bit to not mix client/customer this much
Also move client orders into scope path
Move login out of client orders controller into client controller
Client controller serves as a mock of actual authorization
Client Orders controller now holds actions connected to orders scoped by client
Added relation of client order with actual order, for easy access in the view
@krzykamil krzykamil merged commit f962d0b into RailsEventStore:master May 23, 2022
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