Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
fb05e41d
Commit
fb05e41d
authored
Aug 05, 2021
by
mgandres
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove local apollo query and mutation for commit sha
parent
ffa942a4
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
0 additions
and
15 deletions
+0
-15
app/assets/javascripts/pipeline_editor/graphql/mutations/update_commit_sha.mutation.graphql
...itor/graphql/mutations/update_commit_sha.mutation.graphql
+0
-3
app/assets/javascripts/pipeline_editor/graphql/queries/client/commit_sha.graphql
...pipeline_editor/graphql/queries/client/commit_sha.graphql
+0
-3
app/assets/javascripts/pipeline_editor/graphql/resolvers.js
app/assets/javascripts/pipeline_editor/graphql/resolvers.js
+0
-9
No files found.
app/assets/javascripts/pipeline_editor/graphql/mutations/update_commit_sha.mutation.graphql
deleted
100644 → 0
View file @
ffa942a4
mutation
updateCommitSha
(
$commitSha
:
String
)
{
updateCommitSha
(
commitSha
:
$commitSha
)
@client
}
app/assets/javascripts/pipeline_editor/graphql/queries/client/commit_sha.graphql
deleted
100644 → 0
View file @
ffa942a4
query
getCommitSha
{
commitSha
@client
}
app/assets/javascripts/pipeline_editor/graphql/resolvers.js
View file @
fb05e41d
import
produce
from
'
immer
'
;
import
produce
from
'
immer
'
;
import
axios
from
'
~/lib/utils/axios_utils
'
;
import
axios
from
'
~/lib/utils/axios_utils
'
;
import
getCommitShaQuery
from
'
./queries/client/commit_sha.graphql
'
;
import
getCurrentBranchQuery
from
'
./queries/client/current_branch.graphql
'
;
import
getCurrentBranchQuery
from
'
./queries/client/current_branch.graphql
'
;
import
getLastCommitBranchQuery
from
'
./queries/client/last_commit_branch.query.graphql
'
;
import
getLastCommitBranchQuery
from
'
./queries/client/last_commit_branch.query.graphql
'
;
...
@@ -32,14 +31,6 @@ export const resolvers = {
...
@@ -32,14 +31,6 @@ export const resolvers = {
__typename
:
'
CiLintContent
'
,
__typename
:
'
CiLintContent
'
,
}));
}));
},
},
updateCommitSha
:
(
_
,
{
commitSha
},
{
cache
})
=>
{
cache
.
writeQuery
({
query
:
getCommitShaQuery
,
data
:
produce
(
cache
.
readQuery
({
query
:
getCommitShaQuery
}),
(
draftData
)
=>
{
draftData
.
commitSha
=
commitSha
;
}),
});
},
updateCurrentBranch
:
(
_
,
{
currentBranch
},
{
cache
})
=>
{
updateCurrentBranch
:
(
_
,
{
currentBranch
},
{
cache
})
=>
{
cache
.
writeQuery
({
cache
.
writeQuery
({
query
:
getCurrentBranchQuery
,
query
:
getCurrentBranchQuery
,
...
...
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