fix pattern matching in reporting

[#58532798](cherry picked from commit 92cceb312549dc03d987063759a50fb77e8a38a6)
attempt to report on external activities

[#58532798](cherry picked from commit df32cd5968c99df8b1feb9e9124e77985cb73c43)
Only do setup tasks if we are displaying index updating learner filter.
(cherry picked from commit 5bf28b24c24281cef6f11f350edebd2a32d6f136)