canvas-lms/lib/messageable_user
Jacob Fugal 6c158f4dc8 avoid unnecessary sql join when possible
when looking up messageable users within a specific course or section,
we already know the relevant course's workflow_state in ruby-land, so we
don't need to join in the courses table just to check the workflow_state
and branch in the query.

test-plan:
  regression tests around conversation recipient searching and user
  search

Change-Id: I197276d68f4684539c9907941008bc46cc5fc44e
Reviewed-on: https://gerrit.instructure.com/24165
Reviewed-by: Jacob Fugal <jacob@instructure.com>
Tested-by: Jenkins <jenkins@instructure.com>
QA-Review: Jeremy Putnam <jeremyp@instructure.com>
Product-Review: Jacob Fugal <jacob@instructure.com>
2013-09-12 22:27:21 +00:00
..
calculator.rb avoid unnecessary sql join when possible 2013-09-12 22:27:21 +00:00