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
ca96c57c
Commit
ca96c57c
authored
Feb 06, 2020
by
Alexandre Delanoë
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[INIT] add main folders.
parent
f432d12c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
1 deletion
+10
-1
Node.hs
src/Gargantext/Database/Schema/Node.hs
+10
-1
No files found.
src/Gargantext/Database/Schema/Node.hs
View file @
ca96c57c
...
@@ -672,7 +672,16 @@ mkNodeWithParent _ _ _ _ = nodeError NotImplYet
...
@@ -672,7 +672,16 @@ mkNodeWithParent _ _ _ _ = nodeError NotImplYet
mkRoot
::
HasNodeError
err
=>
Username
->
UserId
->
Cmd
err
[
RootId
]
mkRoot
::
HasNodeError
err
=>
Username
->
UserId
->
Cmd
err
[
RootId
]
mkRoot
uname
uId
=
case
uId
>
0
of
mkRoot
uname
uId
=
case
uId
>
0
of
False
->
nodeError
NegativeId
False
->
nodeError
NegativeId
True
->
mkNodeWithParent
NodeUser
Nothing
uId
uname
True
->
do
rs
<-
mkNodeWithParent
NodeUser
Nothing
uId
uname
_
<-
case
rs
of
[
r
]
->
do
_
<-
mkNodeWithParent
NodeFolderPrivate
(
Just
r
)
uId
uname
_
<-
mkNodeWithParent
NodeFolderShared
(
Just
r
)
uId
uname
_
<-
mkNodeWithParent
NodeFolderPublic
(
Just
r
)
uId
uname
pure
rs
_
->
pure
rs
pure
rs
-- |
-- |
-- CorpusDocument is a corpus made from a set of documents
-- CorpusDocument is a corpus made from a set of documents
...
...
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