lib/topological_inventory/orchestrator/targeted_update/api_load_has_one.rb
def api_load_has_one(src_model, dest_model, foreign_key, targets = @targets)
          # Group targets by tenant
          dest_ids, dest_targets = api_load_has_one_group_targets(dest_model, src_model, targets)

          api_load_has_one_send(dest_model, foreign_key, dest_ids, dest_targets)
        end
# API request
#
# Loading has_one associations (API calls reduced to one request/tenant)
# Sources db have defined has_many, but practically has_one is used (i.e. Source has_one Endpoint)
API request
Loading has_one associations (API calls reduced to one request/tenant)
Sources db have defined has_many, but practically has_one is used
API request Loading has_one associations ( API calls reduced to one request / tenant ) Sources db have defined has_many but practically has_one is used
def api_load_has_one(src_model, dest_model, foreign_key, targets = @targets)
          dest_ids, dest_targets = api_load_has_one_group_targets(dest_model, src_model, targets)
          api_load_has_one_send(dest_model, foreign_key, dest_ids, dest_targets)
        end
def api_load_has_one ( src_model , dest_model , foreign_key , targets = @targets ) dest_ids , dest_targets = api_load_has_one_group_targets ( dest_model , src_model , targets ) api_load_has_one_send ( dest_model , foreign_key , dest_ids , dest_targets ) end
API request
Loading has_one associations (API calls reduced to one request/tenant)
Sources db have defined has_many, but practically has_one is used (i.e.
API request Loading has_one associations ( API calls reduced to one request / tenant ) Sources db have defined has_many but practically has_one is used ( i . e .
# Group targets by tenant
src_model
dest_model
foreign_key
targets