Skip to content

need of re-initialization after each change #13

Closed

Description

@ilgooz

Do we need to re apply these lines that not related to starting a long running process after every change (watch) to the source code, or is it enough to do them once.

I'm brainstorming about some refactoring ideas, getting more details on this Q may help to my thinking process. 🛩️

Activity

  1. changed the title [-]need re-initing after each change[/-] [+]need of re-initialization after each change[/+] on Jul 12, 2020
  2. fadeev commented on Jul 12, 2020

    @fadeev
    Contributor

    We need to install dependencies only if something has changed in the imports, like with any other go program.

    Initialization is trickier. Right now we basically nuke all app data on every change, because very often any change to the source of the app makes the state stored in data directory invalid. It may be safer to recreate everything from scratch every time, because I don't think we can safely determine when it's ok to keep the old data.

    This can be mitigated by having a better init config. Perhaps, a YAML file that has sections for cleaning the old data, creating users, using mock data to populate the store.

  3. fadeev commented on Apr 9, 2021

    @fadeev
    Contributor

    Old issue, no longer relevant. Oh, this is before we had config.yml. Good ol' days.

  4. added a commit that references this issue on Jan 5, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions