Skip to content

Commit b406a48

Browse files
fix(core): v10 migration
1 parent 0c55581 commit b406a48

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

renku/core/migration/m_0010__metadata_fixes.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -278,13 +278,15 @@ def fix_dataset_date_modified(dataset_gateway: IDatasetGateway):
278278
def fix_creation_date(dataset):
279279
"""Check creation date to make sure that it's after project's creation date."""
280280
if dataset.date_created and dataset.date_created < project_context.project.date_created:
281+
dataset.unfreeze()
281282
try:
282283
dataset.date_created = min([f.date_added for f in dataset.files])
283284
except (ValueError, TypeError):
284285
dataset.date_created = project_context.project.date_created
285286
else:
286287
if dataset.date_created < project_context.project.date_created:
287288
dataset.date_created = project_context.project.date_created
289+
dataset.freeze()
288290

289291
tails = dataset_gateway.get_provenance_tails()
290292

0 commit comments

Comments
 (0)