Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DB volumes persists after bring down demo project. #57

Open
MohanNarayana opened this issue Mar 1, 2022 · 1 comment
Open

DB volumes persists after bring down demo project. #57

MohanNarayana opened this issue Mar 1, 2022 · 1 comment
Labels
bug Something isn't working

Comments

@MohanNarayana
Copy link

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.

@MohanNarayana MohanNarayana added the bug Something isn't working label Mar 1, 2022
@MohanNarayana
Copy link
Author

The issue is not with creating a secondary demo. It is with recreating another demo with the same name after bringing it down. The DB volume will persists even after bringing the demo down and deleting the demo directory. Creating a new demo with the same name will use the previously created DB volume. This behavior is fine but the user should be let know to remove the docker volume if they want a demo from scratch (without old data).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant