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
133
Issues
133
List
Board
Labels
Milestones
Merge Requests
5
Merge Requests
5
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
gargantext
purescript-gargantext
Commits
e084fc19
Verified
Commit
e084fc19
authored
Apr 08, 2025
by
Przemyslaw Kaminski
Browse files
Options
Browse Files
Download
Plain Diff
[corpus] fix merge conflicts
parents
9413ca83
266248f8
Pipeline
#7524
passed with stages
in 25 minutes and 48 seconds
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
23 deletions
+4
-23
.gitignore
.gitignore
+1
-2
install
bin/install
+1
-0
CodeSection.purs
src/Gargantext/Components/Corpus/CodeSection.purs
+2
-21
No files found.
.gitignore
View file @
e084fc19
...
...
@@ -50,7 +50,6 @@ bundle.js
# IDE specific
.idea/
.vscode
.vscode
/
# parcel
.parcel-cache/
bin/install
View file @
e084fc19
#!/bin/bash
set
-e
# To get infos
# nix-shell -p nix-info --run --extra-experimental-features nix-command "nix-info -m"
...
...
src/Gargantext/Components/Corpus/CodeSection.purs
View file @
e084fc19
...
...
@@ -420,16 +420,6 @@ loadCorpus { nodeId, session } = do
Left err -> pure $ Left err
Right (NodePoly { parentId: corpusId } :: NodePoly {}) -> do
fetchCorpusNode session corpusId
-- (NodePoly {parentId: corpusId} :: NodePoly {}) <- get session nodePolyRoute
-- corpusNode <- get session $ corpusNodeRoute corpusId ""
-- defaultListIds <- (get session $ defaultListIdsRoute corpusId)
-- :: forall a. JSON.ReadForeign a => AffTableResult (NodePoly a)
-- case (A.head defaultListIds.docs :: Maybe (NodePoly HyperdataList)) of
-- Just (NodePoly { id: defaultListId }) ->
-- pure {corpusId, corpusNode, defaultListId}
-- Nothing ->
-- throwError $ error "Missing default list"
where
nodePolyRoute = NodeAPI Corpus (Just nodeId) ""
...
...
@@ -470,17 +460,8 @@ fetchDefaultList session corpusId = do
case (A.head defaultListIds.docs :: Maybe (NodePoly HyperdataList)) of
Just (NodePoly { id: defaultListId }) ->
pure $ Right defaultListId
Nothing -> do
let listNode = AddNodeValue { name: "List", nodeType: NodeList }
eListIds <- addNode session corpusId $ listNode
case eListIds of
Left err -> pure $ Left err
Right listIds ->
case (A.head listIds :: Maybe Int) of
Nothing ->
pure $ Left $ CustomError "Missing default list"
Just listId ->
pure $ Right listId
Nothing ->
pure $ Left $ CustomError "Missing default list"
where
defaultListIdsRoute = Children NodeList 0 1 Nothing <<< Just
...
...
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