Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
haskell-gargantext
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
153
Issues
153
List
Board
Labels
Milestones
Merge Requests
10
Merge Requests
10
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
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
Pipeline
#1884
passed with stage
in 37 minutes and 34 seconds
Changes
6
Pipelines
1
Hide 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"
# use tutoriel code
#tmux -d video
xterm
-e
"tutoriel"
#
xterm -e "tutoriel"
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
# Share video ?
...
...
bin/install
View file @
e3fd9e58
#!/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
# of Nginx configuration files in order to fully unleash the power of Nginx.
# http://wiki.nginx.org/Pitfalls
...
...
@@ -43,8 +33,8 @@ server {
# Comment this for maintenance only
server {
#
server_name v4.gargantext.org;
server_name maintenanceOnly.gargantext.org;
server_name v4.gargantext.org;
#
server_name maintenanceOnly.gargantext.org;
add_header Cache-Control "no-cache";
...
...
package.yaml
View file @
e3fd9e58
name
:
gargantext
version
:
'
0.0.3.
3
'
version
:
'
0.0.3.
9
'
synopsis
:
Search, map, share
description
:
Please see README.md
category
:
Data
...
...
@@ -10,8 +10,6 @@ copyright:
license
:
AGPL-3
homepage
:
https://gargantext.org
ghc-options
:
-Wall
extra-libraries
:
-
gfortran
dependencies
:
-
extra
-
text
...
...
src/Gargantext/Core/Viz/Graph/API.hs
View file @
e3fd9e58
...
...
@@ -239,11 +239,11 @@ type GraphVersionsAPI = Summary "Graph versions"
graphVersionsAPI
::
UserId
->
NodeId
->
GargServer
GraphVersionsAPI
graphVersionsAPI
u
n
=
graphVersions
n
graphVersions
0
n
:<|>
recomputeVersions
u
n
graphVersions
::
NodeId
->
GargNoServer
GraphVersions
graphVersions
nId
=
do
graphVersions
::
Int
->
NodeId
->
GargNoServer
GraphVersions
graphVersions
n
n
Id
=
do
nodeGraph
<-
getNodeWith
nId
(
Proxy
::
Proxy
HyperdataGraph
)
let
graph
=
nodeGraph
...
...
@@ -257,16 +257,22 @@ graphVersions nId = do
.
gm_list
.
lfg_version
cId
=
maybe
(
panic
"[G.V.G.API] Node has no parent"
)
identity
$
nodeGraph
^.
node_parent_id
mcId
<-
getClosestParentIdByType
nId
NodeCorpus
let
cId
=
maybe
(
panic
"[G.V.G.API] Node has no parent"
)
identity
mcId
listId
<-
defaultList
cId
repo
<-
getRepo'
[
listId
]
let
v
=
repo
^.
unNodeStory
.
at
listId
.
_Just
.
a_version
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
]
let
v
=
repo
^.
unNodeStory
.
at
listId
.
_Just
.
a_version
printDebug
"graphVersions"
v
pure
$
GraphVersions
{
gv_graph
=
listVersion
,
gv_repo
=
v
}
pure
$
GraphVersions
{
gv_graph
=
listVersion
,
gv_repo
=
v
}
recomputeVersions
::
UserId
->
NodeId
->
GargNoServer
Graph
recomputeVersions
uId
nId
=
recomputeGraph
uId
nId
Nothing
...
...
src/Gargantext/Database/Query/Table/Node.hs
View file @
e3fd9e58
...
...
@@ -336,6 +336,9 @@ defaultList :: (HasNodeError err, HasDBid NodeType) => CorpusId -> Cmd err ListI
defaultList
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
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