• Mario de la Ossa's avatar
    Avoid loading objects from DB in ES results · d9cb907c
    Mario de la Ossa authored
    We already have most of the information we want to display in
    Elasticsearch results inside ES itself, so instead of finding (and
    returning!) the full ES object and only using the ID to get the database
    object, we instead use a Lite object that quacks like the original
    and uses the info from Elasticsearch.
    
    We do this for:
    - Projects
    - Issues
    - Merge Requests
    - Milestones
    d9cb907c
merge_requests_search.rb 1.41 KB