gargantext-0.0.4.9.5: Search, map, share
Copyright(c) CNRS 2017-Present
LicenseAGPL + CECILL v3
Maintainerteam@gargantext.org
Stabilityexperimental
PortabilityPOSIX
Safe HaskellNone
LanguageHaskell2010

Gargantext.Core.NodeStory

Description

A Node Story is a Map between NodeId and an Archive (with state, version and history) for that node.

TODO: - remove - filter - charger les listes

Synopsis

Documentation

data NodeStoryEnv Source #

Constructors

NodeStoryEnv 

Instances

Instances details
Generic NodeStoryEnv Source # 
Instance details

Defined in Gargantext.Core.NodeStory

Associated Types

type Rep NodeStoryEnv :: Type -> Type #

type Rep NodeStoryEnv Source # 
Instance details

Defined in Gargantext.Core.NodeStory

type Rep NodeStoryEnv = D1 ('MetaData "NodeStoryEnv" "Gargantext.Core.NodeStory" "gargantext-0.0.4.9.5-IFz7nHafad4HfDNkPsR1x8" 'False) (C1 ('MetaCons "NodeStoryEnv" 'PrefixI 'True) (S1 ('MetaSel ('Just "_nse_var") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (MVar NodeListStory)) :*: (S1 ('MetaSel ('Just "_nse_saver") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (IO ())) :*: S1 ('MetaSel ('Just "_nse_getter") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 ([NodeId] -> IO (MVar NodeListStory))))))

type HasNodeStory env err m = (CmdM' env err m, MonadReader env m, MonadError err m, HasNodeStoryEnv env, HasConfig env, HasConnectionPool env, HasNodeError err) Source #

class HasNodeStorySaver env where Source #

Methods

hasNodeStorySaver :: Getter env (IO ()) Source #

Instances

Instances details
HasNodeStorySaver Env Source # 
Instance details

Defined in Gargantext.API.Admin.EnvTypes

HasNodeStorySaver DevEnv Source # 
Instance details

Defined in Gargantext.API.Admin.EnvTypes

data NodeStory s p Source #

Node Story for each NodeType where the Key of the Map is NodeId TODO : generalize for any NodeType, let's start with NodeList which is implemented already

Constructors

NodeStory 

Fields

Instances

Instances details
(Show s, Show p) => Show (NodeStory s p) Source # 
Instance details

Defined in Gargantext.Core.NodeStory

Methods

showsPrec :: Int -> NodeStory s p -> ShowS #

show :: NodeStory s p -> String #

showList :: [NodeStory s p] -> ShowS #

Generic (NodeStory s p) Source # 
Instance details

Defined in Gargantext.Core.NodeStory

Associated Types

type Rep (NodeStory s p) :: Type -> Type #

Methods

from :: NodeStory s p -> Rep (NodeStory s p) x #

to :: Rep (NodeStory s p) x -> NodeStory s p #

(ToJSON s, ToJSON p) => ToJSON (NodeStory s p) Source # 
Instance details

Defined in Gargantext.Core.NodeStory

(FromJSON s, FromJSON p) => FromJSON (NodeStory s p) Source # 
Instance details

Defined in Gargantext.Core.NodeStory

(Serialise s, Serialise p) => Serialise (NodeStory s p) Source # 
Instance details

Defined in Gargantext.Core.NodeStory

type Rep (NodeStory s p) Source # 
Instance details

Defined in Gargantext.Core.NodeStory

type Rep (NodeStory s p) = D1 ('MetaData "NodeStory" "Gargantext.Core.NodeStory" "gargantext-0.0.4.9.5-IFz7nHafad4HfDNkPsR1x8" 'False) (C1 ('MetaCons "NodeStory" 'PrefixI 'True) (S1 ('MetaSel ('Just "_unNodeStory") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Map NodeId (Archive s p)))))

data Archive s p Source #

Constructors

Archive 

Fields

Instances

Instances details
(Show s, Show p) => Show (Archive s p) Source # 
Instance details

Defined in Gargantext.Core.NodeStory

Methods

showsPrec :: Int -> Archive s p -> ShowS #

show :: Archive s p -> String #

showList :: [Archive s p] -> ShowS #

Generic (Archive s p) Source # 
Instance details

Defined in Gargantext.Core.NodeStory

Associated Types

type Rep (Archive s p) :: Type -> Type #

Methods

from :: Archive s p -> Rep (Archive s p) x #

to :: Rep (Archive s p) x -> Archive s p #

(Semigroup s, Semigroup p) => Semigroup (Archive s p) Source # 
Instance details

Defined in Gargantext.Core.NodeStory

Methods

(<>) :: Archive s p -> Archive s p -> Archive s p #

sconcat :: NonEmpty (Archive s p) -> Archive s p #

stimes :: Integral b => b -> Archive s p -> Archive s p #

Monoid (Archive NgramsState' NgramsStatePatch') Source # 
Instance details

Defined in Gargantext.Core.NodeStory

(ToJSON s, ToJSON p) => ToJSON (Archive s p) Source # 
Instance details

Defined in Gargantext.Core.NodeStory

(FromJSON s, FromJSON p) => FromJSON (Archive s p) Source # 
Instance details

Defined in Gargantext.Core.NodeStory

(Serialise s, Serialise p) => Serialise (Archive s p) Source # 
Instance details

Defined in Gargantext.Core.NodeStory

Methods

encode :: Archive s p -> Encoding #

decode :: Decoder s0 (Archive s p) #

encodeList :: [Archive s p] -> Encoding #

decodeList :: Decoder s0 [Archive s p] #

type Rep (Archive s p) Source # 
Instance details

Defined in Gargantext.Core.NodeStory

type Rep (Archive s p) = D1 ('MetaData "Archive" "Gargantext.Core.NodeStory" "gargantext-0.0.4.9.5-IFz7nHafad4HfDNkPsR1x8" 'False) (C1 ('MetaCons "Archive" 'PrefixI 'True) (S1 ('MetaSel ('Just "_a_version") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Version) :*: (S1 ('MetaSel ('Just "_a_state") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 s) :*: S1 ('MetaSel ('Just "_a_history") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 [p]))))

nse_var :: Lens' NodeStoryEnv (MVar NodeListStory) Source #

Lenses at the bottom of the file because Template Haskell would reorder order of execution in others cases

unNodeStory :: forall s p s p. Iso (NodeStory s p) (NodeStory s p) (Map NodeId (Archive s p)) (Map NodeId (Archive s p)) Source #

a_version :: forall s p. Lens' (Archive s p) Version Source #

a_state :: forall s p s. Lens (Archive s p) (Archive s p) s s Source #

a_history :: forall s p p. Lens (Archive s p) (Archive s p) [p] [p] Source #

Orphan instances