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
5b3a4c31
Commit
5b3a4c31
authored
Nov 14, 2021
by
Fernando Arias
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix linter errors and update
* Run linters
parent
45c907e1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
3 deletions
+8
-3
ee/app/assets/javascripts/security_configuration/corpus_management/graphql/resolvers/resolvers.js
...guration/corpus_management/graphql/resolvers/resolvers.js
+8
-3
No files found.
ee/app/assets/javascripts/security_configuration/corpus_management/graphql/resolvers/resolvers.js
View file @
5b3a4c31
...
...
@@ -2,12 +2,12 @@ import produce from 'immer';
import
{
corpuses
}
from
'
ee_jest/security_configuration/corpus_management/mock_data
'
;
import
{
publishPackage
}
from
'
~/api/packages_api
'
;
import
axios
from
'
~/lib/utils/axios_utils
'
;
import
{
convertToGraphQLId
}
from
'
~/graphql_shared/utils
'
;
import
{
TYPE_PACKAGES_PACKAGE
}
from
'
~/graphql_shared/constants
'
;
import
getCorpusesQuery
from
'
../queries/get_corpuses.query.graphql
'
;
import
updateProgress
from
'
../mutations/update_progress.mutation.graphql
'
;
import
uploadComplete
from
'
../mutations/upload_complete.mutation.graphql
'
;
import
corpusCreate
from
'
../mutations/corpus_create.mutation.graphql
'
;
import
{
convertToGraphQLId
}
from
'
~/graphql_shared/utils
'
;
import
{
TYPE_PACKAGES_PACKAGE
}
from
'
~/graphql_shared/constants
'
;
export
default
{
Query
:
{
...
...
@@ -62,7 +62,12 @@ export default {
client
.
mutate
({
mutation
:
corpusCreate
,
variables
:
{
input
:{
fullPath
:
projectPath
,
packageId
:
convertToGraphQLId
(
TYPE_PACKAGES_PACKAGE
,
packageId
)
}},
variables
:
{
input
:
{
fullPath
:
projectPath
,
packageId
:
convertToGraphQLId
(
TYPE_PACKAGES_PACKAGE
,
packageId
),
},
},
});
},
deleteCorpus
:
(
_
,
{
name
,
projectPath
},
{
cache
})
=>
{
...
...
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