File tree Expand file tree Collapse file tree 2 files changed +6
-1
lines changed
Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -287,7 +287,7 @@ def to_data_delta(self):
287287 version = self .version ,
288288 )
289289 if self .diffs :
290- result .diff = self . diffs [ 0 ]. id
290+ result .diff = None
291291 return result
292292
293293
Original file line number Diff line number Diff line change @@ -1359,6 +1359,11 @@ def create_checkpoint(
13591359 # Patch the delta with the path to the new diff checkpoint
13601360 item .diff = checkpoint_diff .path
13611361 db .session .add (checkpoint_diff )
1362+ else :
1363+ # checkpoint already exists, just patch the delta with the path to the existing diff checkpoint
1364+ # this could happen when file diff exists but dela was missing
1365+ # this allowing us to remove rank > 0 delta checkpoints in case of inconsistencies
1366+ item .diff = existing_diff_checkpoint .path
13621367
13631368 checkpoint_delta = ProjectVersionDelta (
13641369 project_id = project_id ,
You can’t perform that action at this time.
0 commit comments