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
195
Issues
195
List
Board
Labels
Milestones
Merge Requests
12
Merge Requests
12
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
e93236e8
Commit
e93236e8
authored
Aug 31, 2020
by
Alexandre Delanoë
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'dev-doc-annotation-issue' into dev-textflow
parents
edaf2b40
cc55c48b
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
27 additions
and
8 deletions
+27
-8
Main.hs
bin/gargantext-cbor2json/Main.hs
+8
-0
package.yaml
package.yaml
+17
-0
Settings.hs
src/Gargantext/API/Admin/Settings.hs
+2
-2
Search.hs
src/Gargantext/Database/Action/Search.hs
+0
-6
No files found.
bin/gargantext-cbor2json/Main.hs
0 → 100644
View file @
e93236e8
import
Prelude
(
IO
,
id
,
(
.
))
import
Codec.Serialise
(
deserialise
)
import
Data.Aeson
(
encode
)
import
qualified
Data.ByteString.Lazy
as
L
import
Gargantext.API.Ngrams
(
NgramsRepo
)
main
::
IO
()
main
=
L
.
interact
(
encode
.
(
id
::
NgramsRepo
->
NgramsRepo
)
.
deserialise
)
package.yaml
View file @
e93236e8
...
...
@@ -41,6 +41,7 @@ library:
-
Gargantext.API.HashedResponse
-
Gargantext.API.Node
-
Gargantext.API.Node.File
-
Gargantext.API.Ngrams
-
Gargantext.API.Admin.Settings
-
Gargantext.API.Prelude
-
Gargantext.Core
...
...
@@ -377,6 +378,22 @@ executables:
-
gargantext
-
base
gargantext-cbor2json
:
main
:
Main.hs
source-dirs
:
bin/gargantext-cbor2json
ghc-options
:
-
-threaded
-
-rtsopts
-
-with-rtsopts=-N
-
-O2
-
-Wmissing-signatures
dependencies
:
-
gargantext
-
base
-
bytestring
-
aeson
-
serialise
tests
:
garg-test
:
...
...
src/Gargantext/API/Admin/Settings.hs
View file @
e93236e8
...
...
@@ -180,13 +180,13 @@ repoDir :: FilePath
repoDir
=
"repos"
repoSnapshot
::
FilePath
repoSnapshot
=
repoDir
<>
"/repo.
json
"
repoSnapshot
=
repoDir
<>
"/repo.
cbor
"
-- | TODO add hard coded file in Settings
-- This assumes we own the lock on repoSnapshot.
repoSaverAction
::
Serialise
a
=>
a
->
IO
()
repoSaverAction
a
=
do
withTempFile
"repos"
"tmp-repo.
json
"
$
\
fp
h
->
do
withTempFile
"repos"
"tmp-repo.
cbor
"
$
\
fp
h
->
do
printDebug
"repoSaverAction"
fp
L
.
hPut
h
$
serialise
a
hClose
h
...
...
src/Gargantext/Database/Action/Search.hs
View file @
e93236e8
...
...
@@ -152,12 +152,6 @@ selectGroup cId aId q = proc () -> do
returnA
-<
FacetPaired
a
b
c
d
queryContactViaDoc
::
O
.
Query
(
NodeSearchRead
,
(
NodeNodeReadNull
,
(
NodeNodeReadNull
...
...
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