-
-
Notifications
You must be signed in to change notification settings - Fork 1k
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
Mongodb setup bug + tests #2257
Merged
palisadoes
merged 16 commits into
PalisadoesFoundation:develop
from
pranshugupta54:mongodb-setup
Apr 29, 2024
Merged
Changes from 12 commits
Commits
Show all changes
16 commits
Select commit
Hold shift + click to select a range
2acaa0f
Refactor MongoDB.ts to use existingMongoDbUrls variable instead of an…
pranshugupta54 736d916
added tests
pranshugupta54 04a0bf2
Merge branch 'develop' into mongodb-setup
pranshugupta54 73913a5
clear mock after each
pranshugupta54 60d229d
.
pranshugupta54 32813ea
Update schema.graphql
pranshugupta54 4ea7496
Update schema.graphql
pranshugupta54 f7e9452
Update schema.graphql
pranshugupta54 89a7b35
Update schema.graphql
pranshugupta54 6134b5a
Update pre-commit
pranshugupta54 ec16f35
Revert "Update pre-commit"
pranshugupta54 7d51b87
Update pre-commit
pranshugupta54 b890896
comment
pranshugupta54 f743c13
Merge branch 'develop' into mongodb-setup
pranshugupta54 6302fb4
Merge branch 'develop' into mongodb-setup
pranshugupta54 cd9fe28
Merge branch 'develop' into mongodb-setup
pranshugupta54 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
localhost
or port27017
? Will the application break?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If we have already defined then it's going to show us
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
but if another url is set in our env, it won't show that, it'll always show "mongodb://localhost:27017"
the line should be this
default: process.env.MONGO_DB_URL ?? "mongodb://localhost:27017"
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
check the screenshot in previous comment, it's showing different. The port is different from default.
default means - when we have Yes/No type, do you see one of them marked automatically and u press enter?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the screenshot is for a log, this one. The check that you modified is different, this one
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You said it doesn't show from env. That url is from env itself, check the port. It's different port from default
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what? we're talking about the line that Peter commented on, you've hard coded
mongodb://localhost:27017
there, so when that function runs, it'll always showmongodb://localhost:27017
for that prompt.the screenshot you've provided is just for a log link, it will show what's in the
.env
. The prompt you've modified is different, with its default value hard-coded, that's what we mean here.