Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
Hallo.gent
Hallo.gent
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 12
    • Issues 12
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • Merge Requests 0
    • Merge Requests 0
  • CI / CD
    • CI / CD
    • Pipelines
    • Jobs
    • Schedules
  • Operations
    • Operations
    • Environments
  • Analytics
    • Analytics
    • CI / CD
    • Repository
    • Value Stream
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Members
    • Members
  • Collapse sidebar
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
  • Indienet
  • Hallo.gentHallo.gent
  • Issues
  • #139

Closed
Open
Opened Apr 26, 2018 by Aral Balkan@aralOwner
  • Report abuse
Report abuse

Refactor account code creation/population to allow codes to be created independently of the deployment

In the deployment environment, it is not possible (due to our choice of an in-process, single-connection database, LevelDB), to run the current account generation script while the app itself is running.

It is also more flexible to separate the app and the account code creation so that the account code creation script can exist independently.

How it should work

  1. On any machine, someone runs the account code script and generates the codes, which are saved to a JSON file in a directory with an index suffix: e.g., codes-0.json. Successive runs of the script on the same machine cause the counter to increase. Old codes are not deleted. (e.g., codes-1.json, codes-2.json, etc.)

  2. The codes directory is copied to the app (e.g., to ~/.hallo.gent/codes)

  3. On startup, the app loads in all the files in that directory and checks to see if there are any new files that are not in its database. If there are, it populates the database with the new codes and then continues the rest of the startup process.

Edited Apr 26, 2018 by Aral Balkan
Assignee
Assign to
None
Milestone
None
Assign milestone
Time tracking
None
Due date
None
1
Labels
Defer
Assign labels
  • View project labels
Reference: indienet/hallo-gent#139

Like this? Fund us! Your patronage helps keep us independent and going.