Add a search interface for orders on an user's admin page #25
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
This PR adds a search interface for orders under
admin/users/:id/orders
; it was a pendingTODO
as per this comment.It emulates, til some point, the functionality under
admin/orders
. While it takes most of the fields used on that view, it does not consider others, as the modified view is limited in space and I think it's for the best to keep it as clean and concise as possible.I also think, given the context, that admins might be not be interested in such specific details under a particular user.
Given the similarities between this view/controller action and the one for
admin/orders
, I think there might be room for a refactor, to DRY things up a little bit, but that'd be included on another PR if this one gets approved for Solidus.Checklist: