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

NoMongo: pnpm option to force overwriting sample data #3264

Closed
palisadoes opened this issue Feb 20, 2025 · 5 comments
Closed

NoMongo: pnpm option to force overwriting sample data #3264

palisadoes opened this issue Feb 20, 2025 · 5 comments
Assignees

Comments

@palisadoes
Copy link
Contributor

palisadoes commented Feb 20, 2025

Is your feature request related to a problem? Please describe.

  • If there is sample data in the database you are prompted to overwrite it

Describe the solution you'd like

To facilitate automated installation we need the following:

  1. We need a command that will automatically overwrite without prompting.
  2. This will require a CLI flag for the src/utilities/loadSampleData.ts script
  3. When complete, this command must install the sample data without error, where NEW_COMMAND is the overwrite option with a suitable name that is not NEW_COMMAND
    docker exec talawa-api-1 /bin/bash -c "npm install -g pnpm && pnpm run NEW_COMMAND && exit"
    

Describe alternatives you've considered

  • N/A

Approach to be followed (optional)

  • See above

Additional context

  • N/A

Potential internship candidates

Please read this if you are planning to apply for a Palisadoes Foundation internship

@palisadoes
Copy link
Contributor Author

@VanshikaSabharwal is working on this to help fix the demo site

@VanshikaSabharwal
Copy link

Please assign

@palisadoes palisadoes removed the unapproved Unapproved for Pull Request label Feb 20, 2025
@gurramkarthiknetha
Copy link

@VanshikaSabharwal is working on this to help fix the demo site

Sure, I'd be happy to help!

@JaiPannu-IITI
Copy link

JaiPannu-IITI commented Feb 21, 2025

@palisadoes #3223

This PR already addresses this issue. (NEW COMMAND = add:sample_data )

Image

It is the same thing we were working on right?

@palisadoes
Copy link
Contributor Author

OK. Closing

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Archived in project
Development

No branches or pull requests

4 participants