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
197
Issues
197
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
a580e527
Commit
a580e527
authored
Nov 08, 2019
by
Alexandre Delanoë
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[Node Type] adding team.
parent
d6a2e1dd
Pipeline
#611
failed with stage
Changes
4
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
9 additions
and
2 deletions
+9
-2
Config.hs
src/Gargantext/Database/Config.hs
+1
-0
Node.hs
src/Gargantext/Database/Schema/Node.hs
+6
-0
Tree.hs
src/Gargantext/Database/Tree.hs
+1
-1
Node.hs
src/Gargantext/Database/Types/Node.hs
+1
-1
No files found.
src/Gargantext/Database/Config.hs
View file @
a580e527
...
@@ -45,6 +45,7 @@ nodeTypeId n =
...
@@ -45,6 +45,7 @@ nodeTypeId n =
NodeFolder
->
2
NodeFolder
->
2
NodeFolderPrivate
->
20
NodeFolderPrivate
->
20
NodeFolderShared
->
21
NodeFolderShared
->
21
NodeTeam
->
210
NodeFolderPublic
->
22
NodeFolderPublic
->
22
NodeCorpusV3
->
3
NodeCorpusV3
->
3
NodeCorpus
->
30
NodeCorpus
->
30
...
...
src/Gargantext/Database/Schema/Node.hs
View file @
a580e527
...
@@ -638,6 +638,12 @@ mkNodeWithParent NodeFolderPublic (Just i) uId _ =
...
@@ -638,6 +638,12 @@ mkNodeWithParent NodeFolderPublic (Just i) uId _ =
where
where
hd
=
HyperdataFolder
.
Just
.
pack
$
show
EN
hd
=
HyperdataFolder
.
Just
.
pack
$
show
EN
mkNodeWithParent
NodeTeam
(
Just
i
)
uId
_
=
insertNodesWithParentR
(
Just
i
)
[
node
NodeTeam
"Team"
hd
Nothing
uId
]
where
hd
=
HyperdataFolder
.
Just
.
pack
$
show
EN
------------------------------------------------------------------------
------------------------------------------------------------------------
...
...
src/Gargantext/Database/Tree.hs
View file @
a580e527
...
@@ -108,7 +108,7 @@ dbTree rootId = map (\(nId, tId, pId, n) -> DbTreeNode nId tId pId n)
...
@@ -108,7 +108,7 @@ dbTree rootId = map (\(nId, tId, pId, n) -> DbTreeNode nId tId pId n)
FROM nodes AS c
FROM nodes AS c
INNER JOIN tree AS s ON c.parent_id = s.id
INNER JOIN tree AS s ON c.parent_id = s.id
WHERE c.typename IN (2,20,21,22,3,5,30,31,40,7,9,90)
--
WHERE c.typename IN (2,20,21,22,3,5,30,31,40,7,9,90)
)
)
SELECT * from tree;
SELECT * from tree;
|]
(
Only
rootId
)
|]
(
Only
rootId
)
...
...
src/Gargantext/Database/Types/Node.hs
View file @
a580e527
...
@@ -442,7 +442,7 @@ instance Hyperdata HyperData
...
@@ -442,7 +442,7 @@ instance Hyperdata HyperData
-- | Then a Node can be either a Folder or a Corpus or a Document
-- | Then a Node can be either a Folder or a Corpus or a Document
data
NodeType
=
NodeUser
data
NodeType
=
NodeUser
|
NodeFolderPrivate
|
NodeFolderPrivate
|
NodeFolderShared
|
NodeFolderShared
|
NodeTeam
|
NodeFolderPublic
|
NodeFolderPublic
|
NodeFolder
|
NodeFolder
...
...
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