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
11 changes: 9 additions & 2 deletions cds_migrator_kit/rdm/records/transform/transform.py
Original file line number Diff line number Diff line change
Expand Up @@ -1102,8 +1102,15 @@ def run(self, entries):

for entry in entries:
if self.should_skip(entry):
if current_app.config["CDS_MIGRATOR_KIT_ENV"] == "local":
current_app.logger.warning(f"Skipping entry {entry['recid']}")
recid = entry["recid"]
self.migration_logger.add_information(
recid,
{
"message": "Record already migrated, skipping",
"value": recid,
},
)
self.migration_logger.finalise_record(recid)
continue
try:
yield self._transform(entry)
Expand Down
4 changes: 2 additions & 2 deletions scripts/copy_collection_files.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,8 @@ def get_dump_files_paths(json_dump_dir):
return dump_files


collection = "former_exp/ua2"
environment = "dev"
collection = "lep/ep/l3"
environment = "sandbox"

destination_prefix = "/eos/media/cds/cds-rdm/{0}/migration/{1}/files".format(
environment, collection
Expand Down
1 change: 1 addition & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ install_requires =
python-Levenshtein>=0.25.1
# needed to run the server
gunicorn
xrootdpyfs>=2.0.0,<3.0.0

[options.extras_require]
rdm =
Expand Down
Loading