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
152
Issues
152
List
Board
Labels
Milestones
Merge Requests
9
Merge Requests
9
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
512d9c04
Commit
512d9c04
authored
Jun 05, 2023
by
Alexandre Delanoë
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[Revert]
parent
2afd7bfd
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
15 additions
and
12 deletions
+15
-12
gargantext.cabal
gargantext.cabal
+4
-0
DocumentsFromWriteNodes.hs
src/Gargantext/API/Node/DocumentsFromWriteNodes.hs
+1
-1
Node.hs
src/Gargantext/Database/Action/Node.hs
+6
-6
Config.hs
src/Gargantext/Database/Admin/Config.hs
+1
-1
Default.hs
src/Gargantext/Database/Admin/Types/Hyperdata/Default.hs
+1
-1
Node.hs
src/Gargantext/Database/Admin/Types/Node.hs
+2
-3
No files found.
gargantext.cabal
View file @
512d9c04
...
...
@@ -5,7 +5,11 @@ cabal-version: 1.12
-- see: https://github.com/sol/hpack
name: gargantext
<<<<<<< HEAD
version: 0.0.6.9.9.5.7
=======
version: 0.0.6.9.9.5.6
>>>>>>> parent of b002b07b ([DOC] NodeFrameWrite -> Notes)
synopsis: Search, map, share
description: Please see README.md
category: Data
...
...
src/Gargantext/API/Node/DocumentsFromWriteNodes.hs
View file @
512d9c04
...
...
@@ -90,7 +90,7 @@ documentsFromWriteNodes uId nId Params { selection, lang, paragraphs } jobHandle
markFailed
(
Just
msg
)
jobHandle
panic
msg
frameWriteIds
<-
getChildrenByType
nId
No
tes
frameWriteIds
<-
getChildrenByType
nId
No
deFrameWrite
-- https://write.frame.gargantext.org/<frame_id>/download
frameWrites
<-
mapM
(
\
id
->
getNodeWith
id
(
Proxy
::
Proxy
HyperdataFrame
))
frameWriteIds
...
...
src/Gargantext/Database/Action/Node.hs
View file @
512d9c04
...
...
@@ -51,8 +51,8 @@ mkNodeWithParent NodeUser Nothing uId name =
mkNodeWithParent
_
Nothing
_
_
=
nodeError
HasParent
------------------------------------------------------------------------
mkNodeWithParent
No
tes
i
u
n
=
mkNodeWithParent_ConfigureHyperdata
No
tes
i
u
n
mkNodeWithParent
No
deFrameWrite
i
u
n
=
mkNodeWithParent_ConfigureHyperdata
No
deFrameWrite
i
u
n
mkNodeWithParent
NodeFrameCalc
i
u
n
=
mkNodeWithParent_ConfigureHyperdata
NodeFrameCalc
i
u
n
...
...
@@ -76,8 +76,8 @@ mkNodeWithParent_ConfigureHyperdata :: (HasNodeError err, HasDBid NodeType)
->
UserId
->
Name
->
Cmd
err
[
NodeId
]
mkNodeWithParent_ConfigureHyperdata
No
tes
(
Just
i
)
uId
name
=
mkNodeWithParent_ConfigureHyperdata'
No
tes
(
Just
i
)
uId
name
mkNodeWithParent_ConfigureHyperdata
No
deFrameWrite
(
Just
i
)
uId
name
=
mkNodeWithParent_ConfigureHyperdata'
No
deFrameWrite
(
Just
i
)
uId
name
mkNodeWithParent_ConfigureHyperdata
NodeFrameCalc
(
Just
i
)
uId
name
=
mkNodeWithParent_ConfigureHyperdata'
NodeFrameCalc
(
Just
i
)
uId
name
...
...
@@ -102,7 +102,7 @@ mkNodeWithParent_ConfigureHyperdata' :: (HasNodeError err, HasDBid NodeType)
->
Cmd
err
[
NodeId
]
mkNodeWithParent_ConfigureHyperdata'
nt
(
Just
i
)
uId
name
=
do
maybeNodeId
<-
case
nt
of
No
tes
->
insertNode
Notes
(
Just
name
)
Nothing
i
uId
No
deFrameWrite
->
insertNode
NodeFrameWrite
(
Just
name
)
Nothing
i
uId
NodeFrameCalc
->
insertNode
NodeFrameCalc
(
Just
name
)
Nothing
i
uId
NodeFrameVisio
->
insertNode
NodeFrameVisio
(
Just
name
)
Nothing
i
uId
_
->
nodeError
NeedsConfiguration
...
...
@@ -112,7 +112,7 @@ mkNodeWithParent_ConfigureHyperdata' nt (Just i) uId name = do
[
n
]
->
do
cfg
<-
view
hasConfig
u
<-
case
nt
of
No
tes
->
pure
$
_gc_frame_write_url
cfg
No
deFrameWrite
->
pure
$
_gc_frame_write_url
cfg
NodeFrameCalc
->
pure
$
_gc_frame_calc_url
cfg
NodeFrameVisio
->
pure
$
_gc_frame_visio_url
cfg
_
->
nodeError
NeedsConfiguration
...
...
src/Gargantext/Database/Admin/Config.hs
View file @
512d9c04
...
...
@@ -76,7 +76,7 @@ nodeTypeId n =
NodeFile
->
101
No
tes
->
991
No
deFrameWrite
->
991
NodeFrameCalc
->
992
NodeFrameNotebook
->
993
NodeFrameVisio
->
994
...
...
src/Gargantext/Database/Admin/Types/Hyperdata/Default.hs
View file @
512d9c04
...
...
@@ -115,7 +115,7 @@ defaultHyperdata NodeGraph = DefaultGraph defaultHyperdataGraph
defaultHyperdata
NodePhylo
=
DefaultPhylo
defaultHyperdataPhylo
defaultHyperdata
NodeDashboard
=
DefaultDashboard
defaultHyperdataDashboard
defaultHyperdata
No
tes
=
DefaultFrameWrite
defaultHyperdataFrame
defaultHyperdata
No
deFrameWrite
=
DefaultFrameWrite
defaultHyperdataFrame
defaultHyperdata
NodeFrameCalc
=
DefaultFrameCalc
defaultHyperdataFrame
defaultHyperdata
NodeFrameVisio
=
DefaultFrameVisio
defaultHyperdataFrame
defaultHyperdata
NodeFrameNotebook
=
DefaultFrameCalc
defaultHyperdataFrame
...
...
src/Gargantext/Database/Admin/Types/Node.hs
View file @
512d9c04
...
...
@@ -355,12 +355,11 @@ data NodeType = NodeUser
-}
-- Optional Nodes
|
No
tes
|
NodeFrameCalc
|
NodeFrameVisio
|
NodeFrameNotebook
|
No
deFrameWrite
|
NodeFrameCalc
|
NodeFrameVisio
|
NodeFrameNotebook
|
NodeFile
deriving
(
Show
,
Read
,
Eq
,
Generic
,
Bounded
,
Enum
)
instance
GQLType
NodeType
instance
FromJSON
NodeType
instance
ToJSON
NodeType
...
...
@@ -405,7 +404,7 @@ defaultName NodeDashboard = "Board"
defaultName
NodeGraph
=
"Graph"
defaultName
NodePhylo
=
"Phylo"
defaultName
No
tes
=
"Note"
defaultName
No
deFrameWrite
=
"Note"
defaultName
NodeFrameCalc
=
"Calc"
defaultName
NodeFrameVisio
=
"Visio"
defaultName
NodeFrameNotebook
=
"Code"
...
...
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