Description
What needs to be done?
Remove deprecated methods from src/Traits/SearchTrait.php, refactor all current usages to the supported methods, and update visibility for internal helper methods.
Deprecated methods to remove:
filterMoreThan() — use filterGreater insteadfilterLessThan() — use filterLess insteadfilterMoreOrEqualThan() — use filterGreater insteadfilterLessOrEqualThan() — use filterLess insteadfilterFrom() — use filterGreater insteadfilterTo() — use filterLess instead
Required refactoring:
- Update
searchQuery() so it no longer calls:filterFrom() for the _from suffix filterTo() for the _to suffix
- Replace all internal and external usages of deprecated methods with the new methods.
Additional visibility changes:
- Change the following methods' visibility to
protected: paginate()wrapPaginatedData()getModifiedPaginator()setModel (EntityControlTrait)
Expected Outcome
What is the expected result?
Verification Scenarios
How can this be tested?
Search the codebase and confirm there are no remaining usages of:
filterMoreThan()filterLessThan()filterMoreOrEqualThan()filterLessOrEqualThan()filterFrom()filterTo()
- Verify
searchQuery() uses filterGreater for _from and filterLess for _to. - Verify
paginate(), wrapPaginatedData(), and getModifiedPaginator() , setModel are declared as protected. - Run search-related tests and confirm existing filter behavior is preserved.
Description
What needs to be done?
Remove deprecated methods from
src/Traits/SearchTrait.php, refactor all current usages to the supported methods, and update visibility for internal helper methods.Deprecated methods to remove:
filterMoreThan()— usefilterGreaterinsteadfilterLessThan()— usefilterLessinsteadfilterMoreOrEqualThan()— usefilterGreaterinsteadfilterLessOrEqualThan()— usefilterLessinsteadfilterFrom()— usefilterGreaterinsteadfilterTo()— usefilterLessinsteadRequired refactoring:
searchQuery()so it no longer calls:filterFrom()for the_fromsuffixfilterTo()for the_tosuffixAdditional visibility changes:
protected:paginate()wrapPaginatedData()getModifiedPaginator()setModel(EntityControlTrait)Expected Outcome
What is the expected result?
src/Traits/SearchTrait.php.searchQuery()uses the supported methods for_fromand_tofilters.No code in the project calls removed deprecated methods.
protectedvisibility:paginate()wrapPaginatedData()getModifiedPaginator()setModel(EntityControlTrait)Verification Scenarios
How can this be tested?
Search the codebase and confirm there are no remaining usages of:
filterMoreThan()filterLessThan()filterMoreOrEqualThan()filterLessOrEqualThan()filterFrom()filterTo()searchQuery()usesfilterGreaterfor_fromandfilterLessfor_to.paginate(),wrapPaginatedData(), andgetModifiedPaginator(),setModelare declared asprotected.