Verified Commit ec9f8e1c authored by Przemyslaw Kaminski's avatar Przemyslaw Kaminski

Merge branch 'dev-spago-next' into dev-add-edge-weight-control

parents e1056935 753dabd2
Pipeline #6013 failed with stages
in 5 minutes and 34 seconds
...@@ -3,6 +3,7 @@ workspace: ...@@ -3,6 +3,7 @@ workspace:
gargantext: gargantext:
path: ./ path: ./
dependencies: dependencies:
- aff
- aff-promise: ">=4.0.0 <5.0.0" - aff-promise: ">=4.0.0 <5.0.0"
- affjax: ">=13.0.0 <14.0.0" - affjax: ">=13.0.0 <14.0.0"
- affjax-web: ">=1.0.0 <2.0.0" - affjax-web: ">=1.0.0 <2.0.0"
...@@ -56,7 +57,6 @@ workspace: ...@@ -56,7 +57,6 @@ workspace:
- partial: ">=4.0.0 <5.0.0" - partial: ">=4.0.0 <5.0.0"
- prelude: ">=6.0.1 <7.0.0" - prelude: ">=6.0.1 <7.0.0"
- profunctor-lenses: ">=8.0.0 <9.0.0" - profunctor-lenses: ">=8.0.0 <9.0.0"
- psci-support: ">=6.0.0 <7.0.0"
- random: ">=6.0.0 <7.0.0" - random: ">=6.0.0 <7.0.0"
- react: ">=11.0.0 <12.0.0" - react: ">=11.0.0 <12.0.0"
- reactix: ">=0.6.0 <0.7.0" - reactix: ">=0.6.0 <0.7.0"
......
...@@ -35,14 +35,14 @@ workspace: ...@@ -35,14 +35,14 @@ workspace:
git: https://github.com/garganscript/purescript-spec-discovery.git git: https://github.com/garganscript/purescript-spec-discovery.git
ref: v8.2.0-spago-next ref: v8.2.0-spago-next
build:
# Be strict about missing packages
# https://github.com/purescript/spago/issues/1211#issuecomment-2066083651
pedanticPackages: true
package: package:
name: gargantext name: gargantext
dependencies: dependencies:
# debugging
- debug: ">=6.0.2 <7.0.0"
# - psci-support: ">=6.0.0 <7.0.0"
- aff
- aff-promise: ">=4.0.0 <5.0.0" - aff-promise: ">=4.0.0 <5.0.0"
- affjax: ">=13.0.0 <14.0.0" - affjax: ">=13.0.0 <14.0.0"
- affjax-web: ">=1.0.0 <2.0.0" - affjax-web: ">=1.0.0 <2.0.0"
...@@ -61,7 +61,6 @@ package: ...@@ -61,7 +61,6 @@ package:
- data-default: "*" - data-default: "*"
- datetime: ">=6.1.0 <7.0.0" - datetime: ">=6.1.0 <7.0.0"
- debounce - debounce
- debug: ">=6.0.2 <7.0.0"
- dom-filereader: ">=7.0.0 <8.0.0" - dom-filereader: ">=7.0.0 <8.0.0"
- dom-simple: ">=0.4.0 <0.5.0" - dom-simple: ">=0.4.0 <0.5.0"
- effect: ">=4.0.0 <5.0.0" - effect: ">=4.0.0 <5.0.0"
...@@ -96,7 +95,6 @@ package: ...@@ -96,7 +95,6 @@ package:
- partial: ">=4.0.0 <5.0.0" - partial: ">=4.0.0 <5.0.0"
- prelude: ">=6.0.1 <7.0.0" - prelude: ">=6.0.1 <7.0.0"
- profunctor-lenses: ">=8.0.0 <9.0.0" - profunctor-lenses: ">=8.0.0 <9.0.0"
- psci-support: ">=6.0.0 <7.0.0"
- random: ">=6.0.0 <7.0.0" - random: ">=6.0.0 <7.0.0"
- react: ">=11.0.0 <12.0.0" - react: ">=11.0.0 <12.0.0"
- reactix: ">=0.6.0 <0.7.0" - reactix: ">=0.6.0 <0.7.0"
...@@ -128,6 +126,24 @@ package: ...@@ -128,6 +126,24 @@ package:
- web-storage: ">=5.0.0 <6.0.0" - web-storage: ">=5.0.0 <6.0.0"
- web-url: ">=2.0.0 <3.0.0" - web-url: ">=2.0.0 <3.0.0"
- web-xhr: ">=5.0.1 <6.0.0" - web-xhr: ">=5.0.1 <6.0.0"
build:
# Be strict about missing packages
# https://github.com/purescript/spago/issues/1211#issuecomment-2066083651
pedanticPackages: true
# convert compiler warnings to errors:
# strict:
# true
censorProjectWarnings:
- UnusedDctorExplicitImport
- UnusedDctorImport
- UnusedDeclaration
- UnusedExplicitImport
- UnusedImport
- UnusedName
- UnusedTypeVar
test: test:
main: Test.Main main: Test.Main
dependencies: dependencies:
......
...@@ -44,7 +44,7 @@ getNode session nodeId = do ...@@ -44,7 +44,7 @@ getNode session nodeId = do
case eRes of case eRes of
Left err -> pure $ Left err Left err -> pure $ Left err
Right { nodes } -> do Right { nodes } -> do
liftEffect $ here.log2 "[getNode] node" nodes -- liftEffect $ here.log2 "[getNode] node" nodes
pure $ case A.head nodes of pure $ case A.head nodes of
Nothing -> Left (CustomError $ "node with id" <> show nodeId <>" not found") Nothing -> Left (CustomError $ "node with id" <> show nodeId <>" not found")
Just node -> Right node Just node -> Right node
...@@ -145,7 +145,7 @@ getTreeFirstLevel session id = do ...@@ -145,7 +145,7 @@ getTreeFirstLevel session id = do
case eRes of case eRes of
Left err -> pure $ Left err Left err -> pure $ Left err
Right { tree } -> do Right { tree } -> do
liftEffect $ here.log2 "[getTreeFirstLevel] tree first level" tree -- liftEffect $ here.log2 "[getTreeFirstLevel] tree first level" tree
pure $ Right tree -- TODO: error handling pure $ Right tree -- TODO: error handling
getTeam :: Session -> Int -> AffRESTError Team getTeam :: Session -> Int -> AffRESTError Team
......
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