diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2023-10-25 09:12:12 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2023-10-25 09:12:12 +0300 |
commit | 8883fb99dd1cf519ac8c833bd21891073b103419 (patch) | |
tree | 0932d8c49a09cb2f5df00bb846fbee2f84ba559a /app | |
parent | a85b67d51ad8895284babce73736437f9f41304b (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app')
-rw-r--r-- | app/models/bulk_imports/failure.rb | 4 | ||||
-rw-r--r-- | app/workers/bulk_imports/pipeline_batch_worker.rb | 2 | ||||
-rw-r--r-- | app/workers/bulk_imports/pipeline_worker.rb | 2 |
3 files changed, 6 insertions, 2 deletions
diff --git a/app/models/bulk_imports/failure.rb b/app/models/bulk_imports/failure.rb index 44d16618c77..8a6077b523c 100644 --- a/app/models/bulk_imports/failure.rb +++ b/app/models/bulk_imports/failure.rb @@ -15,6 +15,10 @@ class BulkImports::Failure < ApplicationRecord pipeline_relation || default_relation end + def exception_message=(message) + super(::Projects::ImportErrorFilter.filter_message(message).truncate(255)) + end + private def pipeline_relation diff --git a/app/workers/bulk_imports/pipeline_batch_worker.rb b/app/workers/bulk_imports/pipeline_batch_worker.rb index 1f66d3ec7fa..142c85f3d6e 100644 --- a/app/workers/bulk_imports/pipeline_batch_worker.rb +++ b/app/workers/bulk_imports/pipeline_batch_worker.rb @@ -56,7 +56,7 @@ module BulkImports pipeline_class: tracker.pipeline_name, pipeline_step: 'pipeline_batch_worker_run', exception_class: exception.class.to_s, - exception_message: exception.message.truncate(255), + exception_message: exception.message, correlation_id_value: Labkit::Correlation::CorrelationId.current_or_new_id ) end diff --git a/app/workers/bulk_imports/pipeline_worker.rb b/app/workers/bulk_imports/pipeline_worker.rb index 567a27b991d..2d54cb58f62 100644 --- a/app/workers/bulk_imports/pipeline_worker.rb +++ b/app/workers/bulk_imports/pipeline_worker.rb @@ -87,7 +87,7 @@ module BulkImports pipeline_class: pipeline_tracker.pipeline_name, pipeline_step: 'pipeline_worker_run', exception_class: exception.class.to_s, - exception_message: exception.message.truncate(255), + exception_message: exception.message, correlation_id_value: Labkit::Correlation::CorrelationId.current_or_new_id ) end |