Pass page and per_page into initialize for search results classes
The following discussion from !155516 (merged) should be addressed:
-
@terrichu started a discussion: (+2 comments) thought: I'm not sure how else to make these variables available so other methods can access them. I need the
issuesmethod to stay as-is (where it doesn't have to know about thepage/per_page) so it can be used in thehighlight_mapmethod.In an ideal world,
pageandper_pageare passed in during theinitializemethod. I don't see a reason whyobjectsneeds to have them passed in. However, that change looks way too big to attempt as part of this refactor.