File tree 6 files changed +15
-8
lines changed
src/main/java/bio/overture/song/server/service/analysis
6 files changed +15
-8
lines changed Original file line number Diff line number Diff line change 21
21
<groupId >bio.overture</groupId >
22
22
<artifactId >song</artifactId >
23
23
<packaging >pom</packaging >
24
- <version >4.5.0 </version >
24
+ <version >4.5.1 </version >
25
25
<modules >
26
26
<module >song-core</module >
27
27
<module >song-java-sdk</module >
Original file line number Diff line number Diff line change 18
18
<parent >
19
19
<artifactId >song</artifactId >
20
20
<groupId >bio.overture</groupId >
21
- <version >4.5.0 </version >
21
+ <version >4.5.1 </version >
22
22
</parent >
23
23
<modelVersion >4.0.0</modelVersion >
24
24
35
35
<dependency >
36
36
<groupId >bio.overture</groupId >
37
37
<artifactId >song-java-sdk</artifactId >
38
- <version >4.5.0 </version >
38
+ <version >4.5.1 </version >
39
39
</dependency >
40
40
<dependency >
41
41
<groupId >bio.overture</groupId >
42
42
<artifactId >song-core</artifactId >
43
- <version >4.5.0 </version >
43
+ <version >4.5.1 </version >
44
44
</dependency >
45
45
46
46
<!-- CLI -->
Original file line number Diff line number Diff line change 19
19
<parent >
20
20
<artifactId >song</artifactId >
21
21
<groupId >bio.overture</groupId >
22
- <version >4.5.0 </version >
22
+ <version >4.5.1 </version >
23
23
</parent >
24
24
<modelVersion >4.0.0</modelVersion >
25
25
Original file line number Diff line number Diff line change 18
18
<parent >
19
19
<artifactId >song</artifactId >
20
20
<groupId >bio.overture</groupId >
21
- <version >4.5.0 </version >
21
+ <version >4.5.1 </version >
22
22
</parent >
23
23
<modelVersion >4.0.0</modelVersion >
24
24
Original file line number Diff line number Diff line change 19
19
<parent >
20
20
<artifactId >song</artifactId >
21
21
<groupId >bio.overture</groupId >
22
- <version >4.5.0 </version >
22
+ <version >4.5.1 </version >
23
23
</parent >
24
24
<modelVersion >4.0.0</modelVersion >
25
25
37
37
<dependency >
38
38
<groupId >bio.overture</groupId >
39
39
<artifactId >song-core</artifactId >
40
- <version >4.5.0 </version >
40
+ <version >4.5.1 </version >
41
41
</dependency >
42
42
43
43
<!-- Spring -->
Original file line number Diff line number Diff line change @@ -300,15 +300,22 @@ public Analysis publish(
300
300
checkAnalysisAndStudyRelated (studyId , id );
301
301
302
302
val a = unsecuredDeepRead (id );
303
+
304
+ // Validations before publishing
303
305
val analysisSchema = a .getAnalysisSchema ();
304
306
checkAnalysisTypeVersion (analysisSchema );
305
307
val files = a .getFiles ();
306
308
checkMissingFiles (id , files );
307
309
val file2storageObjectMap = getStorageObjectsForFiles (files );
308
310
checkMismatchingFileSizes (id , file2storageObjectMap );
309
311
checkMismatchingFileMd5sums (id , file2storageObjectMap , ignoreUndefinedMd5 );
312
+
313
+ // Publish
310
314
checkedUpdateState (id , PUBLISHED );
311
315
316
+ // Recalculate publish times now that it has a new PUBLISHED state in history
317
+ a .populatePublishTimes ();
318
+
312
319
return a ;
313
320
}
314
321
You can’t perform that action at this time.
0 commit comments