Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
H
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
Przemyslaw Kaminski
haskell-gargantext
Commits
0dfe162f
Commit
0dfe162f
authored
Oct 04, 2018
by
Alexandre Delanoë
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[TREE]Config fix NodeTypes id.
parent
56153d31
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
Config.hs
src/Gargantext/Database/Config.hs
+2
-2
Tree.hs
src/Gargantext/Database/Tree.hs
+1
-1
No files found.
src/Gargantext/Database/Config.hs
View file @
0dfe162f
...
...
@@ -33,8 +33,8 @@ nodeTypeId n =
case
n
of
NodeUser
->
1
Folder
->
2
NodeCorpus
->
3
-- NodeCorpus -> 30
TODO ERRR
--
NodeCorpus -> 3
NodeCorpus
->
30
--
TODO ERRR
Annuaire
->
31
Document
->
4
UserPage
->
41
...
...
src/Gargantext/Database/Tree.hs
View file @
0dfe162f
...
...
@@ -100,7 +100,7 @@ dbTree conn rootId = map (\(nId, tId, pId, n) -> DbTreeNode nId tId pId n) <$> q
UNION ALL
SELECT n.id, n.typename, n.parent_id, n.name
FROM nodes AS n JOIN descendants AS d ON n.parent_id = d.id
where n.typename in (2,3,31)
where n.typename in (2,3
0
,31)
),
ancestors (id, typename, parent_id, name) AS
(
...
...
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