Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
minerva
core
Commits
a3c80ff3
Commit
a3c80ff3
authored
Mar 22, 2021
by
Piotr Gawron
Browse files
data overlay entries with too long name are skipped
parent
a82160a4
Pipeline
#38714
failed with stage
in 19 minutes and 12 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
persist/src/main/java/lcsb/mapviewer/persist/migration/V16_0_0_20200930_2__generic_data_overlay_entry_data.java
View file @
a3c80ff3
...
...
@@ -98,6 +98,10 @@ public abstract class V16_0_0_20200930_2__generic_data_overlay_entry_data extend
private
void
addEntries
(
Integer
overlayId
,
Set
<?
extends
DataOverlayEntry
>
entries
,
Context
context
)
throws
SQLException
{
for
(
DataOverlayEntry
dataOverlayEntry
:
entries
)
{
if
(
dataOverlayEntry
.
getName
()
!=
null
&&
dataOverlayEntry
.
getName
().
length
()
>
255
)
{
logger
.
warn
(
"Data overlay entry with too long name. Skipping: \""
+
dataOverlayEntry
.
getName
()
+
"\""
);
continue
;
}
String
distinguisher
=
"GENERIC_DATA_OVERLAY"
;
if
(
dataOverlayEntry
instanceof
GeneVariantDataOverlayEntry
)
{
distinguisher
=
"GENE_VARIANT_DATA_OVERLAY"
;
...
...
@@ -342,7 +346,7 @@ public abstract class V16_0_0_20200930_2__generic_data_overlay_entry_data extend
for
(
int
i
=
0
;
i
<
columns
.
length
;
i
++)
{
String
column
=
columns
[
i
].
trim
().
toLowerCase
();
String
value
=
null
;
//there might be some broken entries
//
there might be some broken entries
if
(
data
.
length
>
i
)
{
value
=
data
[
i
];
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment