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

Improve MongoDB configuration during setup #1605

Closed
palisadoes opened this issue Dec 31, 2023 · 7 comments
Closed

Improve MongoDB configuration during setup #1605

palisadoes opened this issue Dec 31, 2023 · 7 comments
Assignees

Comments

@palisadoes
Copy link
Contributor

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

The person installing Talawa API needs to know the MongoDB URL to use. This requires a manual process.

Describe the solution you'd like

  1. The installation script should detect whether MongoDB is running on localhost and auto-populate the URL if one isn't already configured. The default database name would be talawa-api
  2. This must work for both Docker and non-Docker installation methodologies

Describe alternatives you've considered

  • N/A

Approach to be followed (optional)

  • N/A

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 the unapproved Unapproved for Pull Request label Dec 31, 2023
@pateldivyesh1323
Copy link

I would like to work on this.

@Cioppolo14 Cioppolo14 removed the unapproved Unapproved for Pull Request label Dec 31, 2023
@pateldivyesh1323
Copy link

Hello @Cioppolo14 I already have two issues assigned currently. Sorry I should have deleted the comment after I got assigned to reduce confusion.

@Cioppolo14
Copy link
Contributor

@pateldivyesh1323 Thank you for your honesty! I try to check but missed this.

@Aaditya-G
Copy link

I would like to work on this

@vasujain275
Copy link
Contributor

Hi @Aaditya-G,

I've implemented the Docker installation section. Please note that the validation of the MongoDB URL cannot be performed when the user selects the Docker installation option. In the setup.ts file, you should verify whether the user has opted for Docker installation. If so, you need to hardcode the MongoDB URL as follows: mongodb://localhost:27017/talawa-api, no need to ask user for it. Here is an example code snippet for this:

const { isDockerInstallation } = await inquirer.prompt({
    type: "confirm",
    name: "isDockerInstallation",
    message: "Are you setting up this project using Docker?",
    default: false,
  });

  
  if (isDockerInstallation) {
    const DB_URL = "mongodb://localhost:27017/talawa-api";
    const config = dotenv.parse(fs.readFileSync(".env"));
    
    config.MONGO_DB_URL = DB_URL;
    process.env.MONGO_DB_URL = DB_URL;
    fs.writeFileSync(".env", "");
    for (const key in config) {
      fs.appendFileSync(".env", `${key}=${config[key]}\n`);
    }
    console.log(`Your MongoDB URL is:\n${process.env.MONGO_DB_URL}`);
  }

@vasujain275
Copy link
Contributor

@Aaditya-G are you still working on this? If not, @Cioppolo14 @noman2002 can I work on this as this feature is required for working of Docker Installation properly.

@Aaditya-G
Copy link

Aaditya-G commented Jan 5, 2024 via email

@palisadoes palisadoes assigned vasujain275 and unassigned Aaditya-G Jan 5, 2024
palisadoes pushed a commit that referenced this issue Jan 12, 2024
* refactor: Improved MongoDB configuration during setup

* refactor: Checks for existing url in .env
lakshz pushed a commit to lakshz/talawa-api that referenced this issue Jan 16, 2024
…PalisadoesFoundation#1678)

* refactor: Improved MongoDB configuration during setup

