Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
minerva
core
Commits
8875acfe
Commit
8875acfe
authored
Mar 26, 2021
by
Piotr Gawron
Browse files
homomultimer information is provided in the API
parent
bb00fccf
Pipeline
#39002
passed with stage
in 28 minutes and 2 seconds
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
CHANGELOG
View file @
8875acfe
minerva
(
16.0.0
~
alpha
.1
)
stable
;
urgency
=
medium
*
Small
improvement
:
homomultimer
information
is
provided
in
API
(#
1468
)
--
Piotr
Gawron
<
piotr
.
gawron
@
uni
.
lu
>
Fri
,
19
Mar
2021
10
:
00
:
00
+
0200
minerva
(
16.0.0
~
alpha
.1
)
stable
;
urgency
=
medium
*
Backward
incompatibility
:
deprecated
columns
in
data
overlays
are
no
longer
supported
(#
958
)
...
...
rest-api/src/main/java/lcsb/mapviewer/api/projects/models/bioEntities/elements/ElementsRestImpl.java
View file @
8875acfe
...
...
@@ -213,6 +213,13 @@ public class ElementsRestImpl extends BaseRestImpl {
case
"synonyms"
:
value
=
element
.
getSynonyms
();
break
;
case
"homomultimer"
:
if
(
element
instanceof
Species
)
{
value
=
((
Species
)
element
).
getHomodimer
();
}
else
{
value
=
null
;
}
break
;
case
"formula"
:
value
=
element
.
getFormula
();
break
;
...
...
@@ -385,6 +392,7 @@ public class ElementsRestImpl extends BaseRestImpl {
result
.
add
(
"activity"
);
result
.
add
(
"initialAmount"
);
result
.
add
(
"glyph"
);
result
.
add
(
"homomultimer"
);
return
result
;
}
...
...
web/src/test/java/lcsb/mapviewer/web/MapControllerIntegrationTest.java
View file @
8875acfe
...
...
@@ -203,6 +203,10 @@ public class MapControllerIntegrationTest extends ControllerIntegrationTest {
.
description
(
"is the element hypothetical"
)
.
type
(
"boolean"
)
.
optional
(),
fieldWithPath
(
"[].homomultimer"
)
.
description
(
"multimer value"
)
.
type
(
"int"
)
.
optional
(),
subsectionWithPath
(
"[].other"
)
.
description
(
"list of oher properties"
)
.
type
(
"object"
)
...
...
@@ -340,7 +344,7 @@ public class MapControllerIntegrationTest extends ControllerIntegrationTest {
}
@Test
public
void
testGetAllElementsFiltereByType
()
throws
Exception
{
public
void
testGetAllElementsFiltere
d
ByType
()
throws
Exception
{
RequestBuilder
request
=
get
(
"/projects/{projectId}/models/{mapId}/bioEntities/elements/?columns=name,complexId&type=Protein"
,
TEST_PROJECT
,
"*"
);
...
...
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