Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
O
openbis
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
sispub
openbis
Commits
4b0948aa
Commit
4b0948aa
authored
1 year ago
by
felmer
Browse files
Options
Downloads
Patches
Plain Diff
SSDM-13489: Fixing bug in flow resolver of SFTP view: fcs files in WELL samples are not shown
parent
64bd5748
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!40
SSDM-13578 : 2PT : Database and V3 Implementation - include the new AFS "free"...
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
ui-eln-lims/src/core-plugins/eln-lims/1/dss/file-system-plugins/eln-tree/resolver-plugins/flow.py
+7
-7
7 additions, 7 deletions
...dss/file-system-plugins/eln-tree/resolver-plugins/flow.py
with
7 additions
and
7 deletions
ui-eln-lims/src/core-plugins/eln-lims/1/dss/file-system-plugins/eln-tree/resolver-plugins/flow.py
+
7
−
7
View file @
4b0948aa
...
...
@@ -6,7 +6,7 @@ import script
def
addSampleChildNodes
(
path
,
samplePermId
,
sampleType
,
response
,
acceptor
,
context
):
dataSets
=
getDataSetsOfSampleAndItsDescendants
(
samplePermId
,
context
)
dataSets
=
getDataSetsOfSampleAndItsDescendants
(
samplePermId
,
False
,
context
)
filteredDataSets
=
[]
for
dataSet
in
dataSets
:
if
acceptor
.
acceptDataSet
(
dataSet
):
...
...
@@ -14,7 +14,7 @@ def addSampleChildNodes(path, samplePermId, sampleType, response, acceptor, cont
script
.
addDataSetFileNodesFor
(
path
,
filteredDataSets
,
response
,
acceptor
,
context
)
def
addSampleChildNodesWithPlates
(
path
,
samplePermId
,
sampleType
,
response
,
acceptor
,
context
):
dataSets
=
getDataSetsOfSampleAndItsDescendants
(
samplePermId
,
context
)
dataSets
=
getDataSetsOfSampleAndItsDescendants
(
samplePermId
,
True
,
context
)
filteredDataSets
=
[]
for
dataSet
in
dataSets
:
sampleTypeCode
=
dataSet
.
getSample
().
getType
().
getCode
()
...
...
@@ -23,16 +23,16 @@ def addSampleChildNodesWithPlates(path, samplePermId, sampleType, response, acce
script
.
addDataSetFileNodesFor
(
path
,
filteredDataSets
,
response
,
acceptor
,
context
)
script
.
addSampleSampleChildNodes
(
path
,
samplePermId
,
response
,
acceptor
,
context
)
def
getDataSetsOfSampleAndItsDescendants
(
samplePermId
,
context
):
def
getDataSetsOfSampleAndItsDescendants
(
samplePermId
,
supressWells
,
context
):
samplePermIds
=
[]
gatherAllDescendants
(
samplePermIds
,
samplePermId
,
context
)
gatherAllDescendants
(
samplePermIds
,
samplePermId
,
supressWells
,
context
)
dataSetSearchCriteria
=
DataSetSearchCriteria
()
dataSetSearchCriteria
.
withOrOperator
()
for
id
in
samplePermIds
:
dataSetSearchCriteria
.
withSample
().
withPermId
().
thatEquals
(
id
)
return
script
.
getDataSets
(
dataSetSearchCriteria
,
context
)
def
gatherAllDescendants
(
samplePermIds
,
samplePermId
,
context
):
def
gatherAllDescendants
(
samplePermIds
,
samplePermId
,
supressWells
,
context
):
samplePermIds
.
append
(
samplePermId
)
id
=
SamplePermId
(
samplePermId
)
fetchOptions
=
SampleFetchOptions
()
...
...
@@ -40,8 +40,8 @@ def gatherAllDescendants(samplePermIds, samplePermId, context):
children
=
context
.
getApi
().
getSamples
(
context
.
getSessionToken
(),
[
id
],
fetchOptions
)[
id
].
getChildren
()
for
child
in
children
:
sampleTypeCode
=
child
.
getType
().
getCode
()
if
not
sampleTypeCode
.
endswith
(
"
_WELL
"
):
gatherAllDescendants
(
samplePermIds
,
child
.
getPermId
().
getPermId
(),
context
)
if
not
supressWells
or
not
sampleTypeCode
.
endswith
(
"
_WELL
"
):
gatherAllDescendants
(
samplePermIds
,
child
.
getPermId
().
getPermId
(),
supressWells
,
context
)
for
t
in
[
"
FACS_ARIA
"
,
"
INFLUX
"
,
"
MOFLO_XDP
"
,
"
S3E
"
,
"
SONY_SH800S
"
,
"
SONY_MA900
"
]:
acceptor
.
hideSampleType
(
"
%s_SPECIMEN
"
%
t
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment