Commit f7b76918 authored by Alexandre Delanoë's avatar Alexandre Delanoë

[FIX] conflicts

parents fe7a92cc 88655f68
...@@ -62,6 +62,7 @@ rec { ...@@ -62,6 +62,7 @@ rec {
pkgs.gmp pkgs.gmp
pkgs.lapack pkgs.lapack
pkgs.libxml2 pkgs.libxml2
pkgs.nanomsg
pkgs.plfit pkgs.plfit
] ++ pkgs.lib.optionals pkgs.stdenv.cc.isClang [ ] ++ pkgs.lib.optionals pkgs.stdenv.cc.isClang [
pkgs.llvmPackages.openmp pkgs.llvmPackages.openmp
......
...@@ -34,8 +34,7 @@ import Gargantext.Database.Action.Flow (reIndexWith) ...@@ -34,8 +34,7 @@ import Gargantext.Database.Action.Flow (reIndexWith)
import Gargantext.Database.Action.Flow.Pairing (pairing) import Gargantext.Database.Action.Flow.Pairing (pairing)
import Gargantext.Database.Action.Metrics (updateNgramsOccurrences, updateContextScore) import Gargantext.Database.Action.Metrics (updateNgramsOccurrences, updateContextScore)
import Gargantext.Database.Admin.Types.Hyperdata.Phylo ( HyperdataPhylo(HyperdataPhylo) ) import Gargantext.Database.Admin.Types.Hyperdata.Phylo ( HyperdataPhylo(HyperdataPhylo) )
import Gargantext.Database.Admin.Types.Node ( NodeId, import Gargantext.Database.Admin.Types.Node ( NodeId, NodeType(NodeCorpus, NodeAnnuaire, NodeTexts, NodeGraph, NodePhylo, NodeList) )
NodeType(NodeCorpus, NodeAnnuaire, NodeTexts, NodeList) )
import Gargantext.Database.Query.Table.Node (defaultList, getNode, getChildrenByType) import Gargantext.Database.Query.Table.Node (defaultList, getNode, getChildrenByType)
import Gargantext.Database.Query.Table.Node.UpdateOpaleye (updateHyperdata) import Gargantext.Database.Query.Table.Node.UpdateOpaleye (updateHyperdata)
import Gargantext.Database.Schema.Node (node_parent_id) import Gargantext.Database.Schema.Node (node_parent_id)
...@@ -146,15 +145,21 @@ updateNode tId (UpdateNodeParamsTexts _mode) jobHandle = do ...@@ -146,15 +145,21 @@ updateNode tId (UpdateNodeParamsTexts _mode) jobHandle = do
markComplete jobHandle markComplete jobHandle
updateNode tId (UpdateNodeParamsCorpus methodTexts methodList) jobHandle = do updateNode tId
(UpdateNodeParamsCorpus methodGraph methodPhylo methodTexts methodList)
jobHandle = do
markStarted 3 jobHandle markStarted 3 jobHandle
markProgress 1 jobHandle markProgress 1 jobHandle
_ <- getNode tId _ <- getNode tId
childTexts <- getChildrenByType tId NodeTexts childTexts <- getChildrenByType tId NodeTexts
childGraphs <- getChildrenByType tId NodeGraph
childPhylos <- getChildrenByType tId NodePhylo
childNodeLists <- getChildrenByType tId NodeList childNodeLists <- getChildrenByType tId NodeList
mapM_ (\cId -> updateNode cId (UpdateNodeParamsTexts methodTexts) jobHandle) childTexts 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 mapM_ (\cId -> updateNode cId (UpdateNodeParamsList methodList) jobHandle) childNodeLists
markComplete jobHandle markComplete jobHandle
......
...@@ -21,7 +21,13 @@ data UpdateNodeParams = UpdateNodeParamsList { methodList :: !Method } ...@@ -21,7 +21,13 @@ data UpdateNodeParams = UpdateNodeParamsList { methodList :: !Method }
| UpdateNodeParamsTexts { methodTexts :: !Granularity } | UpdateNodeParamsTexts { methodTexts :: !Granularity }
<<<<<<< HEAD
| UpdateNodeParamsCorpus { methodTexts :: !Granularity | UpdateNodeParamsCorpus { methodTexts :: !Granularity
=======
| UpdateNodeParamsCorpus { methodGraph :: !UpdateNodeConfigGraph
, methodPhylo :: !PhyloSubConfigAPI
, methodTexts :: !Granularity
>>>>>>> origin/dev-add-nanomsg-to-nix
, methodList :: !Method } , methodList :: !Method }
| UpdateNodeParamsBoard { methodBoard :: !Charts } | UpdateNodeParamsBoard { methodBoard :: !Charts }
......
...@@ -16,7 +16,7 @@ docker compose up -d ...@@ -16,7 +16,7 @@ docker compose up -d
echo "GarganText: docker for postgresql database [OK]" echo "GarganText: docker for postgresql database [OK]"
cd ../../ cd ../../
echo "GarganText: gargantext-server with Nix and Cabal..." echo "GarganText: gargantext-server with Nix and Cabal..."
nix-shell --run "cabal run gargantext-server -- --ini gargantext.ini --run Prod +RTS > $LOGFILE 2>&1 & tail -F $LOGFILE" nix-shell --run "cabal run gargantext-server -- --toml gargantext-settings.toml --run Prod +RTS > $LOGFILE 2>&1 & tail -F $LOGFILE"
echo "GarganText: gargantext-server with Nix and Cabal [OK]" echo "GarganText: gargantext-server with Nix and Cabal [OK]"
echo "GarganText: project stopped." echo "GarganText: project stopped."
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment