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
6fbc118f
Commit
6fbc118f
authored
Sep 14, 2022
by
Alexandre Delanoë
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[FIX] Invitation script
parent
c4fe12d3
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
12 additions
and
8 deletions
+12
-8
CHANGELOG.md
CHANGELOG.md
+1
-0
Main.hs
bin/gargantext-invitations/Main.hs
+9
-7
gargantext.cabal
gargantext.cabal
+1
-1
package.yaml
package.yaml
+1
-0
No files found.
CHANGELOG.md
View file @
6fbc118f
...
...
@@ -5,6 +5,7 @@
*
[
BACK
][
UPGRADE
]
./bin/psql gargantext.ini < devops/postgres/upgrade/0.0.6.2.sql
*
[
BACK
][
ADMIN
]
upgrade script, test ok
*
[
BACK
][
FIX
][
API
]
IsTex
*
[
BACK
][
ADM
]
Invitation script
## Version 0.0.6.1
*
[
BACK
][
FEAT
]
Spacy Server connection for French (and others) languages
...
...
bin/gargantext-invitations/Main.hs
View file @
6fbc118f
...
...
@@ -29,23 +29,25 @@ import Gargantext.Database.Query.Table.Node (getOrMkList)
import
Gargantext.Database.Query.Table.User
(
insertNewUsers
,
)
import
Gargantext.Prelude
import
Gargantext.Prelude.Config
(
GargConfig
(
..
),
readConfig
)
import
Prelude
(
getLine
)
import
Prelude
(
getLine
,
read
)
import
System.Environment
(
getArgs
)
import
Gargantext.Database.Action.User.New
(
newUsers
)
import
Gargantext.Core.Types.Individu
(
User
(
..
))
import
qualified
Gargantext.API.Node.Share
as
Share
main
::
IO
()
main
=
do
params
@
[
iniPath
,
email
]
<-
getArgs
params
@
[
iniPath
,
user
,
node_id
,
email
]
<-
getArgs
_
<-
if
length
params
/=
2
then
panic
"USAGE: ./gargantext-init gargantext.ini student@university.edu"
_
<-
if
length
params
/=
4
then
panic
"USAGE: ./gargantext-init gargantext.ini
username node_id
student@university.edu"
else
pure
()
cfg
<-
readConfig
iniPath
let
createUsers
::
CmdR
GargError
Int64
createUsers
=
newUsers
[
cs
email
]
let
invite
::
CmdR
GargError
Int
invite
=
Share
.
api
(
UserName
$
cs
user
)
(
NodeId
$
(
read
node_id
::
Int
))
(
Share
.
ShareTeamParams
$
cs
email
)
withDevEnv
iniPath
$
\
env
->
do
_
<-
runCmdDev
env
createUsers
_
<-
runCmdDev
env
invite
pure
()
gargantext.cabal
View file @
6fbc118f
...
...
@@ -33,6 +33,7 @@ library
Gargantext.API.Dev
Gargantext.API.HashedResponse
Gargantext.API.Node
Gargantext.API.Node.Share
Gargantext.API.Node.File
Gargantext.API.Ngrams
Gargantext.API.Ngrams.Tools
...
...
@@ -139,7 +140,6 @@ library
Gargantext.API.Node.FrameCalcUpload
Gargantext.API.Node.Get
Gargantext.API.Node.New
Gargantext.API.Node.Share
Gargantext.API.Node.Types
Gargantext.API.Node.Update
Gargantext.API.Public
...
...
package.yaml
View file @
6fbc118f
...
...
@@ -57,6 +57,7 @@ library:
-
Gargantext.API.Dev
-
Gargantext.API.HashedResponse
-
Gargantext.API.Node
-
Gargantext.API.Node.Share
-
Gargantext.API.Node.File
-
Gargantext.API.Ngrams
-
Gargantext.API.Ngrams.Tools
...
...
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