Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
3.7.87
3.7.88
17 changes: 17 additions & 0 deletions lib/gooddata/lcm/actions/import_object_collections.rb
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ class << self
def call(params)
results = []

GoodData.logger.info 'Starting ImportObjectCollections action'
client = params.gdc_gd_client
development_client = params.development_client
number_of_threads = Integer(params.number_of_threads || '8')
Expand All @@ -45,7 +46,9 @@ def call(params)
to_project = client.projects(pid) || fail("Invalid 'to' project specified - '#{pid}'")

if transfer_uris.any?
logging_data(from, pid, transfer_uris, true)
from_project.partial_md_export(transfer_uris, project: to_project)
logging_data(from, pid, transfer_uris, false)
end

results << {
Expand All @@ -58,6 +61,20 @@ def call(params)

results
end

private

def logging_data(from_project, to_project, transfer_uris, start_action)
if start_action
# Logging to execution log
GoodData.logger.info "Starting import objects, from_project: #{from_project}, to_project: #{to_project}"
# Logging to Splunk log
GoodData.gd_logger.info "Starting import objects, action=objects_import, from_project=#{from_project}, to_project=#{to_project}, transfer_uris=#{transfer_uris}"
else
GoodData.logger.info "Success import objects, from_project: #{from_project}, to_project: #{to_project}"
GoodData.gd_logger.info "Success import objects, action=objects_import, from_project=#{from_project}, to_project=#{to_project}"
end
end
end
end
end
Expand Down