Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
X
xpub-elife
Manage
Activity
Members
Labels
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Operate
Environments
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
xpub
xpub-elife
Commits
9aa202b0
Commit
9aa202b0
authored
6 years ago
by
Sam Galson
Committed by
Mihail Dunaev
6 years ago
Browse files
Options
Downloads
Patches
Plain Diff
fix(submission): update cache after ms create
parent
342386a6
No related branches found
Branches containing commit
No related tags found
1 merge request
!29
Get current ms
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
app/components/submission/WithCurrentSubmission.js
+8
-1
8 additions, 1 deletion
app/components/submission/WithCurrentSubmission.js
server/submission/definitions.js
+5
-0
5 additions, 0 deletions
server/submission/definitions.js
with
13 additions
and
1 deletion
app/components/submission/WithCurrentSubmission.js
+
8
−
1
View file @
9aa202b0
...
...
@@ -93,7 +93,14 @@ class WithCurrentSubmission extends React.Component {
return
this
.
setState
({
data
,
error
:
null
,
loading
:
false
})
}
return
this
.
props
.
client
.
mutate
({
mutation
:
CREATE_SUBMISSION
})
.
mutate
({
mutation
:
CREATE_SUBMISSION
,
refetchQueries
:
[
{
query
:
GET_CURRENT_SUBMISSION
,
},
],
})
.
then
(({
data
:
createData
})
=>
{
this
.
setState
({
data
:
createData
,
...
...
This diff is collapsed.
Click to expand it.
server/submission/definitions.js
+
5
−
0
View file @
9aa202b0
...
...
@@ -86,6 +86,11 @@ const emptyManuscript = {
const
resolvers
=
{
Query
:
{
async
currentSubmission
(
_
,
vars
,
ctx
)
{
console
.
log
(
'
>>>>> server/submission/definitions.js:89
\n
'
,
'
ctx:
'
,
ctx
.
user
,
)
const
rows
=
await
db
.
select
({
'
submissionMeta.createdBy
'
:
ctx
.
user
,
'
submissionMeta.stage
'
:
'
INITIAL
'
,
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
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