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
158
Issues
158
List
Board
Labels
Milestones
Merge Requests
10
Merge Requests
10
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
3f218dcd
Commit
3f218dcd
authored
Oct 13, 2020
by
Przemyslaw Kaminski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[charts] fix Sources chart update
parent
33fe28c3
Pipeline
#1147
failed with stage
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
Metrics.hs
src/Gargantext/API/Metrics.hs
+3
-3
Ngrams.hs
src/Gargantext/API/Ngrams.hs
+1
-1
No files found.
src/Gargantext/API/Metrics.hs
View file @
3f218dcd
...
...
@@ -171,7 +171,7 @@ getChart cId _start _end maybeListId tabType = do
Just
lid
->
pure
lid
Nothing
->
defaultList
cId
node
<-
getNodeWith
listId
(
Proxy
::
Proxy
HyperdataList
)
let
HyperdataList
{
_hl_chart
=
chartMap
}
=
node
^.
node_hyperdata
let
chartMap
=
node
^.
node_hyperdata
^.
hl_chart
mChart
=
Map
.
lookup
tabType
chartMap
chart
<-
case
mChart
of
...
...
@@ -257,7 +257,7 @@ getPie cId _start _end maybeListId tabType = do
Just
lid
->
pure
lid
Nothing
->
defaultList
cId
node
<-
getNodeWith
listId
(
Proxy
::
Proxy
HyperdataList
)
let
HyperdataList
{
_hl_pie
=
pieMap
}
=
node
^.
node_hyperdata
let
pieMap
=
node
^.
node_hyperdata
^.
hl_pie
mChart
=
Map
.
lookup
tabType
pieMap
chart
<-
case
mChart
of
...
...
@@ -354,7 +354,7 @@ getTree cId _start _end maybeListId tabType listType = do
Nothing
->
defaultList
cId
node
<-
getNodeWith
listId
(
Proxy
::
Proxy
HyperdataList
)
let
HyperdataList
{
_hl_tree
=
treeMap
}
=
node
^.
node_hyperdata
let
treeMap
=
node
^.
node_hyperdata
^.
hl_tree
mChart
=
Map
.
lookup
tabType
treeMap
chart
<-
case
mChart
of
...
...
src/Gargantext/API/Ngrams.hs
View file @
3f218dcd
...
...
@@ -376,7 +376,7 @@ tableNgramsPut tabType listId (Versioned p_version p_table)
pure
()
Sources
->
do
-- printDebug "[tableNgramsPut] Sources, updating chart, cId" cId
_
<-
Metrics
.
update
Chart
cId
(
Just
listId
)
tabType
Nothing
_
<-
Metrics
.
update
Pie
cId
(
Just
listId
)
tabType
Nothing
pure
()
Terms
->
do
-- printDebug "[tableNgramsPut] Terms, updating Metrics (Histo), cId" cId
...
...
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