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
160
Issues
160
List
Board
Labels
Milestones
Merge Requests
14
Merge Requests
14
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
8fb583cb
Verified
Commit
8fb583cb
authored
Nov 12, 2024
by
Przemyslaw Kaminski
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'dev' into 238-dev-async-job-worker
parents
f628b14e
0bbbba60
Pipeline
#6960
failed with stages
Changes
4
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
8 additions
and
8 deletions
+8
-8
README.md
README.md
+8
-4
gargantext.cabal
gargantext.cabal
+0
-2
API.hs
test/Test/API.hs
+0
-1
Notifications.hs
test/Test/API/Notifications.hs
+0
-1
No files found.
README.md
View file @
8fb583cb
...
...
@@ -10,6 +10,10 @@
2.
[
Installation
](
#install
)
3.
[
Use cases
](
#use-cases
)
4.
[
Notes for developers
](
#develop
)
5.
[
`haskell-language-server`
](
#haskell-language-server
)
6.
[
Running the tests
](
#running-tests
)
7.
[
Async workers
](
#async-workers
)
8.
[
Notifications
](
#notifications
)
## About the project <a name="about"></a>
...
...
@@ -349,7 +353,7 @@ $ ALTER ROLE gargantua PASSWORD 'yourPasswordIn_gargantext-settings.toml'
Maybe you need to change the port to 5433 for database connection in your gargantext.ini file.
## `haskell-language-server`
## `haskell-language-server`
<a name="haskell-language-server"></a>
If you want to use
`haskell-language-server`
for GHC 9.4.7, install it
with
`ghcup`
:
...
...
@@ -359,7 +363,7 @@ ghcup compile hls --version 2.7.0.0 --ghc 9.4.7
https://haskell-language-server.readthedocs.io/en/latest/installation.html
## Running the tests
## Running the tests
<a name="running-tests"></a>
Running the tests can be done via the following command:
...
...
@@ -390,7 +394,7 @@ golden reference). To do so, it's enough to run the testsuite passing the `--acc
cabal
v2
-
test
garg
-
test
-
tasty
--test-show-details=streaming --flags 'test-crypto no-phylo-debug-logs' --test-option=--pattern='/Phylo/' --test-option=--accept"
```
# Async workers
# Async workers
<a name="async-workers"></a>
Async workers allow us to accept long-running jobs and execute them
asynchronously. Workers can be spawned on multiple machines, which
...
...
@@ -451,7 +455,7 @@ worker. In particular, search for `onJobError`/`onJobTimeout` in
(logging, sending mail, firing rockets).
# Notifications
# Notifications
<a name="notifications"></a>
The notifications mechanism has 3 basic components: the
`central
exchange`
, the
`dispatcher`
and the
`websocket server`
.
...
...
gargantext.cabal
View file @
8fb583cb
...
...
@@ -852,8 +852,6 @@ test-suite garg-test-tasty
Test.Utils
Test.Utils.Crypto
Test.Utils.Db
Test.Utils.Crypto
Test.Utils.Crypto
Test.Utils.Jobs
Test.Utils.Jobs.Types
Test.Utils.Notifications
...
...
test/Test/API.hs
View file @
8fb583cb
module
Test.API
where
import
Gargantext.Core.Config.Types
(
NotificationsConfig
)
import
Prelude
import
Test.Hspec
import
qualified
Test.API.Authentication
as
Auth
...
...
test/Test/API/Notifications.hs
View file @
8fb583cb
...
...
@@ -76,4 +76,3 @@ tests = sequential $ aroundAll withTestDBAndPort $ do
md
`
shouldBe
`
Just
(
DT
.
NUpdateTree
nodeId
)
mTimeout
`
shouldSatisfy
`
isJust
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