File tree Expand file tree Collapse file tree 3 files changed +14
-6
lines changed
java/org/mskcc/cbio/portal/util Expand file tree Collapse file tree 3 files changed +14
-6
lines changed Original file line number Diff line number Diff line change 9
9
10
10
<groupId >org.mskcc.cbio</groupId >
11
11
<artifactId >core</artifactId >
12
- <version >1.0.7-SNAPSHOT </version >
12
+ <version >1.0.7</version >
13
13
14
14
<name >Portal Core</name >
15
15
<description >Core libraries shared among other modules</description >
Original file line number Diff line number Diff line change @@ -53,14 +53,18 @@ public static void storeCnaEvents(
53
53
if (!CNA .AMP .equals (cnaEvent .getAlteration ()) && !CNA .HOMDEL .equals (cnaEvent .getAlteration ())) {
54
54
continue ;
55
55
}
56
-
57
- CnaEvent .Event event = cnaEvent .getEvent ();
58
- if (existingCnaEvents .contains (event )) {
59
- cnaEvent .setEventId (event .getEventId ());
56
+
57
+ // Revert PR https://github.com/cBioPortal/cbioportal-core/pull/1 breaks importer
58
+ Optional <CnaEvent .Event > existingCnaEvent = existingCnaEvents
59
+ .stream ()
60
+ .filter (e -> e .equals (cnaEvent .getEvent ()))
61
+ .findFirst ();
62
+ if (existingCnaEvent .isPresent ()) {
63
+ cnaEvent .setEventId (existingCnaEvent .get ().getEventId ());
60
64
DaoCnaEvent .addCaseCnaEvent (cnaEvent , false );
61
65
} else {
62
66
DaoCnaEvent .addCaseCnaEvent (cnaEvent , true );
63
- existingCnaEvents .add (event );
67
+ existingCnaEvents .add (cnaEvent . getEvent () );
64
68
}
65
69
}
66
70
}
Original file line number Diff line number Diff line change 27
27
<property name =" basePackage" value =" org.mskcc.cbio.portal.persistence,org.cbioportal.persistence.mybatis" />
28
28
</bean >
29
29
30
+
31
+ <bean id =" cacheMapUtil" class =" org.cbioportal.persistence.cachemaputil.InactiveCacheMapUtil" />
32
+
30
33
<!-- enable component scanning (beware that this does not enable mapper scanning!) -->
31
34
<context : component-scan base-package =" org.mskcc.cbio.portal.util" /> <!-- - mainly to inject into global properties -->
32
35
<context : component-scan base-package =" org.cbioportal.persistence" />
35
38
<!-- enable autowire -->
36
39
<context : annotation-config />
37
40
41
+
38
42
<!-- enable transaction demarcation with annotations -->
39
43
<tx : annotation-driven />
40
44
You can’t perform that action at this time.
0 commit comments