548a9a0 frontend: optimize /backend/pending-jobs/ json rendering

2 files Authored by praiskup 4 years ago, Committed by msuchy 4 years ago,
    frontend: optimize /backend/pending-jobs/ json rendering
    
    Make sure that get_build_record() doesn't generate ORM sub-queries, so
    the whole bunch of builds is loaded by single (joinedload'ed) query.
    
    As a part of ^^, also drop the build_config part from the result which
    generated whole bunch of queries providing data that wasn't used on
    backend.