* refactor: Checks for existing url in .env
palisadoes added a commit that referenced this issue Jan 16, 2024
* Replace package vm2 with isolated-vm (#1532)

* Replace package vm2 with isolated-vm

* Removed package isolated-vm

* chore(deps): bump follow-redirects from 1.15.3 to 1.15.4 (#1668)

Bumps [follow-redirects](https://github.com/follow-redirects/follow-redirects) from 1.15.3 to 1.15.4.
- [Release notes](https://github.com/follow-redirects/follow-redirects/releases)
- [Commits](follow-redirects/follow-redirects@v1.15.3...v1.15.4)

---
updated-dependencies:
- dependency-name: follow-redirects
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* base branch checking job in pull_request.yml

* Convert Private Orgs to `userRegistrationRequired` Orgs (#1643)

* updated node version

* fix falling test

* removed private org

* fix redis port

* fix failing test case

* Revert "restored countline.py functionality to our github action flow (#1568)" (#1572)

This reverts commit 195d148.

* restored countline.py functionality to our github action flow (#1573)

* setup script will now ask for superAdmin email

* asked changes

* Update setup.ts

* new commit

* new commit

* new commit

* new commit

* new commit

* new commit

* new commit

* new commit

* new commit

* new commit

* new commit

* Added script to generate table of content (#1587)

* Added script to generate table of content

* git hook to generate toc when markdown files are changed.

* script for toc

* Revert "Added script to generate table of content (#1587)" (#1592)

This reverts commit 74a9f67.

* table of content script (#1600)

* Update INSTALLATION.md

* chore(deps): bump @types/i18n from 0.13.8 to 0.13.10 (#1616)

Bumps [@types/i18n](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/i18n) from 0.13.8 to 0.13.10.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/i18n)

---
updated-dependencies:
- dependency-name: "@types/i18n"
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* updated express-rate-limit package (#1621)

* fix: Removed depricated xss-clean package (#1536)

Signed-off-by: Akhilender <akhilenderb9@gmail.com>

* updated node version

* fix falling test

* fix

* Added script to generate table of content (#1587)

* Added script to generate table of content

* git hook to generate toc when markdown files are changed.

* script for toc

* fix: Removed depricated xss-clean package (#1536)

Signed-off-by: Akhilender <akhilenderb9@gmail.com>

* Added script to generate table of content (#1587)

* Added script to generate table of content

* git hook to generate toc when markdown files are changed.

* script for toc

* table of content script (#1600)

* Update INSTALLATION.md

* chore(deps): bump @types/i18n from 0.13.8 to 0.13.10 (#1616)

Bumps [@types/i18n](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/i18n) from 0.13.8 to 0.13.10.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/i18n)

---
updated-dependencies:
- dependency-name: "@types/i18n"
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* fix: Removed depricated xss-clean package (#1536)

Signed-off-by: Akhilender <akhilenderb9@gmail.com>

* updated node version

* removed comments

* fix

* fix

* fix

* fix

* fix

* fix

* fix

* added userRegistrationRequired field in schema

* fix redis port

* fix failing test

* Create weekly event recurring instance (#1602)

* Create weekly event recurring instance

* test for weekly recurring events

* Weekly Recurring Events bug fixes

* Revert "Create weekly event recurring instance (#1602)" (#1649)

This reverts commit e7c043d.

* Added Github Action to check number of files submitted during PR. (#1596)

* Added script in workflows to check no of files submitted during PR.

* Update pull-request.yml to run the script added.

* Update pull-request.yml

* Changed logic of script

* Optimized pull-request.yml according to script

* Modified script to add default value to max_files in argsparse

* Added context to the job step in PR.yml for ease

* Added flag in argparser for better optimization

* Updated pr.yml file to be more concise

* Lint only updated files with stricter linting (#1635)

* Replace package vm2 with isolated-vm (#1532)

* Replace package vm2 with isolated-vm

* Removed package isolated-vm

* init: lint-staged for linting staged files only

* feat: convert warn to error in eslintrc

* fix: failing tests

* fix: package.json

* fix: package-lock

---------

Co-authored-by: Sarthak Patel <76515568+Community-Programmer@users.noreply.github.com>

* Revert "Lint only updated files with stricter linting (#1635)" (#1652)

This reverts commit 269b8bd.

* Create weekly event recurring instance (#1602)

* Create weekly event recurring instance

* test for weekly recurring events

* Weekly Recurring Events bug fixes

* Revert "Create weekly event recurring instance (#1602)" (#1649)

This reverts commit e7c043d.

* Lint only updated files with stricter linting (#1635)

* Replace package vm2 with isolated-vm (#1532)

* Replace package vm2 with isolated-vm

* Removed package isolated-vm

* init: lint-staged for linting staged files only

* feat: convert warn to error in eslintrc

* fix: failing tests

* fix: package.json

* fix: package-lock

---------

Co-authored-by: Sarthak Patel <76515568+Community-Programmer@users.noreply.github.com>

* Revert "Lint only updated files with stricter linting (#1635)" (#1652)

This reverts commit 269b8bd.

* Create weekly event recurring instance (#1602)

* Create weekly event recurring instance

* test for weekly recurring events

* Weekly Recurring Events bug fixes

* Revert "Create weekly event recurring instance (#1602)" (#1649)

This reverts commit e7c043d.

* Lint only updated files with stricter linting (#1635)

* Replace package vm2 with isolated-vm (#1532)

* Replace package vm2 with isolated-vm

* Removed package isolated-vm

* init: lint-staged for linting staged files only

* feat: convert warn to error in eslintrc

* fix: failing tests

* fix: package.json

* fix: package-lock

---------

Co-authored-by: Sarthak Patel <76515568+Community-Programmer@users.noreply.github.com>

* Revert "Lint only updated files with stricter linting (#1635)" (#1652)

This reverts commit 269b8bd.

* Create weekly event recurring instance (#1602)

* Create weekly event recurring instance

* test for weekly recurring events

* Weekly Recurring Events bug fixes

* Revert "Create weekly event recurring instance (#1602)" (#1649)

This reverts commit e7c043d.

* Lint only updated files with stricter linting (#1635)

* Replace package vm2 with isolated-vm (#1532)

* Replace package vm2 with isolated-vm

* Removed package isolated-vm

* init: lint-staged for linting staged files only

* feat: convert warn to error in eslintrc

* fix: failing tests

* fix: package.json

* fix: package-lock

---------

Co-authored-by: Sarthak Patel <76515568+Community-Programmer@users.noreply.github.com>

* Revert "Lint only updated files with stricter linting (#1635)" (#1652)

This reverts commit 269b8bd.

* updated node version

* fix falling test

* removed private org

* fix redis port

* Revert "restored countline.py functionality to our github action flow (#1568)" (#1572)

This reverts commit 195d148.

* restored countline.py functionality to our github action flow (#1573)

* setup script will now ask for superAdmin email

* asked changes

* Update setup.ts

* new commit

* new commit

* new commit

* new commit

* new commit

* new commit

* new commit

* new commit

* new commit

* new commit

* new commit

* Added script to generate table of content (#1587)

* Added script to generate table of content

* git hook to generate toc when markdown files are changed.

* script for toc

* Revert "Added script to generate table of content (#1587)" (#1592)

This reverts commit 74a9f67.

* table of content script (#1600)

* Update INSTALLATION.md

* chore(deps): bump @types/i18n from 0.13.8 to 0.13.10 (#1616)

Bumps [@types/i18n](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/i18n) from 0.13.8 to 0.13.10.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/i18n)

---
updated-dependencies:
- dependency-name: "@types/i18n"
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* fix: Removed depricated xss-clean package (#1536)

Signed-off-by: Akhilender <akhilenderb9@gmail.com>

* updated node version

* fix falling test

* fix

* Added script to generate table of content (#1587)

* Added script to generate table of content

* git hook to generate toc when markdown files are changed.

* script for toc

* fix: Removed depricated xss-clean package (#1536)

Signed-off-by: Akhilender <akhilenderb9@gmail.com>

* Added script to generate table of content (#1587)

* Added script to generate table of content

* git hook to generate toc when markdown files are changed.

* script for toc

* table of content script (#1600)

* Update INSTALLATION.md

* chore(deps): bump @types/i18n from 0.13.8 to 0.13.10 (#1616)

Bumps [@types/i18n](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/i18n) from 0.13.8 to 0.13.10.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/i18n)

---
updated-dependencies:
- dependency-name: "@types/i18n"
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* fix: Removed depricated xss-clean package (#1536)

Signed-off-by: Akhilender <akhilenderb9@gmail.com>

* updated node version

* fix

* fix

* fix

* fix

* fix

* fix

* added userRegistrationRequired field in schema

* fix redis port

* Create weekly event recurring instance (#1602)

* Create weekly event recurring instance

* test for weekly recurring events

* Weekly Recurring Events bug fixes

* Revert "Create weekly event recurring instance (#1602)" (#1649)

This reverts commit e7c043d.

* Lint only updated files with stricter linting (#1635)

* Replace package vm2 with isolated-vm (#1532)

* Replace package vm2 with isolated-vm

* Removed package isolated-vm

* init: lint-staged for linting staged files only

* feat: convert warn to error in eslintrc

* fix: failing tests

* fix: package.json

* fix: package-lock

---------

Co-authored-by: Sarthak Patel <76515568+Community-Programmer@users.noreply.github.com>

* Revert "Lint only updated files with stricter linting (#1635)" (#1652)

This reverts commit 269b8bd.

* updated node version

* fix falling test

* removed private org

* fix redis port

* Revert "restored countline.py functionality to our github action flow (#1568)" (#1572)

This reverts commit 195d148.

* restored countline.py functionality to our github action flow (#1573)

* setup script will now ask for superAdmin email

* asked changes

* Update setup.ts

* new commit

* new commit

* new commit

* new commit

* new commit

* new commit

* new commit

* new commit

* new commit

* new commit

* new commit

* Added script to generate table of content (#1587)

* Added script to generate table of content

* git hook to generate toc when markdown files are changed.

* script for toc

* Revert "Added script to generate table of content (#1587)" (#1592)

This reverts commit 74a9f67.

* table of content script (#1600)

* Update INSTALLATION.md

* chore(deps): bump @types/i18n from 0.13.8 to 0.13.10 (#1616)

Bumps [@types/i18n](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/i18n) from 0.13.8 to 0.13.10.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/i18n)

---
updated-dependencies:
- dependency-name: "@types/i18n"
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* fix: Removed depricated xss-clean package (#1536)

Signed-off-by: Akhilender <akhilenderb9@gmail.com>

* updated node version

* fix falling test

* fix

* Added script to generate table of content (#1587)

* Added script to generate table of content

* git hook to generate toc when markdown files are changed.

* script for toc

* fix: Removed depricated xss-clean package (#1536)

Signed-off-by: Akhilender <akhilenderb9@gmail.com>

* Added script to generate table of content (#1587)

* Added script to generate table of content

* git hook to generate toc when markdown files are changed.

* script for toc

* table of content script (#1600)

* Update INSTALLATION.md

* chore(deps): bump @types/i18n from 0.13.8 to 0.13.10 (#1616)

Bumps [@types/i18n](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/i18n) from 0.13.8 to 0.13.10.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/i18n)

---
updated-dependencies:
- dependency-name: "@types/i18n"
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* fix: Removed depricated xss-clean package (#1536)

Signed-off-by: Akhilender <akhilenderb9@gmail.com>

* updated node version

* removed comments

* fix

* fix

* fix

* fix

* fix

* fix

* added userRegistrationRequired field in schema

* fix redis port

* updated node version

* fix falling test

* removed private org

* fix redis port

* Revert "restored countline.py functionality to our github action flow (#1568)" (#1572)

This reverts commit 195d148.

* restored countline.py functionality to our github action flow (#1573)

* setup script will now ask for superAdmin email

* asked changes

* Update setup.ts

* new commit

* new commit

* new commit

* new commit

* new commit

* new commit

* new commit

* new commit

* new commit

* new commit

* new commit

* Added script to generate table of content (#1587)

* Added script to generate table of content

* git hook to generate toc when markdown files are changed.

* script for toc

* Revert "Added script to generate table of content (#1587)" (#1592)

This reverts commit 74a9f67.

* table of content script (#1600)

* Update INSTALLATION.md

* chore(deps): bump @types/i18n from 0.13.8 to 0.13.10 (#1616)

Bumps [@types/i18n](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/i18n) from 0.13.8 to 0.13.10.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/i18n)

---
updated-dependencies:
- dependency-name: "@types/i18n"
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* fix: Removed depricated xss-clean package (#1536)

Signed-off-by: Akhilender <akhilenderb9@gmail.com>

* updated node version

* fix falling test

* fix

* Added script to generate table of content (#1587)

* Added script to generate table of content

* git hook to generate toc when markdown files are changed.

* script for toc

* fix: Removed depricated xss-clean package (#1536)

Signed-off-by: Akhilender <akhilenderb9@gmail.com>

* Added script to generate table of content (#1587)

* Added script to generate table of content

* git hook to generate toc when markdown files are changed.

* script for toc

* table of content script (#1600)

* Update INSTALLATION.md

* chore(deps): bump @types/i18n from 0.13.8 to 0.13.10 (#1616)

Bumps [@types/i18n](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/i18n) from 0.13.8 to 0.13.10.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/i18n)

---
updated-dependencies:
- dependency-name: "@types/i18n"
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* fix: Removed depricated xss-clean package (#1536)

Signed-off-by: Akhilender <akhilenderb9@gmail.com>

* updated node version

* fix

* fix

* fix

* fix

* fix

* fix

* added userRegistrationRequired field in schema

* fix redis port

* fix version

* fix script

* fix

* fix readme

* fix failing test

* made the requested changes

* fix test

* fix version

fix script

fix

Create weekly event recurring instance (#1602)

* Create weekly event recurring instance

* test for weekly recurring events

* Weekly Recurring Events bug fixes

Revert "Create weekly event recurring instance (#1602)" (#1649)

This reverts commit e7c043d.

Lint only updated files with stricter linting (#1635)

* Replace package vm2 with isolated-vm (#1532)

* Replace package vm2 with isolated-vm

* Removed package isolated-vm

* init: lint-staged for linting staged files only

* feat: convert warn to error in eslintrc

* fix: failing tests

* fix: package.json

* fix: package-lock

---------

Co-authored-by: Sarthak Patel <76515568+Community-Programmer@users.noreply.github.com>

Revert "Lint only updated files with stricter linting (#1635)" (#1652)

This reverts commit 269b8bd.

fix readme

fix failing test

made the requested changes

fix test

* made the requested changes

* added test

* fix failing test'

---------

Signed-off-by: dependabot[bot] <support@github.com>
Signed-off-by: Akhilender <akhilenderb9@gmail.com>
Co-authored-by: Peter Harrison <16875803+palisadoes@users.noreply.github.com>
Co-authored-by: Aditya Rai <118007662+AdityaRaimec22@users.noreply.github.com>
Co-authored-by: Balveer Singh Rao <balveer.singhrao.eee21@itbhu.ac.in>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Akhilender Bongirwar <112749383+akhilender-bongirwar@users.noreply.github.com>
Co-authored-by: Sarthak Patel <76515568+Community-Programmer@users.noreply.github.com>
Co-authored-by: Anubhav Banerjee <76914348+Anubhav-2003@users.noreply.github.com>
Co-authored-by: IntelloManiac <namit.bhut@gmail.com>

* Github Action to Deploy Talawa-API to GoDaddy VPS (#1491)

* Added deploy.yml

* Added action to run when push on deploy branch too

* refactor: changed push to all branches

* test: ec2 ci/cd pipeline test1

* test: ec2 ci/cd pipeline test2

* refactor: Added Port to deploy.yml

* test: ec2 ci/cd pipeline test3

* test: ec2 ci/cd pipeline test4

* test: ec2 ci/cd pipeline test5

* refactor: typo in cd command

* refactor: added command to delete repo after docker compose

* refactor: added sudo to required commands

* refactor: Simplifed the script in deploy.yml

* refactor: removed timeout issue

* refactor: Optimized the Build process of Docker Compose

* refactor : Added Password field to Action

* refactor: removed sudo from commands

* refactor : removed the password field as it was not needed

* refactor: Added main branch for on push in github-action

* refactor: always run code from develop

* refactor: Added API_DEMO Suffix to env variables and testing for talawa-api user

* refactor: removed the triger for push on deployement branch

* Added MongoDB Reset Script

* refactor: Fixed Bug in Setup.ts related MongoDB url env variable

* Added SSL Certs renew script

* docs: Added docs to setup cloud instance for future refrence

* refactor: import sample data after dropping the database in reset_mongo.sh

* refactor: Changed File Structure as needed

* fixed conflict in setup.ts

* reverted all changes in setup.ts

* refactor: Added detailed comments in scripts

* refactor: removed perm check from each script as dedicateted script checks for it

* refactor: fixed cert_renew.sh

* docs: Completed the Cloud API Demo Readme

* docs: added solution to cors error

* refactor: removed deployment branch from deploy.yml

* Test file for createPlugin.ts (#1646)

* Improved code coverage

* Revert "Improved code coverage"

This reverts commit 1ac5f89.

* Tests for createPlugin.ts file

* Auto Detect MongoDB URL during setup, Fixes #1605 (#1678)

* refactor: Improved MongoDB configuration during setup

* refactor: Checks for existing url in .env

* Feature: Audit trail fields in Schema (#1542)

* fixed failing tests for model changes

* Event, EventProject, File, Feedback model updated

* Update model and updatedBy resolver for organization

* Add resolvers for Post, Task, Event, EventProject, Organization

* replace creator with createdBy

* fix failing tests

* fix failing tests

* removed updatedBy field from schema

* replaced createdBy with creatorId

* creatorId in database field and creator in graphql schema

* fixed non-nullable fields mismatch in graphql schema and database

* creatorId required: true in models

* fix failing tests

* fix failing deleteAdvertisementById test

* creator as nullable, timestamps non-nullable, visibleInSearch non-nullable

* creatorId required in database schema

* changes in graphql types

* endDate of event as non-nullable

* removed isPublic from Organization

---------

Co-authored-by: Lakshya Satpal <lakshysatpal372@gmail.com>

* Update .gitignore

* Update .gitignore

* Update .gitignore

* Update push.yml

* Update documentation

* Update push.yml

* Update documentation

* Update push.yml

* Update documentation

* Feature Request: Add update Advertisement feature (#1575)

* add : adding mutations, inputs and resolvers for editing advertisements

* add: test for update advertisement

* fix : consolidate input and update tests

* fix test: getAdvertisement

* fix: input name

* fix: variable name, add : advertisement helper

* fix: scalars, validation, test

* fix : scalars and tests

* fix: type field of Advertisement

* fix: resolver, add: tests

* merge fix

* fix: update payload and tests

* fix :tests

* fix: translate test case error

* fix: translate test case error

* fix: startDate test case failure

* add : role based auth

* merge

* fix: tests

* fix: role based auth && tests

* fix: downgraded to nanoid@3.3.7 (#1684)

- this is to fix `import:sample-data` script

* fix: Removed `organizationUserBelongsTo` field (#1683)

- Removed all organizationUserBelongsTo field from User Collection.
- As it is not being used in other applications except in MemberDetail.tsx in talawa admin where it is
  not being modified.

Signed-off-by: Akhilender <akhilenderb9@gmail.com>

* Renamed isPublic to userRegistrationRequired in sample-data and added import-sample-data generator github actions (#1686)

* fix: removes all unused containers and images after deploy.yaml workflow (#1687)

* Lint only updated files stricter linting and update the PR workflow (#1677)

* Replace package vm2 with isolated-vm (#1532)

* Replace package vm2 with isolated-vm

* Removed package isolated-vm

* init: lint-staged for linting staged files only

* feat: convert warn to error in eslintrc

* fix: failing tests

* fix: package.json

* fix: package-lock

* chore(deps): bump follow-redirects from 1.15.3 to 1.15.4 (#1668)

Bumps [follow-redirects](https://github.com/follow-redirects/follow-redirects) from 1.15.3 to 1.15.4.
- [Release notes](https://github.com/follow-redirects/follow-redirects/releases)
- [Commits](follow-redirects/follow-redirects@v1.15.3...v1.15.4)

---
updated-dependencies:
- dependency-name: follow-redirects
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* feat: workflow job runs for changed files in the pushed commit only

* fix: resolve conflict with upstream/develop

* fix:package-lock

* fix: attemp#2 merge conflict

* fix: merge conflict #3

* fix: npm script instead of npx, filter git diff command

* fix: package.json conflict

* fix: remove vite

* resolve merge conflict

* attempt #2 fix conflict

* update package-lock

* update package-lock

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: Sarthak Patel <76515568+Community-Programmer@users.noreply.github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* chore(deps): bump rimraf from 3.0.2 to 5.0.5 (#1688)

Bumps [rimraf](https://github.com/isaacs/rimraf) from 3.0.2 to 5.0.5.
- [Changelog](https://github.com/isaacs/rimraf/blob/main/CHANGELOG.md)
- [Commits](isaacs/rimraf@v3.0.2...v5.0.5)

---
updated-dependencies:
- dependency-name: rimraf
  dependency-type: direct:development
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* chore(deps): bump @types/shortid from 0.0.29 to 0.0.32 (#1692)

Bumps [@types/shortid](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/shortid) from 0.0.29 to 0.0.32.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/shortid)

---
updated-dependencies:
- dependency-name: "@types/shortid"
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* updated pull_request.yml

* updated pull_request.yml

* removed success message step

---------

Signed-off-by: dependabot[bot] <support@github.com>
Signed-off-by: Akhilender <akhilenderb9@gmail.com>
Co-authored-by: Sarthak Patel <76515568+Community-Programmer@users.noreply.github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: ANKIT VARSHNEY <132201033+AVtheking@users.noreply.github.com>
Co-authored-by: Peter Harrison <16875803+palisadoes@users.noreply.github.com>
Co-authored-by: Aditya Rai <118007662+AdityaRaimec22@users.noreply.github.com>
Co-authored-by: Balveer Singh Rao <balveer.singhrao.eee21@itbhu.ac.in>
Co-authored-by: Akhilender Bongirwar <112749383+akhilender-bongirwar@users.noreply.github.com>
Co-authored-by: Anubhav Banerjee <76914348+Anubhav-2003@users.noreply.github.com>
Co-authored-by: IntelloManiac <namit.bhut@gmail.com>
Co-authored-by: Vasu Jain <vasujain275@gmail.com>
Co-authored-by: Priyanshu Bartwal <110045644+git-init-priyanshu@users.noreply.github.com>
Co-authored-by: Lakshya Satpal <lakshysatpal372@gmail.com>
Co-authored-by: TASNEEM KOUSHAR <imatasneemkoushar@gmail.com>
Co-authored-by: Vaishali Thakur <100770875+Vaishali054@users.noreply.github.com>
Co-authored-by: Chaitanya Shahare <shaharechaitanya3@gmail.com>
Co-authored-by: Alok Gupta <alokgupta1560@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants