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: Create an equivalent sample database for importation by the setup script #2841

Open
palisadoes opened this issue Jan 10, 2025 · 5 comments
Assignees

Comments

@palisadoes
Copy link
Contributor

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

  1. To make development easier, we need to recreate a sample database for the develop-postgres branch for use by the setup script
  2. This was a feature in the develop branch
  3. You will need to coordinate with the person assigned this issue
    1. NoMongo: Create a .env file setup script #2840
  4. As much as possible, duplicate the following from the sample mongodb database:
    1. Users
    2. Posts
    3. Organizations
    4. Events
      1. The new API doesn't support recurring events yet. Create individual repeated events for 2025.
      2. The monthly, weekly, daily calendar for 2025 must match that of the develop branch implementation.
  5. You will need to add the user information ton INSTALLATION.md

Describe the solution you'd like

  • See above

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

@github-actions github-actions bot added duplicate This issue or pull request already exists unapproved Unapproved for Pull Request labels Jan 10, 2025
@VanshikaSabharwal
Copy link

I want to work on this issue @palisadoes . Please approve this PR PalisadoesFoundation/switchmap-ng#248 if everything is fine. So that i can get this issue and start working.

@swaparup36
Copy link

Looks interesting. Hello @palisadoes, I want to start contribution to this repo with this issue. Can you please assign it to me?

@Cioppolo14 Cioppolo14 removed unapproved Unapproved for Pull Request duplicate This issue or pull request already exists labels Jan 10, 2025
@Aryan4884
Copy link

Aryan4884 commented Jan 13, 2025

@Cioppolo14 I would like to work on this.Please assign.

@swaparup36
Copy link

@palisadoes I am done with the loadSampledata script. Now could you please tell me do I need to use the exact data that is in develop branch and change it accordingly with the schema here? Or I can create some sample data by myself?

@palisadoes
Copy link
Contributor Author

palisadoes commented Jan 14, 2025

Here are some steps:

  1. Look at the test data in the develop branch and create the equivalents in develop-postgres.
  2. Names, addresses, emails, passwords must match as much as possible, especially those in the INSTALLATION.md file of develop
  3. Recurring events are not supported yet in the current branch, so you'll need to create at least 5 years worth of repeated meetings to give the impression of recurrence. (This could be automated after you create the first month of events)

The original data in develop was created manually in the Admin UI after which a database dump was done and added to the repo.

Make sure your script is in Typescript. We'll need to use it in creating as setup script.

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

No branches or pull requests

5 participants