Refactor Nuget SearchResultsPresenter
This MR aims to fix three issues in Packages::Nuget::SearchResultsPresenter class: - Fix n+1 queries issue - Avoid unnecessary query if results are empty - Reduce the number of iterations over results to only one Changelog: performance
显示
- .rubocop_todo/layout/line_length.yml 0 个添加, 1 个删除.rubocop_todo/layout/line_length.yml
- app/presenters/packages/nuget/search_results_presenter.rb 26 个添加, 12 个删除app/presenters/packages/nuget/search_results_presenter.rb
- spec/presenters/packages/nuget/search_results_presenter_spec.rb 32 个添加, 6 个删除...resenters/packages/nuget/search_results_presenter_spec.rb
加载中
想要评论请 注册 或 登录