Skip to content

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
    • Help
    • Submit feedback
    • Contribute to GitLab
  • Sign in
haskell-gargantext
haskell-gargantext
  • Project
    • Project
    • Details
    • Activity
    • Releases
    • Cycle Analytics
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Charts
  • Issues 176
    • Issues 176
    • List
    • Board
    • Labels
    • Milestones
  • Merge Requests 9
    • Merge Requests 9
  • CI / CD
    • CI / CD
    • Pipelines
    • Jobs
    • Schedules
    • Charts
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Members
    • Members
  • Collapse sidebar
  • Activity
  • Graph
  • Charts
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
  • gargantext
  • haskell-gargantexthaskell-gargantext
  • Issues
  • #464

Closed
Open
Opened Apr 09, 2025 by Przemyslaw Kaminski@cgenie
  • Report abuse
  • New issue
Report abuse New issue

Fixes for the `gargantext init` function

The problem is that when a fresh DB starts up, migrations are applied (c.f. docker-compose.yaml), but it is still required to call gargantext init.

We have to differentiate the use cases:

  1. dev/prod instances don't use docker. As such the migrations are still applied by hand. gargantext init is not needed, because, apart from the system user, it also creates test users user1, user2, ...
  2. developers do use docker-compose. They also don't need much the gargantext init functionality because almost always they want those test users.

What I propose is this:

  1. add another migration to docker-compose which will create master and test users
  2. remove gargantext init
  3. add gargantext user create-admin to explicitly create the system user (and not other users)
  4. optionally add gargantext user create to create users with given passwords from command line
Assignee
Assign to
None
Milestone
None
Assign milestone
Time tracking
None
Due date
None
0
Labels
None
Assign labels
  • View project labels
Reference: gargantext/haskell-gargantext#464