• Jan Provaznik's avatar
    Optimize namespace.has_parent? method · f8625a98
    Jan Provaznik authored
    We can avoid doing an extra SQL query for loading parent when
    only checking if parent exists.
    
    Because in Github import service we use nested setting of groups
    (so there is a situation when `group` is set but `group_id` not),
    we check presence of both group_id and group.
    f8625a98
namespace_spec.rb 34.2 KB