Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
H
haskell-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
Przemyslaw Kaminski
haskell-gargantext
Commits
e3fd9e58
Commit
e3fd9e58
authored
Sep 28, 2021
by
Przemyslaw Kaminski
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'dev' into dev-fix-node-update-endpoint
parents
c45199f7
2f8e3065
Changes
6
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
26 additions
and
29 deletions
+26
-29
gargantext-hs.gource
bin/gargantext-hs.gource
+2
-2
install
bin/install
+1
-1
default
devops/nginx/default
+2
-12
package.yaml
package.yaml
+1
-3
API.hs
src/Gargantext/Core/Viz/Graph/API.hs
+17
-11
Node.hs
src/Gargantext/Database/Query/Table/Node.hs
+3
-0
No files found.
bin/gargantext-hs.gource
View file @
e3fd9e58
...
@@ -6,10 +6,10 @@ DATE="2018-03-08 07:18:18"
...
@@ -6,10 +6,10 @@ DATE="2018-03-08 07:18:18"
# use tutoriel code
# use tutoriel code
#tmux -d video
#tmux -d video
xterm
-e
"tutoriel"
#
xterm -e "tutoriel"
gource
--start-date
$DATE
../gargantext-hs &
gource
--start-date
$DATE
../gargantext-hs &
gource
--start-date
$DATE
gargantext-hs/purescript-gargantext
gource
--start-date
$DATE
../
gargantext-hs/purescript-gargantext
#tmux -a video
#tmux -a video
# Share video ?
# Share video ?
...
...
bin/install
View file @
e3fd9e58
#!/bin/bash
#!/bin/bash
stack
install
--profile
--test
--fast
# --haddock
stack
install
--
nix
--
profile
--test
--fast
# --haddock
devops/nginx/default
View file @
e3fd9e58
##
##
## GargantText serveur configuration
## Authors: team@gargantext.org
## Licence CNRS/AGPLv3-MIT/CECILL-INRIA
#
# Fee free to improve it
# Thanks for sharing to all community
# Specific NGINX informations
#
# You should look at the following URL's in order to grasp a solid understanding
# You should look at the following URL's in order to grasp a solid understanding
# of Nginx configuration files in order to fully unleash the power of Nginx.
# of Nginx configuration files in order to fully unleash the power of Nginx.
# http://wiki.nginx.org/Pitfalls
# http://wiki.nginx.org/Pitfalls
...
@@ -43,8 +33,8 @@ server {
...
@@ -43,8 +33,8 @@ server {
# Comment this for maintenance only
# Comment this for maintenance only
server {
server {
#
server_name v4.gargantext.org;
server_name v4.gargantext.org;
server_name maintenanceOnly.gargantext.org;
#
server_name maintenanceOnly.gargantext.org;
add_header Cache-Control "no-cache";
add_header Cache-Control "no-cache";
...
...
package.yaml
View file @
e3fd9e58
name
:
gargantext
name
:
gargantext
version
:
'
0.0.3.
3
'
version
:
'
0.0.3.
9
'
synopsis
:
Search, map, share
synopsis
:
Search, map, share
description
:
Please see README.md
description
:
Please see README.md
category
:
Data
category
:
Data
...
@@ -10,8 +10,6 @@ copyright:
...
@@ -10,8 +10,6 @@ copyright:
license
:
AGPL-3
license
:
AGPL-3
homepage
:
https://gargantext.org
homepage
:
https://gargantext.org
ghc-options
:
-Wall
ghc-options
:
-Wall
extra-libraries
:
-
gfortran
dependencies
:
dependencies
:
-
extra
-
extra
-
text
-
text
...
...
src/Gargantext/Core/Viz/Graph/API.hs
View file @
e3fd9e58
...
@@ -239,11 +239,11 @@ type GraphVersionsAPI = Summary "Graph versions"
...
@@ -239,11 +239,11 @@ type GraphVersionsAPI = Summary "Graph versions"
graphVersionsAPI
::
UserId
->
NodeId
->
GargServer
GraphVersionsAPI
graphVersionsAPI
::
UserId
->
NodeId
->
GargServer
GraphVersionsAPI
graphVersionsAPI
u
n
=
graphVersionsAPI
u
n
=
graphVersions
n
graphVersions
0
n
:<|>
recomputeVersions
u
n
:<|>
recomputeVersions
u
n
graphVersions
::
NodeId
->
GargNoServer
GraphVersions
graphVersions
::
Int
->
NodeId
->
GargNoServer
GraphVersions
graphVersions
nId
=
do
graphVersions
n
n
Id
=
do
nodeGraph
<-
getNodeWith
nId
(
Proxy
::
Proxy
HyperdataGraph
)
nodeGraph
<-
getNodeWith
nId
(
Proxy
::
Proxy
HyperdataGraph
)
let
let
graph
=
nodeGraph
graph
=
nodeGraph
...
@@ -257,13 +257,19 @@ graphVersions nId = do
...
@@ -257,13 +257,19 @@ graphVersions nId = do
.
gm_list
.
gm_list
.
lfg_version
.
lfg_version
cId
=
maybe
(
panic
"[G.V.G.API] Node has no parent"
)
mcId
<-
getClosestParentIdByType
nId
NodeCorpus
identity
let
cId
=
maybe
(
panic
"[G.V.G.API] Node has no parent"
)
identity
mcId
$
nodeGraph
^.
node_parent_id
listId
<-
defaultList
cId
maybeListId
<-
defaultListMaybe
cId
case
maybeListId
of
Nothing
->
if
n
<=
2
then
graphVersions
(
n
+
1
)
cId
else
panic
"[G.V.G.API] list not found after iterations"
Just
listId
->
do
repo
<-
getRepo'
[
listId
]
repo
<-
getRepo'
[
listId
]
let
v
=
repo
^.
unNodeStory
.
at
listId
.
_Just
.
a_version
let
v
=
repo
^.
unNodeStory
.
at
listId
.
_Just
.
a_version
printDebug
"graphVersions"
v
pure
$
GraphVersions
{
gv_graph
=
listVersion
pure
$
GraphVersions
{
gv_graph
=
listVersion
,
gv_repo
=
v
}
,
gv_repo
=
v
}
...
...
src/Gargantext/Database/Query/Table/Node.hs
View file @
e3fd9e58
...
@@ -336,6 +336,9 @@ defaultList :: (HasNodeError err, HasDBid NodeType) => CorpusId -> Cmd err ListI
...
@@ -336,6 +336,9 @@ defaultList :: (HasNodeError err, HasDBid NodeType) => CorpusId -> Cmd err ListI
defaultList
cId
=
defaultList
cId
=
maybe
(
nodeError
NoListFound
)
(
pure
.
view
node_id
)
.
headMay
=<<
getListsWithParentId
cId
maybe
(
nodeError
NoListFound
)
(
pure
.
view
node_id
)
.
headMay
=<<
getListsWithParentId
cId
defaultListMaybe
::
(
HasNodeError
err
,
HasDBid
NodeType
)
=>
CorpusId
->
Cmd
err
(
Maybe
NodeId
)
defaultListMaybe
cId
=
headMay
<$>
map
(
view
node_id
)
<$>
getListsWithParentId
cId
getListsWithParentId
::
HasDBid
NodeType
=>
NodeId
->
Cmd
err
[
Node
HyperdataList
]
getListsWithParentId
::
HasDBid
NodeType
=>
NodeId
->
Cmd
err
[
Node
HyperdataList
]
getListsWithParentId
n
=
runOpaQuery
$
selectNodesWith'
n
(
Just
NodeList
)
getListsWithParentId
n
=
runOpaQuery
$
selectNodesWith'
n
(
Just
NodeList
)
...
...
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