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
Christian Merten
haskell-gargantext
Commits
fe7a92cc
Unverified
Commit
fe7a92cc
authored
Oct 08, 2024
by
Christian Merten
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: no longer update graphs and phylos on corpus update
parent
f775d4a3
Pipeline
#6785
failed with stages
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
11 deletions
+3
-11
Update.hs
src/Gargantext/API/Node/Update.hs
+2
-8
Types.hs
src/Gargantext/API/Node/Update/Types.hs
+1
-3
No files found.
src/Gargantext/API/Node/Update.hs
View file @
fe7a92cc
...
...
@@ -35,7 +35,7 @@ import Gargantext.Database.Action.Flow.Pairing (pairing)
import
Gargantext.Database.Action.Metrics
(
updateNgramsOccurrences
,
updateContextScore
)
import
Gargantext.Database.Admin.Types.Hyperdata.Phylo
(
HyperdataPhylo
(
HyperdataPhylo
)
)
import
Gargantext.Database.Admin.Types.Node
(
NodeId
,
NodeType
(
NodeCorpus
,
NodeAnnuaire
,
NodeTexts
,
Node
Graph
,
NodePhylo
,
Node
List
)
)
NodeType
(
NodeCorpus
,
NodeAnnuaire
,
NodeTexts
,
NodeList
)
)
import
Gargantext.Database.Query.Table.Node
(
defaultList
,
getNode
,
getChildrenByType
)
import
Gargantext.Database.Query.Table.Node.UpdateOpaleye
(
updateHyperdata
)
import
Gargantext.Database.Schema.Node
(
node_parent_id
)
...
...
@@ -146,21 +146,15 @@ updateNode tId (UpdateNodeParamsTexts _mode) jobHandle = do
markComplete
jobHandle
updateNode
tId
(
UpdateNodeParamsCorpus
methodGraph
methodPhylo
methodTexts
methodList
)
jobHandle
=
do
updateNode
tId
(
UpdateNodeParamsCorpus
methodTexts
methodList
)
jobHandle
=
do
markStarted
3
jobHandle
markProgress
1
jobHandle
_
<-
getNode
tId
childTexts
<-
getChildrenByType
tId
NodeTexts
childGraphs
<-
getChildrenByType
tId
NodeGraph
childPhylos
<-
getChildrenByType
tId
NodePhylo
childNodeLists
<-
getChildrenByType
tId
NodeList
mapM_
(
\
cId
->
updateNode
cId
(
UpdateNodeParamsTexts
methodTexts
)
jobHandle
)
childTexts
mapM_
(
\
cId
->
updateNode
cId
(
UpdateNodeParamsGraph
methodGraph
)
jobHandle
)
childGraphs
mapM_
(
\
cId
->
updateNode
cId
(
UpdateNodePhylo
methodPhylo
)
jobHandle
)
childPhylos
mapM_
(
\
cId
->
updateNode
cId
(
UpdateNodeParamsList
methodList
)
jobHandle
)
childNodeLists
markComplete
jobHandle
...
...
src/Gargantext/API/Node/Update/Types.hs
View file @
fe7a92cc
...
...
@@ -21,9 +21,7 @@ data UpdateNodeParams = UpdateNodeParamsList { methodList :: !Method }
|
UpdateNodeParamsTexts
{
methodTexts
::
!
Granularity
}
|
UpdateNodeParamsCorpus
{
methodGraph
::
!
UpdateNodeConfigGraph
,
methodPhylo
::
!
PhyloSubConfigAPI
,
methodTexts
::
!
Granularity
|
UpdateNodeParamsCorpus
{
methodTexts
::
!
Granularity
,
methodList
::
!
Method
}
|
UpdateNodeParamsBoard
{
methodBoard
::
!
Charts
}
...
...
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