Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
purescript-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
Grégoire Locqueville
purescript-gargantext
Commits
b626ed60
Verified
Commit
b626ed60
authored
Apr 17, 2024
by
Przemyslaw Kaminski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[breadcrumb] fix for node_id in breadcrumb request
parent
f34815ac
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
4 deletions
+4
-4
GraphQL.purs
src/Gargantext/Components/GraphQL.purs
+1
-1
Endpoints.purs
src/Gargantext/Components/GraphQL/Endpoints.purs
+2
-2
Tree.purs
src/Gargantext/Components/GraphQL/Tree.purs
+1
-1
No files found.
src/Gargantext/Components/GraphQL.purs
View file @
b626ed60
...
@@ -160,7 +160,7 @@ type Schema
...
@@ -160,7 +160,7 @@ type Schema
, users :: { user_id :: Int } ==> Array User
, users :: { user_id :: Int } ==> Array User
, team :: { team_node_id :: Int } ==> Team
, team :: { team_node_id :: Int } ==> Team
, tree :: { root_id :: Int } ==> TreeFirstLevel
, tree :: { root_id :: Int } ==> TreeFirstLevel
, tree_branch :: { node
I
d :: Int } ==> BreadcrumbInfo
, tree_branch :: { node
_i
d :: Int } ==> BreadcrumbInfo
}
}
type Mutation
type Mutation
...
...
src/Gargantext/Components/GraphQL/Endpoints.purs
View file @
b626ed60
...
@@ -228,7 +228,7 @@ getContextNgrams session context_id list_id = do
...
@@ -228,7 +228,7 @@ getContextNgrams session context_id list_id = do
pure $ rmap (\{ context_ngrams } -> NormNgramsTerm <$> context_ngrams) eRes
pure $ rmap (\{ context_ngrams } -> NormNgramsTerm <$> context_ngrams) eRes
getBreadcrumb :: Session -> Int -> AffRESTError BreadcrumbInfo
getBreadcrumb :: Session -> Int -> AffRESTError BreadcrumbInfo
getBreadcrumb session node
I
d = do
getBreadcrumb session node
_i
d = do
eRes <- queryGql session "get breadcrumb branch" $ breadcrumbQuery `withVars` { node
I
d }
eRes <- queryGql session "get breadcrumb branch" $ breadcrumbQuery `withVars` { node
_i
d }
-- liftEffect $ here.log2 "[getBreadcrumb] breadcrumb" tree_branch
-- liftEffect $ here.log2 "[getBreadcrumb] breadcrumb" tree_branch
pure $ rmap _.tree_branch eRes
pure $ rmap _.tree_branch eRes
src/Gargantext/Components/GraphQL/Tree.purs
View file @
b626ed60
...
@@ -43,7 +43,7 @@ treeFirstLevelQuery = { tree: { root_id: Var :: _ "id" Int} =>>
...
@@ -43,7 +43,7 @@ treeFirstLevelQuery = { tree: { root_id: Var :: _ "id" Int} =>>
}
}
}
}
breadcrumbQuery = { tree_branch: { node
Id: Var :: _ "nodeI
d" Int } =>>
breadcrumbQuery = { tree_branch: { node
_id: Var :: _ "node_i
d" Int } =>>
{ parents:
{ parents:
{ name: unit
{ name: unit
, node_type: unit
, node_type: unit
...
...
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