Refactor project packages api endpoint to supply only necessary params to finder
Summary
As per the comment !26833 (comment 302856115), this issue is to address a similar refactoring that should be applied to the project packages :id/packages
endpoint.
Improvements
Change declared(params)
to only supply the necessary params as required by the finder. Maybe slice
would work well here.
Risks
We may exclude a required param - but this should be caught by testing.
Involved components
-
ee
>lib
>api
>project_packages.rb
Edited by Nick Kipling