Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
catalog.genesys-pgr.org
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
13
Issues
13
List
Boards
Labels
Service Desk
Milestones
Merge Requests
2
Merge Requests
2
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Genesys PGR
Genesys Catalog
catalog.genesys-pgr.org
Commits
94ec732d
Commit
94ec732d
authored
Nov 21, 2018
by
Matija Obreza
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix: Dataset reducers and missing return in updateAccessionRefs
parent
9793cde1
Pipeline
#7758
passed with stages
in 6 minutes and 51 seconds
Changes
4
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
5 additions
and
5 deletions
+5
-5
src/datasets/actions/dashboard.ts
src/datasets/actions/dashboard.ts
+1
-1
src/datasets/reducers/dashboard.ts
src/datasets/reducers/dashboard.ts
+1
-1
src/datasets/reducers/public.ts
src/datasets/reducers/public.ts
+1
-1
src/datasets/ui/dataset-stepper/steps/accessions-list/index.tsx
...tasets/ui/dataset-stepper/steps/accessions-list/index.tsx
+2
-2
No files found.
src/datasets/actions/dashboard.ts
View file @
94ec732d
...
@@ -72,7 +72,7 @@ function listMyDatasets(page?, results?, sortBy?: string[], filter?: string | Da
...
@@ -72,7 +72,7 @@ function listMyDatasets(page?, results?, sortBy?: string[], filter?: string | Da
};
};
}
}
function
loadAccessions
(
uuid
:
string
,
page
:
number
=
0
,
results
:
number
=
5
0
)
{
function
loadAccessions
(
uuid
:
string
,
page
:
number
=
0
,
results
:
number
=
10
0
)
{
return
(
dispatch
,
getState
)
=>
{
return
(
dispatch
,
getState
)
=>
{
return
DatasetService
.
listAccessions
(
uuid
,
{
page
,
size
:
results
})
return
DatasetService
.
listAccessions
(
uuid
,
{
page
,
size
:
results
})
...
...
src/datasets/reducers/dashboard.ts
View file @
94ec732d
...
@@ -68,7 +68,7 @@ function datasetsDashboard(state = INITIAL_STATE, action: { type?: string, paylo
...
@@ -68,7 +68,7 @@ function datasetsDashboard(state = INITIAL_STATE, action: { type?: string, paylo
accessionRefs
:
{
$set
:
accessionRefs
},
accessionRefs
:
{
$set
:
accessionRefs
},
})
:
})
:
update
(
state
,
{
update
(
state
,
{
accession
s
:
{
accessionRef
s
:
{
content
:
{
$push
:
accessionRefs
.
content
},
content
:
{
$push
:
accessionRefs
.
content
},
number
:
{
$set
:
accessionRefs
.
number
},
number
:
{
$set
:
accessionRefs
.
number
},
last
:
{
$set
:
accessionRefs
.
last
},
last
:
{
$set
:
accessionRefs
.
last
},
...
...
src/datasets/reducers/public.ts
View file @
94ec732d
...
@@ -72,7 +72,7 @@ function datasetsPublic(state = INITIAL_STATE, action: { type?: string, payload?
...
@@ -72,7 +72,7 @@ function datasetsPublic(state = INITIAL_STATE, action: { type?: string, payload?
accessionRefs
:
{
$set
:
accessionRefs
},
accessionRefs
:
{
$set
:
accessionRefs
},
})
:
})
:
update
(
state
,
{
update
(
state
,
{
accessions
:
{
accession
Ref
s
:
{
content
:
{
$push
:
accessionRefs
.
content
},
content
:
{
$push
:
accessionRefs
.
content
},
number
:
{
$set
:
accessionRefs
.
number
},
number
:
{
$set
:
accessionRefs
.
number
},
last
:
{
$set
:
accessionRefs
.
last
},
last
:
{
$set
:
accessionRefs
.
last
},
...
...
src/datasets/ui/dataset-stepper/steps/accessions-list/index.tsx
View file @
94ec732d
...
@@ -27,7 +27,7 @@ interface IAccessionsListStep extends React.ClassAttributes<any> {
...
@@ -27,7 +27,7 @@ interface IAccessionsListStep extends React.ClassAttributes<any> {
class
AccessionsListStep
extends
React
.
Component
<
IAccessionsListStep
,
any
>
{
class
AccessionsListStep
extends
React
.
Component
<
IAccessionsListStep
,
any
>
{
protected
static
needs
=
[
protected
static
needs
=
[
({
params
:
{
uuid
}
})
=>
loadAccessions
(
uuid
,
0
,
5
0
),
({
params
:
{
uuid
}
})
=>
loadAccessions
(
uuid
,
0
,
10
0
),
];
];
public
constructor
(
props
:
any
)
{
public
constructor
(
props
:
any
)
{
...
@@ -43,7 +43,7 @@ class AccessionsListStep extends React.Component<IAccessionsListStep, any> {
...
@@ -43,7 +43,7 @@ class AccessionsListStep extends React.Component<IAccessionsListStep, any> {
protected
updateAccessionRefs
=
(
accessionRefs
:
AccessionRef
[])
=>
{
protected
updateAccessionRefs
=
(
accessionRefs
:
AccessionRef
[])
=>
{
const
{
dataset
,
updateDatasetAccessionRefs
}
=
this
.
props
;
const
{
dataset
,
updateDatasetAccessionRefs
}
=
this
.
props
;
updateDatasetAccessionRefs
(
dataset
,
accessionRefs
);
return
updateDatasetAccessionRefs
(
dataset
,
accessionRefs
);
}
}
protected
gotoStep
=
(
id
)
=>
()
=>
{
protected
gotoStep
=
(
id
)
=>
()
=>
{
...
...
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