Class: Gitlab::PhabricatorImport::UserFinder

Inherits:
Object
  • Object
show all
Defined in:
lib/gitlab/phabricator_import/user_finder.rb

Instance Method Summary collapse

Constructor Details

#initialize(project, phids) ⇒ UserFinder

Returns a new instance of UserFinder.


6
7
8
9
# File 'lib/gitlab/phabricator_import/user_finder.rb', line 6

def initialize(project, phids)
  @project, @phids = project, phids
  @loaded_phids = Set.new
end

Instance Method Details

#find(phid) ⇒ Object


11
12
13
14
15
16
17
18
19
# File 'lib/gitlab/phabricator_import/user_finder.rb', line 11

def find(phid)
  found_user = object_map.get_gitlab_model(phid) do
    find_user_for_phid(phid)
  end

  loaded_phids << phid

  found_user
end