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
f5a41588
Commit
f5a41588
authored
Oct 06, 2020
by
Przemyslaw Kaminski
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'dev-charts-update-economy' into dev
parents
21aed8c5
d86ab2a1
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
10 deletions
+7
-10
Ngrams.hs
src/Gargantext/API/Ngrams.hs
+6
-8
Types.hs
src/Gargantext/API/Ngrams/Types.hs
+0
-2
List.hs
src/Gargantext/Database/Admin/Types/Hyperdata/List.hs
+1
-0
No files found.
src/Gargantext/API/Ngrams.hs
View file @
f5a41588
...
@@ -116,7 +116,7 @@ import Prelude (error)
...
@@ -116,7 +116,7 @@ import Prelude (error)
import
Gargantext.Prelude
import
Gargantext.Prelude
import
Gargantext.API.Admin.Types
(
HasSettings
)
import
Gargantext.API.Admin.Types
(
HasSettings
)
--
import qualified Gargantext.API.Metrics as Metrics
import
qualified
Gargantext.API.Metrics
as
Metrics
import
Gargantext.API.Ngrams.Types
import
Gargantext.API.Ngrams.Types
import
Gargantext.Core.Types
(
ListType
(
..
),
NodeId
,
ListId
,
DocId
,
Limit
,
Offset
,
HasInvalidError
,
TODO
,
assertValid
)
import
Gargantext.Core.Types
(
ListType
(
..
),
NodeId
,
ListId
,
DocId
,
Limit
,
Offset
,
HasInvalidError
,
TODO
,
assertValid
)
import
Gargantext.Core.Utils
(
something
)
import
Gargantext.Core.Utils
(
something
)
...
@@ -130,8 +130,8 @@ import Gargantext.Database.Query.Table.Node.Error (HasNodeError)
...
@@ -130,8 +130,8 @@ import Gargantext.Database.Query.Table.Node.Error (HasNodeError)
import
Gargantext.Database.Admin.Types.Node
(
NodeType
(
..
))
import
Gargantext.Database.Admin.Types.Node
(
NodeType
(
..
))
import
Gargantext.Database.Prelude
(
HasConnectionPool
,
HasConfig
)
import
Gargantext.Database.Prelude
(
HasConnectionPool
,
HasConfig
)
import
qualified
Gargantext.Database.Query.Table.Ngrams
as
TableNgrams
import
qualified
Gargantext.Database.Query.Table.Ngrams
as
TableNgrams
--
import Gargantext.Database.Query.Table.Node (getNode)
import
Gargantext.Database.Query.Table.Node
(
getNode
)
-- import Gargantext.Database.Schema.Node (NodePoly(..)
)
import
Gargantext.Database.Schema.Node
(
node_id
,
node_parentId
,
node_userId
)
{-
{-
-- TODO sequences of modifications (Patchs)
-- TODO sequences of modifications (Patchs)
...
@@ -344,11 +344,10 @@ tableNgramsPut tabType listId (Versioned p_version p_table)
...
@@ -344,11 +344,10 @@ tableNgramsPut tabType listId (Versioned p_version p_table)
ret
<-
commitStatePatch
(
Versioned
p_version
p
)
ret
<-
commitStatePatch
(
Versioned
p_version
p
)
<&>
v_data
%~
(
view
(
_PatchMap
.
at
ngramsType
.
_Just
.
_PatchMap
.
at
listId
.
_Just
))
<&>
v_data
%~
(
view
(
_PatchMap
.
at
ngramsType
.
_Just
.
_PatchMap
.
at
listId
.
_Just
))
{-
node
<-
getNode
listId
node
<-
getNode
listId
let nId =
_node_id node
let
nId
=
node
^.
node_id
_uId =
_node_userId node
_uId
=
node
^.
node_userId
mCId =
_node_parentId node
mCId
=
node
^.
node_parentId
-- printDebug "[tableNgramsPut] updating graph with nId" nId
-- printDebug "[tableNgramsPut] updating graph with nId" nId
-- printDebug "[tableNgramsPut] updating graph with uId" uId
-- printDebug "[tableNgramsPut] updating graph with uId" uId
-- _ <- recomputeGraph uId nId Conditional
-- _ <- recomputeGraph uId nId Conditional
...
@@ -392,7 +391,6 @@ tableNgramsPut tabType listId (Versioned p_version p_table)
...
@@ -392,7 +391,6 @@ tableNgramsPut tabType listId (Versioned p_version p_table)
printDebug
"[tableNgramsPut] no update for tabType = "
tabType
printDebug
"[tableNgramsPut] no update for tabType = "
tabType
pure
()
pure
()
pure
()
pure
()
-}
pure
ret
pure
ret
{-
{-
...
...
src/Gargantext/API/Ngrams/Types.hs
View file @
f5a41588
...
@@ -74,7 +74,6 @@ instance FromHttpApiData TabType
...
@@ -74,7 +74,6 @@ instance FromHttpApiData TabType
parseUrlPiece
"Contacts"
=
pure
Contacts
parseUrlPiece
"Contacts"
=
pure
Contacts
parseUrlPiece
_
=
Left
"Unexpected value of TabType"
parseUrlPiece
_
=
Left
"Unexpected value of TabType"
instance
ToParamSchema
TabType
instance
ToParamSchema
TabType
instance
ToJSON
TabType
instance
ToJSON
TabType
instance
FromJSON
TabType
instance
FromJSON
TabType
...
@@ -82,7 +81,6 @@ instance ToSchema TabType
...
@@ -82,7 +81,6 @@ instance ToSchema TabType
instance
Arbitrary
TabType
instance
Arbitrary
TabType
where
where
arbitrary
=
elements
[
minBound
..
maxBound
]
arbitrary
=
elements
[
minBound
..
maxBound
]
instance
FromJSONKey
TabType
where
instance
FromJSONKey
TabType
where
fromJSONKey
=
genericFromJSONKey
defaultJSONKeyOptions
fromJSONKey
=
genericFromJSONKey
defaultJSONKeyOptions
instance
ToJSONKey
TabType
where
instance
ToJSONKey
TabType
where
...
...
src/Gargantext/Database/Admin/Types/Hyperdata/List.hs
View file @
f5a41588
...
@@ -24,6 +24,7 @@ module Gargantext.Database.Admin.Types.Hyperdata.List
...
@@ -24,6 +24,7 @@ module Gargantext.Database.Admin.Types.Hyperdata.List
import
Data.Map
(
Map
)
import
Data.Map
(
Map
)
import
qualified
Data.Map
as
Map
import
qualified
Data.Map
as
Map
import
Control.Applicative
import
Control.Applicative
import
Gargantext.Prelude
import
Gargantext.Prelude
import
Gargantext.Core.Viz.Types
(
Histo
(
..
))
import
Gargantext.Core.Viz.Types
(
Histo
(
..
))
import
Gargantext.API.Ngrams.NTree
(
MyTree
)
import
Gargantext.API.Ngrams.NTree
(
MyTree
)
...
...
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