diff --git a/CHANGELOG b/CHANGELOG index 096daa0c19c2d10a1ba292251c3e94eee9423a81..c7701d54fad46cb107ef217a6c5736acd93736b5 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -1,3 +1,15 @@ +minerva (12.0.2) stable; urgency=medium + * Bug fix: data overlay by annotation type fixed + * Bug fix: [plugin] getting reactions with set of id larger than 100 elements + works properly + * Bug fix: name of commented protein was remembered for the new comment + * Bug fix: setting zoom level wasn't ranged and validated + * Bug fix: when uploading data overlay there is a warning regarding mixed new + line characters when necessary + * Performance: tomcat inside docker image by default can use 3G of memory + + -- Piotr Gawron <piotr.gawron@uni.lu> Tue, 31 Jul 2018 13:00:00 +0200 + minerva (12.0.1) stable; urgency=medium * Bug fix: setting default zoom level on submap * Bug fix: opened submap had different background then current selection diff --git a/frontend-js/src/main/js/map/surface/AliasSurface.js b/frontend-js/src/main/js/map/surface/AliasSurface.js index f7dc2968bc2c47f7f20d80ad3847b9fc11c9ecdc..24d1ed1ff40e8c618c9b95e78d28716fdc6aae3b 100644 --- a/frontend-js/src/main/js/map/surface/AliasSurface.js +++ b/frontend-js/src/main/js/map/surface/AliasSurface.js @@ -75,6 +75,14 @@ AliasSurface.prototype.setColor = function (color) { } }; +/** + * + * @returns {string} + */ +AliasSurface.prototype.getColor = function () { + return this._color; +}; + /** * * @param {number} opacity @@ -188,7 +196,7 @@ AliasSurface.prototype.init = function () { if (overlayData !== undefined) { return functions.overlayToColor(overlayData); } else { - return "#FF0000"; + return self.getColor(); } }).then(function (color) { self.addMapCanvasObject(map.getMapCanvas().createRectangle({ diff --git a/persist/src/db/12.0.2/fix_db_20180731.sql b/persist/src/db/12.0.2/fix_db_20180731.sql new file mode 100644 index 0000000000000000000000000000000000000000..d4a1bab394e65235f4c3005ed11554aa303fafac --- /dev/null +++ b/persist/src/db/12.0.2/fix_db_20180731.sql @@ -0,0 +1,2 @@ +-- issue #461 - duplicates in reaction ids resolved +update reaction_table r set idreaction=concat(r.idreaction,'_',r.iddb) from (select idreaction, model_iddb from reaction_table group by idreaction, model_iddb having count(*)>1) t where r.idreaction=t.idreaction and r.model_iddb=t.model_iddb;