Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
haskell-gargantext
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Julien Moutinho
haskell-gargantext
Commits
913ac007
Commit
913ac007
authored
3 years ago
by
Przemyslaw Kaminski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[graphql] return job from ethercalc csv mutation
parent
7e65040f
dev
102-dev-graph-refresh
104-dev-john-snow-nlp
106-dev-ngrams-score-fix
111-dev-refactor-text-corpus-api-with-conduit
111-dev-refactor-text-corpus-api-with-conduit-alp
117-dev-gql-tree-parent-resolver
118-dev-gql-security
118-dev-gql-security-fix
119-dev-hal-notebook
121-dev-arxiv
124-dev-corpus-export-csv
131-dev-ngrams-table-db-connection
131-dev-ngrams-table-db-connection-2
141-dev-node-stories-db-optimization
143-dev-ngrams-repo-conflicts
144-NgramsTable_Optim
145-dev-graph-explorer-search-tfidf
145-graphExplorerSearch
149-dev-ngrams-table-sorting-fix
151-dev-pubmed-api-key
155-dev-export-list-as-csv
158-dev-ngrams-table-patch-sync
159-dev-node-story-versions-fix
161-dev-conduit-insert-db-fix
162-dev-ghc-9.4
162-dev-ghc-9.x
162-dev-haskell-9.2
163-dev-patch-fix
164-dev-node-write-analysis
175-dev-doc-table-count
175-dev-doc-table-count-temp
177-welcome-door-to-enter-the-project
184-dev-add-nlp-to-gargantext-ini
184-dev-add-support-for-multiple-languages-in-ini-file
186-dev-ngrams-score-fixes
190-dev-framecalc-async-fix
191-dev-list-upload-fixes
193-dev-api-query-dev-fix
199-dev-materialized-view-refresh-issue
201-dev-user-pubmed-api-key
203-dev-corpus-json-import
205-dev-ethercalc-codimd-doc-upload
206-dev-phylo
213-dev-implement-json-errors
217-dev-ngrams-patch
233-dev-terms-dates
239-readme-test-reinstall-project-with-cabal-and-update-the-readme-file
239-readme-test-reinstall-project-with-cabal-and-update-the-readme-file-2
244-dev-cabal-dependencies-versions
244-dev-hal-language-fix-for-abstracts
244-dev-stack2cabal
250-dev-fix-corpus-hyperdata-update
259-dev-security-fixes
260-readme-add-note-about-libraries-devlopment
263-node-content-breadcrumb-display-the-full-path-of-a-node-as-a-breadcrumb-with-each-clickable-parent
272-dev-fixes-for-node-score
274-dev-more-protolude-in-prelude
275-dev-date-split-fix
280-dev-xml-code-cleanup
281-dev-ngrams-fixes
374-dev-document-fix
376-dev-annuaire-contacts-page
376-dev-annuaire-fields
396-dev-team-management
398-dev-ngram-type-parameter
405-dev-lost-password-design
415-dev-user-empty-field
428-dev-profile-img-upload
428-dev-profile-img-upload-2
430-dev-docs-date-filter
438-dev-team-node-creator
443-dev-doc-upload-improvement
445-dev-doc-upload-lang
452-dev-teams-security
465-dev-hyperdata-graph-angle
469-dev-email-change
475-dev-node-team-invite
476-dev-fix-node-story-versions
481-dev-node-calc-upload
497-dev-node-write-selection
506-dev-search-in-tree
506-dev-tree-search-fix
513-dev-pin-tree
548-dev-reverse-url-search
551-dev-graphql-contexts-ngrams
561-dev-document-date
571-dev-node-corpus-api-search-fixes
571-dev-node-corpus-api-search-fixes-take-2
582-dev-node-phylo-init
592-dev-document-upload-abstract
594-dev-ngrams-click-fixes
596-dev-ngrams-initial-sync-fix
603-dev-istex-zip-file-upload
67-dev-ci
70-dev-searx-parser
74-dev-frame-calc-csv-import
81-dev-fix-parsers-conduit-length
81-dev-zip-upload
90-dev-async-jobs-with-push-event
90-dev-hal-box-fix
90-dev-hal-fixes
90-dev-max-docs-scrapers-parsers
97-dev-istex-search
adinapoli/developer-guidelines
adinapoli/disable-policy-checks
adinapoli/drop-servant-static-th
adinapoli/fix-datafield-instance
adinapoli/fix-phylo-types
adinapoli/fix-scheduler
adinapoli/hotfix-for-datafield-json-instance
adinapoli/improve-cabal
adinapoli/improve-cabal-ci-caching
adinapoli/improve-cabal-old
adinapoli/investigate-issue-192
adinapoli/issue-180-deps-audit
adinapoli/issue-182
adinapoli/issue-185-job-api
adinapoli/issue-185-job-api-part-2
adinapoli/issue-187-update-haskell-igraph
adinapoli/issue-188
adinapoli/issue-198
adinapoli/issue-198-part-2
adinapoli/issue-217
adinapoli/issue-226
adinapoli/issue-250
adinapoli/issue-252
adinapoli/issue-258
adinapoli/issue-258-part-2
adinapoli/issue-259
adinapoli/issue-259-design-1
adinapoli/issue-261
adinapoli/issue-267
adinapoli/issue-267-part-2
adinapoli/issue-267-part-3
adinapoli/issue-273
adinapoli/issue-273-part-2
adinapoli/issue-276
adinapoli/issue-279
adinapoli/issue-284
adinapoli/issue-incorrect-pagination
adinapoli/mac-fixes
adinapoli/more-db-test-coverage
adinapoli/raw-query-to-pubmed
adinapoli/restore-ci
adinapoli/switch-hsvm
adinapoli/try-stack2cabal
client-executable
client-graphql-endpoint
dbg-perf-order2-graph
debug-nans
dev-104-adding-language
dev-177-DoorWelcome
dev-177-DoorWelcome-v2
dev-250-addChineze
dev-593-pubmed-api-key
dev-9.0-upgrade
dev-addDoc
dev-bdd
dev-bipartite
dev-contributing
dev-demo
dev-docs-chart-update
dev-docs-download
dev-epo-integration
dev-epo-patents
dev-fix-broken-pure-refactor
dev-forgot-password
dev-gargantext-ini-fix
dev-ghc9.2-acc1.3-etc
dev-gql-tree-api
dev-graph-multipartite
dev-graph-search-in-groups-not-in-labels
dev-hackathon-fixes
dev-ihaskell-codebook
dev-infomap
dev-iramuteq
dev-merge
dev-merge-nix
dev-merge-nix-2
dev-no-freeze
dev-notebook
dev-openalex
dev-order2
dev-phylo
dev-phyloDebug
dev-pubmed
dev-scores
dev-sources-chart-sort
dev-tree-gql-improvements
dev-treedebug
dev-typeclasses-refactoring
dev-userid-in-auth
developer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0.5.7.9
0.0.5.7.8
0.0.5.7.7
0.0.5.7.6
0.0.5.7.5
0.0.5.7.4
0.0.5.7.3
0.0.5.7.2
0.0.5.7.1
0.0.5.7
0.0.5.6.7
0.0.5.6.6
0.0.5.6.5
0.0.5.6.4
0.0.5.6.3
0.0.5.6.2
0.0.5.6.1
0.0.5.6
0.0.5.5.7
0.0.5.5.6
0.0.5.5.5
0.0.5.5.4
0.0.5.5.3
0.0.5.5.2
0.0.5.5.1
0.0.5.5
0.0.5.3
0.0.5.2
0.0.5.1
0.0.5
0.0.4.9.9.6
0.0.4.9.9.5
0.0.4.9.9.4
0.0.4.9.9.3
0.0.4.9.9.2
0.0.4.9.9.1
0.0.4.9.9
0.0.4.9.8
0.0.4.9.7
0.0.4.9.6
0.0.4.9.5
0.0.4.9.4
0.0.4.9.3
0.0.4.9.2
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
4 deletions
+14
-4
GraphQL.hs
src/Gargantext/API/GraphQL.hs
+7
-4
Frame.hs
src/Gargantext/Database/Admin/Types/Hyperdata/Frame.hs
+6
-0
stack.yaml
stack.yaml
+1
-0
No files found.
src/Gargantext/API/GraphQL.hs
View file @
913ac007
...
...
@@ -33,6 +33,7 @@ import Gargantext.API.Admin.Auth.Types (AuthenticatedUser)
import
Gargantext.API.Admin.Orchestrator.Types
(
JobLog
)
import
Gargantext.API.Prelude
(
HasJobEnv
'
)
import
qualified
Gargantext.API.GraphQL.AsyncTask
as
GQLAT
import
qualified
Gargantext.API.GraphQL.Ethercalc
as
GQLEthercalc
import
qualified
Gargantext.API.GraphQL.Node
as
GQLNode
import
qualified
Gargantext.API.GraphQL.User
as
GQLUser
import
qualified
Gargantext.API.GraphQL.UserInfo
as
GQLUserInfo
...
...
@@ -69,7 +70,8 @@ data Query m
data
Mutation
m
=
Mutation
{
update_user_info
::
GQLUserInfo
.
UserInfoMArgs
->
m
Int
}
{
ethercalc_csv_download
::
GQLEthercalc
.
EthercalcCSVDownloadArgs
->
m
Int
,
update_user_info
::
GQLUserInfo
.
UserInfoMArgs
->
m
Int
}
deriving
(
Generic
,
GQLType
)
-- | Possible GraphQL Events, i.e. here we describe how we will
...
...
@@ -99,7 +101,8 @@ rootResolver =
,
node_parent
=
GQLNode
.
resolveNodeParent
,
user_infos
=
GQLUserInfo
.
resolveUserInfos
,
users
=
GQLUser
.
resolveUsers
}
,
mutationResolver
=
Mutation
{
update_user_info
=
GQLUserInfo
.
updateUserInfo
}
,
mutationResolver
=
Mutation
{
ethercalc_csv_download
=
GQLEthercalc
.
ethercalcCSVDownload
,
update_user_info
=
GQLUserInfo
.
updateUserInfo
}
,
subscriptionResolver
=
Undefined
}
-- | Main GraphQL "app".
...
...
@@ -148,5 +151,5 @@ api
::
(
Typeable
env
,
HasConnectionPool
env
,
HasConfig
env
,
HasMail
env
,
HasJobEnv'
env
)
=>
ServerT
API
(
GargM
env
GargError
)
api
(
SAS
.
Authenticated
_auser
)
=
httpPubApp
[]
app
:<|>
pure
httpPlayground
api
_
=
panic
"401 in graphql"
--SAS.throwAll (_ServerError # err401)
--
api _ = httpPubApp [] app :<|> pure httpPlayground
--
api _ = panic "401 in graphql" --SAS.throwAll (_ServerError # err401)
api
_
=
httpPubApp
[]
app
:<|>
pure
httpPlayground
This diff is collapsed.
Click to expand it.
src/Gargantext/Database/Admin/Types/Hyperdata/Frame.hs
View file @
913ac007
...
...
@@ -73,3 +73,9 @@ getHyperdataFrameContents (HyperdataFrame { _hf_base, _hf_frame_id }) = do
let
path
=
T
.
concat
[
_hf_base
,
"/"
,
_hf_frame_id
,
"/download"
]
r
<-
Wreq
.
get
$
T
.
unpack
path
pure
$
decodeUtf8
$
toStrict
$
r
^.
Wreq
.
responseBody
getHyperdataFrameCSV
::
HyperdataFrame
->
IO
Text
getHyperdataFrameCSV
(
HyperdataFrame
{
_hf_base
,
_hf_frame_id
})
=
do
let
path
=
T
.
concat
[
_hf_base
,
"/"
,
_hf_frame_id
,
".csv"
]
r
<-
Wreq
.
get
$
T
.
unpack
path
pure
$
decodeUtf8
$
toStrict
$
r
^.
Wreq
.
responseBody
This diff is collapsed.
Click to expand it.
stack.yaml
View file @
913ac007
...
...
@@ -2,6 +2,7 @@ resolver:
url
:
https://raw.githubusercontent.com/commercialhaskell/stackage-snapshots/master/lts/18/18.yaml
flags
:
{}
extra-package-dbs
:
[]
skip-ghc-check
:
true
packages
:
-
.
#- 'deps/gargantext-graph'
...
...
This diff is collapsed.
Click to expand it.
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