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
2440c919
Commit
2440c919
authored
May 25, 2023
by
Alexandre Delanoë
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
more debug
parent
92e5ee63
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
11 deletions
+11
-11
Tree.hs
src/Gargantext/Database/Query/Tree.hs
+11
-11
No files found.
src/Gargantext/Database/Query/Tree.hs
View file @
2440c919
...
...
@@ -44,7 +44,7 @@ import Control.Monad.Error.Class (MonadError())
import
Data.List
(
tail
,
concat
,
nub
)
import
qualified
Data.List
as
List
import
Data.Map.Strict
(
Map
,
fromListWith
,
lookup
)
--
import Data.Monoid (mconcat)
import
Data.Monoid
(
mconcat
)
import
Data.Proxy
-- import qualified Data.Set as Set
import
Data.Text
(
Text
)
...
...
@@ -176,23 +176,23 @@ findSharedDirect :: (HasTreeError err, HasNodeError err)
=>
RootId
->
NodeType
->
[
NodeType
]
->
UpdateTree
err
->
Cmd
err
[
DbTreeNode
]
findSharedDirect
r
nt
nts
fun
=
do
--
let rPrefix s = mconcat [ "[findSharedDirect] r = "
--
, show r
--
, ", nt = "
--
, show nt
--
, ", nts = "
--
, show nts
--
, " "
--
, s ]
let
rPrefix
s
=
mconcat
[
"[findSharedDirect] r = "
,
show
r
,
", nt = "
,
show
nt
,
", nts = "
,
show
nts
,
" "
,
s
]
parent
<-
getNodeWith
r
(
Proxy
::
Proxy
HyperdataAny
)
let
mParent
=
_node_parent_id
parent
case
mParent
of
Nothing
->
pure
[]
Just
parentId
->
do
foldersSharedId
<-
findNodesId
parentId
[
nt
]
--
printDebug (rPrefix "foldersSharedId") foldersSharedId
printDebug
(
rPrefix
"foldersSharedId"
)
foldersSharedId
trees
<-
mapM
(
updateTree
nts
fun
)
foldersSharedId
--
printDebug (rPrefix "trees") trees
printDebug
(
rPrefix
"trees"
)
trees
pure
$
concat
trees
...
...
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