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
153
Issues
153
List
Board
Labels
Milestones
Merge Requests
9
Merge Requests
9
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
gargantext
haskell-gargantext
Commits
7f6f1933
Commit
7f6f1933
authored
Jul 13, 2023
by
Alexandre Delanoë
Committed by
Alfredo Di Napoli
Jul 13, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[SPECS] Save lang in Node Corpus
parent
e90090b7
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
0 deletions
+16
-0
New.hs
src/Gargantext/API/Node/Corpus/New.hs
+16
-0
No files found.
src/Gargantext/API/Node/Corpus/New.hs
View file @
7f6f1933
...
...
@@ -205,6 +205,11 @@ addToCorpusWithQuery user cid (WithQuery { _wq_query = q
-- printDebug "[addToCorpusWithQuery] datafield" datafield
-- printDebug "[addToCorpusWithQuery] flowListWith" flw
-- TODO
-- n <- getNode cid
-- let n.wq_lang = l
-- saveNode n
case
datafield
of
Just
Web
->
do
-- printDebug "[addToCorpusWithQuery] processing web request" datafield
...
...
@@ -264,6 +269,12 @@ addToCorpusWithForm user cid (NewWithForm ft ff d l _n sel) jobHandle = do
-- printDebug "[addToCorpusWithForm] Parsing corpus: " cid
-- printDebug "[addToCorpusWithForm] fileType" ft
-- printDebug "[addToCorpusWithForm] fileFormat" ff
-- TODO
-- n <- getNode cid
-- let n.wq_lang = l
-- saveNode n
limit'
<-
view
$
hasConfig
.
gc_max_docs_parsers
let
limit
=
fromIntegral
limit'
::
Integer
let
...
...
@@ -369,6 +380,11 @@ addToCorpusWithFile :: (HasSettings env, FlowCmdM env err m, MonadJobStatus m)
->
m
()
addToCorpusWithFile
user
cid
nwf
@
(
NewWithFile
_d
_l
fName
)
jobHandle
=
do
-- TODO
-- n <- getNode cid
-- let n.wq_lang = l
-- saveNode n
printDebug
"[addToCorpusWithFile] Uploading file to corpus: "
cid
markStarted
1
jobHandle
...
...
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