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
158
Issues
158
List
Board
Labels
Milestones
Merge Requests
11
Merge Requests
11
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
82c5b42e
Commit
82c5b42e
authored
Jul 22, 2020
by
Alexandre Delanoë
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[FIX] HAL API limit bug (Just n gives empty result TOFIX)
parent
1ad45b3f
Pipeline
#972
failed with stage
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
12 deletions
+10
-12
New.hs
src/Gargantext/API/Node/Corpus/New.hs
+2
-2
Flow.hs
src/Gargantext/Database/Action/Flow.hs
+0
-2
Config.hs
src/Gargantext/Database/Admin/Config.hs
+8
-8
No files found.
src/Gargantext/API/Node/Corpus/New.hs
View file @
82c5b42e
...
...
@@ -213,12 +213,12 @@ addToCorpusWithQuery u cid (WithQuery q dbs l _nid) logStatus = do
,
_scst_remaining
=
Just
5
,
_scst_events
=
Just
[]
}
printDebug
"addToCorpusWithQuery"
cid
printDebug
"addToCorpusWithQuery"
(
cid
,
dbs
)
-- TODO add cid
-- TODO if cid is folder -> create Corpus
-- if cid is corpus -> add to corpus
-- if cid is root -> create corpus in Private
txts
<-
mapM
(
\
db
->
getDataText
db
(
Multi
l
)
q
(
Just
10000
)
)
[
database2origin
dbs
]
txts
<-
mapM
(
\
db
->
getDataText
db
(
Multi
l
)
q
Nothing
)
[
database2origin
dbs
]
logStatus
JobLog
{
_scst_succeeded
=
Just
2
,
_scst_failed
=
Just
0
...
...
src/Gargantext/Database/Action/Flow.hs
View file @
82c5b42e
...
...
@@ -106,11 +106,9 @@ allDataOrigins = map InternalOrigin API.externalAPIs
<>
map
ExternalOrigin
API
.
externalAPIs
---------------
data
DataText
=
DataOld
!
[
NodeId
]
|
DataNew
!
[[
HyperdataDocument
]]
-- TODO use the split parameter in config file
getDataText
::
FlowCmdM
env
err
m
=>
DataOrigin
...
...
src/Gargantext/Database/Admin/Config.hs
View file @
82c5b42e
...
...
@@ -39,18 +39,18 @@ userArbitrary = "user1"
nodeTypeId
::
NodeType
->
NodeTypeId
nodeTypeId
n
=
case
n
of
NodeUser
->
1
NodeFolder
->
2
NodeUser
->
1
NodeFolder
->
2
NodeFolderPrivate
->
20
NodeFolderShared
->
21
NodeTeam
->
210
NodeFolderPublic
->
22
NodeCorpusV3
->
3
NodeCorpus
->
30
NodeAnnuaire
->
31
NodeTexts
->
40
NodeDocument
->
4
NodeContact
->
41
NodeCorpusV3
->
3
NodeCorpus
->
30
NodeAnnuaire
->
31
NodeTexts
->
40
NodeDocument
->
4
NodeContact
->
41
--NodeSwap -> 19
---- Lists
...
...
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