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

Create GitHub Action to Import Database for PR Testing #1685

Closed
palisadoes opened this issue Jan 14, 2024 · 1 comment
Closed

Create GitHub Action to Import Database for PR Testing #1685

palisadoes opened this issue Jan 14, 2024 · 1 comment
Assignees
Labels
bug Something isn't working test Testing application

Comments

@palisadoes
Copy link
Contributor

Describe the bug

  1. Running the command npm run import:sample-data fails
  2. This is due to an update in the DB schema which is not compatible with our sample data
  3. We also don't have the ability to automatically test the command as part of our PR approval process

To Reproduce

Steps to reproduce the behavior:

  1. Run npm run import:sample-data
  2. Failure

Expected behavior

  1. The sample data must be modified to accommodate the new DB schema where the userRegistrationRequired field now replaces the isPublic field. The logic of userRegistrationRequired is opposite of isPublic therefore True will replace False and vice versa for these fields in the data update.
    1. Data importation must succeed without error
  2. A GitHub must be created to import the data as part of the PR YAML file.
    1. https://github.com/PalisadoesFoundation/talawa-api/blob/develop/.github/workflows/pull-request.yml
    2. This must occur after running the test suite and before the code coverage is calculated
    3. The GitHub action pass this stage of the workflow

Actual behavior

  • See above

Screenshots

  • N/A

Additional details

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

@palisadoes palisadoes added the bug Something isn't working label Jan 14, 2024
@github-actions github-actions bot added test Testing application unapproved Unapproved for Pull Request labels Jan 14, 2024
@aialok
Copy link

aialok commented Jan 14, 2024

I would love to work on this issue. As I already work on the above issue in talawa admin.

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

No branches or pull requests

2 participants