Post

I think they are totally fine. Most of these queries are driven by specific view requirements and there is no point in littering contexts with functions like get_five_recent_nonshipped_ordera_by_user. Context should be for "serious" business logic.

If context functions were more flexible (like Ash actions), then you could have your cake and eat it too here. For example, you might have an action like `nonshipped_orders_for_user`, and the caller can apply a limit and a filter.

0 reposts0 likes

No replies yet.