Skip to content

Commit

Permalink
feat: eager load pacticipant labels for /pacticipants resource
Browse files Browse the repository at this point in the history
  • Loading branch information
bethesque committed Aug 27, 2018
1 parent d208686 commit 01dd866
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/pact_broker/pacticipants/repository.rb
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ def find_all
def find options = {}
query = PactBroker::Domain::Pacticipant.select_all_qualified
query = query.label(options[:label_name]) if options[:label_name]
query.order_ignore_case(Sequel[:pacticipants][:name]).all
query.order_ignore_case(Sequel[:pacticipants][:name]).eager(:labels).all
end

def find_all_pacticipant_versions_in_reverse_order name
Expand Down

0 comments on commit 01dd866

Please sign in to comment.