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
Grégoire Locqueville
haskell-gargantext
Commits
92e5ee63
Commit
92e5ee63
authored
May 25, 2023
by
Alexandre Delanoë
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[Tree] debug
parent
52594085
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
1 deletion
+4
-1
gargantext.cabal
gargantext.cabal
+1
-1
TreeFirstLevel.hs
src/Gargantext/API/GraphQL/TreeFirstLevel.hs
+3
-0
No files found.
gargantext.cabal
View file @
92e5ee63
...
@@ -5,7 +5,7 @@ cabal-version: 1.12
...
@@ -5,7 +5,7 @@ cabal-version: 1.12
-- see: https://github.com/sol/hpack
-- see: https://github.com/sol/hpack
name: gargantext
name: gargantext
version: 0.0.6.9.9.5.1
version:
0.0.6.9.9.5.1
synopsis: Search, map, share
synopsis: Search, map, share
description: Please see README.md
description: Please see README.md
category: Data
category: Data
...
...
src/Gargantext/API/GraphQL/TreeFirstLevel.hs
View file @
92e5ee63
...
@@ -51,8 +51,11 @@ dbTree :: (CmdCommon env) =>
...
@@ -51,8 +51,11 @@ dbTree :: (CmdCommon env) =>
dbTree
root_id
=
do
dbTree
root_id
=
do
let
rId
=
NodeId
root_id
let
rId
=
NodeId
root_id
t
<-
lift
$
T
.
tree
T
.
TreeFirstLevel
rId
allNodeTypes
t
<-
lift
$
T
.
tree
T
.
TreeFirstLevel
rId
allNodeTypes
lift
$
printDebug
"dbTree t"
t
n
<-
lift
$
getNode
$
NodeId
root_id
n
<-
lift
$
getNode
$
NodeId
root_id
lift
$
printDebug
"dbTree n"
n
let
pId
=
toParentId
n
let
pId
=
toParentId
n
lift
$
printDebug
"dbTree pId"
pId
pure
$
toTree
rId
pId
t
pure
$
toTree
rId
pId
t
where
where
toParentId
N
.
Node
{
_node_parent_id
}
=
_node_parent_id
toParentId
N
.
Node
{
_node_parent_id
}
=
_node_parent_id
...
...
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