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
48b94816
Commit
48b94816
authored
Sep 28, 2021
by
Przemyslaw Kaminski
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'dev' into dev-corpora-from-write-nodes
parents
1afd4017
1667c63e
Changes
9
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
38 additions
and
48 deletions
+38
-48
CHANGELOG.md
CHANGELOG.md
+7
-2
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
-1
Contact.hs
src/Gargantext/API/Node/Contact.hs
+3
-2
Update.hs
src/Gargantext/API/Node/Update.hs
+3
-2
Public.hs
src/Gargantext/API/Public.hs
+3
-2
Search.hs
src/Gargantext/API/Search.hs
+16
-24
No files found.
CHANGELOG.md
View file @
48b94816
## Version 4.0.0.2
## Version 0.0.3.9.1
*
Graph Update fix
*
Document view: full text removed
## Version 0.0.0.2
*
Fix the community detection.
*
Fix the community detection.
*
TextFlow starts to make sense
*
TextFlow starts to make sense
## Version
4
.0.0.1
## Version
0
.0.0.1
*
Very first version (main functions ready for tests) of Haskell Version
*
Very first version (main functions ready for tests) of Haskell Version
of Gargantext. Previous versions (3) were written with another
of Gargantext. Previous versions (3) were written with another
language and another framework (Python/Javascript mainly).
language and another framework (Python/Javascript mainly).
bin/gargantext-hs.gource
View file @
48b94816
...
@@ -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 @
48b94816
#!/bin/bash
#!/bin/bash
stack
install
--profile
--test
--fast
# --haddock
stack
install
--
nix
--
profile
--test
--fast
# --haddock
devops/nginx/default
View file @
48b94816
##
##
## 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 @
48b94816
name
:
gargantext
name
:
gargantext
version
:
'
0.0.3.
7
'
version
:
'
0.0.3.
9.1
'
synopsis
:
Search, map, share
synopsis
:
Search, map, share
description
:
Please see README.md
description
:
Please see README.md
category
:
Data
category
:
Data
...
...
src/Gargantext/API/Node/Contact.hs
View file @
48b94816
...
@@ -46,6 +46,7 @@ import Gargantext.Database.Admin.Types.Hyperdata (HyperdataAnnuaire(..), Hyperda
...
@@ -46,6 +46,7 @@ import Gargantext.Database.Admin.Types.Hyperdata (HyperdataAnnuaire(..), Hyperda
import
Gargantext.Database.Admin.Types.Hyperdata.Contact
(
hyperdataContact
)
import
Gargantext.Database.Admin.Types.Hyperdata.Contact
(
hyperdataContact
)
import
Gargantext.Database.Admin.Types.Node
import
Gargantext.Database.Admin.Types.Node
import
Gargantext.Prelude
((
$
),
liftBase
,
(
.
),
printDebug
,
pure
)
import
Gargantext.Prelude
((
$
),
liftBase
,
(
.
),
printDebug
,
pure
)
import
qualified
Gargantext.Utils.Aeson
as
GUA
------------------------------------------------------------------------
------------------------------------------------------------------------
type
API
=
"contact"
:>
Summary
"Contact endpoint"
type
API
=
"contact"
:>
Summary
"Contact endpoint"
...
@@ -105,10 +106,10 @@ addContact _uId _nId _p logStatus = do
...
@@ -105,10 +106,10 @@ addContact _uId _nId _p logStatus = do
------------------------------------------------------------------------
------------------------------------------------------------------------
-- TODO unPrefix "pn_" FromJSON, ToJSON, ToSchema, adapt frontend.
-- TODO unPrefix "pn_" FromJSON, ToJSON, ToSchema, adapt frontend.
instance
FromJSON
AddContactParams
where
instance
FromJSON
AddContactParams
where
parseJSON
=
genericParseJSON
(
defaultOptions
{
sumEncoding
=
ObjectWithSingleField
})
parseJSON
=
genericParseJSON
(
defaultOptions
{
sumEncoding
=
GUA
.
defaultTaggedObject
})
instance
ToJSON
AddContactParams
where
instance
ToJSON
AddContactParams
where
toJSON
=
genericToJSON
(
defaultOptions
{
sumEncoding
=
ObjectWithSingleField
})
toJSON
=
genericToJSON
(
defaultOptions
{
sumEncoding
=
GUA
.
defaultTaggedObject
})
instance
ToSchema
AddContactParams
instance
ToSchema
AddContactParams
instance
Arbitrary
AddContactParams
where
instance
Arbitrary
AddContactParams
where
...
...
src/Gargantext/API/Node/Update.hs
View file @
48b94816
...
@@ -35,6 +35,7 @@ import Gargantext.Database.Action.Flow.Pairing (pairing)
...
@@ -35,6 +35,7 @@ import Gargantext.Database.Action.Flow.Pairing (pairing)
import
Gargantext.Database.Action.Flow.Types
(
FlowCmdM
)
import
Gargantext.Database.Action.Flow.Types
(
FlowCmdM
)
import
Gargantext.Database.Admin.Types.Node
import
Gargantext.Database.Admin.Types.Node
import
Gargantext.Prelude
(
Ord
,
Eq
,
(
<$>
),
(
$
),
liftBase
,
(
.
),
printDebug
,
pure
,
show
,
cs
,
(
<>
),
panic
)
import
Gargantext.Prelude
(
Ord
,
Eq
,
(
<$>
),
(
$
),
liftBase
,
(
.
),
printDebug
,
pure
,
show
,
cs
,
(
<>
),
panic
)
import
qualified
Gargantext.Utils.Aeson
as
GUA
import
Prelude
(
Enum
,
Bounded
,
minBound
,
maxBound
)
import
Prelude
(
Enum
,
Bounded
,
minBound
,
maxBound
)
import
Servant
import
Servant
import
Servant.Job.Async
(
JobFunction
(
..
),
serveJobsAPI
)
import
Servant.Job.Async
(
JobFunction
(
..
),
serveJobsAPI
)
...
@@ -149,10 +150,10 @@ updateNode _uId _nId _p logStatus = do
...
@@ -149,10 +150,10 @@ updateNode _uId _nId _p logStatus = do
------------------------------------------------------------------------
------------------------------------------------------------------------
-- TODO unPrefix "pn_" FromJSON, ToJSON, ToSchema, adapt frontend.
-- TODO unPrefix "pn_" FromJSON, ToJSON, ToSchema, adapt frontend.
instance
FromJSON
UpdateNodeParams
where
instance
FromJSON
UpdateNodeParams
where
parseJSON
=
genericParseJSON
(
defaultOptions
{
sumEncoding
=
ObjectWithSingleField
})
parseJSON
=
genericParseJSON
(
defaultOptions
{
sumEncoding
=
GUA
.
defaultTaggedObject
})
instance
ToJSON
UpdateNodeParams
where
instance
ToJSON
UpdateNodeParams
where
toJSON
=
genericToJSON
(
defaultOptions
{
sumEncoding
=
ObjectWithSingleField
})
toJSON
=
genericToJSON
(
defaultOptions
{
sumEncoding
=
GUA
.
defaultTaggedObject
})
instance
ToSchema
UpdateNodeParams
instance
ToSchema
UpdateNodeParams
instance
Arbitrary
UpdateNodeParams
where
instance
Arbitrary
UpdateNodeParams
where
...
...
src/Gargantext/API/Public.hs
View file @
48b94816
...
@@ -42,6 +42,7 @@ import Gargantext.Database.Query.Table.NodeNode (selectPublicNodes)
...
@@ -42,6 +42,7 @@ import Gargantext.Database.Query.Table.NodeNode (selectPublicNodes)
import
Gargantext.Core.Utils.DateUtils
(
utc2year
)
import
Gargantext.Core.Utils.DateUtils
(
utc2year
)
import
Gargantext.Database.Schema.Node
-- (NodePoly(..))
import
Gargantext.Database.Schema.Node
-- (NodePoly(..))
import
Gargantext.Prelude
import
Gargantext.Prelude
import
qualified
Gargantext.Utils.Aeson
as
GUA
------------------------------------------------------------------------
------------------------------------------------------------------------
type
API
=
API_Home
type
API
=
API_Home
...
@@ -140,10 +141,10 @@ data PublicData = PublicData
...
@@ -140,10 +141,10 @@ data PublicData = PublicData
instance
FromJSON
PublicData
where
instance
FromJSON
PublicData
where
parseJSON
=
genericParseJSON
(
defaultOptions
{
sumEncoding
=
ObjectWithSingleField
})
parseJSON
=
genericParseJSON
(
defaultOptions
{
sumEncoding
=
GUA
.
defaultTaggedObject
})
instance
ToJSON
PublicData
where
instance
ToJSON
PublicData
where
toJSON
=
genericToJSON
(
defaultOptions
{
sumEncoding
=
ObjectWithSingleField
})
toJSON
=
genericToJSON
(
defaultOptions
{
sumEncoding
=
GUA
.
defaultTaggedObject
})
instance
ToSchema
PublicData
instance
ToSchema
PublicData
instance
Arbitrary
PublicData
where
instance
Arbitrary
PublicData
where
...
...
src/Gargantext/API/Search.hs
View file @
48b94816
...
@@ -74,12 +74,10 @@ api nId (SearchQuery q SearchContact) o l order = do
...
@@ -74,12 +74,10 @@ api nId (SearchQuery q SearchContact) o l order = do
-----------------------------------------------------------------------
-----------------------------------------------------------------------
data
SearchType
=
SearchDoc
|
SearchContact
data
SearchType
=
SearchDoc
|
SearchContact
deriving
(
Generic
)
deriving
(
Generic
)
instance
FromJSON
SearchType
instance
FromJSON
SearchType
where
where
parseJSON
=
genericParseJSON
(
defaultOptions
{
sumEncoding
=
ObjectWithSingleField
})
parseJSON
=
genericParseJSON
(
defaultOptions
{
sumEncoding
=
ObjectWithSingleField
})
instance
ToJSON
SearchType
where
instance
ToJSON
SearchType
toJSON
=
genericToJSON
(
defaultOptions
{
sumEncoding
=
ObjectWithSingleField
})
where
toJSON
=
genericToJSON
(
defaultOptions
{
sumEncoding
=
ObjectWithSingleField
})
instance
ToSchema
SearchType
instance
ToSchema
SearchType
instance
Arbitrary
SearchType
where
instance
Arbitrary
SearchType
where
arbitrary
=
elements
[
SearchDoc
,
SearchContact
]
arbitrary
=
elements
[
SearchDoc
,
SearchContact
]
...
@@ -90,12 +88,10 @@ data SearchQuery =
...
@@ -90,12 +88,10 @@ data SearchQuery =
,
expected
::
!
SearchType
,
expected
::
!
SearchType
}
}
deriving
(
Generic
)
deriving
(
Generic
)
instance
FromJSON
SearchQuery
instance
FromJSON
SearchQuery
where
where
parseJSON
=
genericParseJSON
defaultOptions
parseJSON
=
genericParseJSON
(
defaultOptions
{
sumEncoding
=
ObjectWithSingleField
})
instance
ToJSON
SearchQuery
where
instance
ToJSON
SearchQuery
toJSON
=
genericToJSON
defaultOptions
where
toJSON
=
genericToJSON
(
defaultOptions
{
sumEncoding
=
ObjectWithSingleField
})
instance
ToSchema
SearchQuery
instance
ToSchema
SearchQuery
{-
{-
where
where
...
@@ -110,13 +106,11 @@ data SearchResult =
...
@@ -110,13 +106,11 @@ data SearchResult =
SearchResult
{
result
::
!
SearchResultTypes
}
SearchResult
{
result
::
!
SearchResultTypes
}
deriving
(
Generic
)
deriving
(
Generic
)
instance
FromJSON
SearchResult
instance
FromJSON
SearchResult
where
where
parseJSON
=
genericParseJSON
defaultOptions
parseJSON
=
genericParseJSON
(
defaultOptions
{
sumEncoding
=
ObjectWithSingleField
})
instance
ToJSON
SearchResult
instance
ToJSON
SearchResult
where
where
toJSON
=
genericToJSON
defaultOptions
toJSON
=
genericToJSON
(
defaultOptions
{
sumEncoding
=
ObjectWithSingleField
})
instance
ToSchema
SearchResult
instance
ToSchema
SearchResult
{-
{-
...
@@ -133,12 +127,10 @@ data SearchResultTypes =
...
@@ -133,12 +127,10 @@ data SearchResultTypes =
|
SearchResultContact
{
contacts
::
!
[
Row
]
}
|
SearchResultContact
{
contacts
::
!
[
Row
]
}
|
SearchNoResult
{
message
::
!
Text
}
|
SearchNoResult
{
message
::
!
Text
}
deriving
(
Generic
)
deriving
(
Generic
)
instance
FromJSON
SearchResultTypes
instance
FromJSON
SearchResultTypes
where
where
parseJSON
=
genericParseJSON
(
defaultOptions
{
sumEncoding
=
defaultTaggedObject
})
parseJSON
=
genericParseJSON
(
defaultOptions
{
sumEncoding
=
defaultTaggedObject
})
instance
ToJSON
SearchResultTypes
where
instance
ToJSON
SearchResultTypes
toJSON
=
genericToJSON
(
defaultOptions
{
sumEncoding
=
defaultTaggedObject
})
where
toJSON
=
genericToJSON
(
defaultOptions
{
sumEncoding
=
defaultTaggedObject
})
instance
Arbitrary
SearchResultTypes
where
instance
Arbitrary
SearchResultTypes
where
arbitrary
=
do
arbitrary
=
do
...
...
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