Skip to content

DB volumes persists after bring down demo project. #57

@MohanNarayana

Description

@MohanNarayana

Issue Description

Create a demo and bring it down using docker-compose down. It retains the volumes. The next demo that is created still points to the previous data volumes and gives misleading messages while creating user and shop.

Steps to Reproduce

  1. Create a new demo from scratch using reaction create-project demo demo1. Create a user with username [email protected] and a shop.
  2. Next cd demo1, docker-compose down and check for volumes using docker volume ls, you will find demo1_mongo-db4demo
  3. cd .. and create a new demo using reaction create-project demo demo2. Create the same user with username [email protected], it gives a user exists error from GraphQL. Try creating a different user, it prompts for new shop creation. When you click create shop it gives an Access denied error from GraphQL.

Possible Solution

Two different demos should be working independently as we are currently not imposing any limits on demo. Following dev platform we could limit it to one demo per installation.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions