Skip to content

Conversation

@dimitriylol
Copy link
Contributor

@dimitriylol dimitriylol commented Dec 6, 2018

There are several changes in this pull request:

  • add error handling in postinstall.js script for verbose error during downloading and installation
  • add MONGOMS_SKIP_MD5_CHECK environment variable for skipping MD5 check with the reference result

FYI: md5 sum has been updated in the MongoDB mirror, so I removed my workaround in MongoBinary-test.js. Even this pull request currently isn't required, I think it's good to have such option for the future.

@AJRdev AJRdev requested review from AJRdev and nodkz December 6, 2018 10:06
@dimitriylol dimitriylol force-pushed the mongodb-installation-option branch from dd67fc8 to a8d3bcc Compare December 6, 2018 10:06
Copy link
Collaborator

@AJRdev AJRdev left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi, thanks you for this PR ! I've done a couple of comments, I hope I've been clear enough :)

@dimitriylol dimitriylol force-pushed the mongodb-installation-option branch 2 times, most recently from 7ca8471 to f2f3508 Compare December 6, 2018 12:39
dimitriylol added a commit to dimitriylol/mongodb-memory-server that referenced this pull request Dec 6, 2018
@dimitriylol dimitriylol force-pushed the mongodb-installation-option branch from daedb1d to 5cbd7cf Compare December 6, 2018 13:28
Copy link
Collaborator

@nodkz nodkz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great job! I'm ready to merge this PR.

But can you make last two small improvements:

  • move const mongoDBArchiveMd5 = await this.download(${downloadUrl}.md5); inside checkMd5 method. It clean ups a little bit the code. And if disabled checking then do not download md5 at all.
  • rename checkMd5 to checkMD5 for better view

@AJRdev any other additions?

@AJRdev
Copy link
Collaborator

AJRdev commented Dec 6, 2018

@nodkz Just a little change request for consistency regarding a recent PR but out of that everything seems good to me :)

For details see typegoose#114 (comment)
and nodkz comment after approving pull request
@nodkz nodkz merged commit a72a2f3 into typegoose:master Dec 7, 2018
@nodkz
Copy link
Collaborator

nodkz commented Dec 7, 2018

Thanks to all for amazing Pull Request! Especially regards to @dimitriylol ;)

@nodkz
Copy link
Collaborator

nodkz commented Dec 7, 2018

🎉 This PR is included in version 2.8.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

@nodkz nodkz added the released Pull Request released | Issue is fixed label Dec 7, 2018
space7dev added a commit to space7dev/Mongo-Memorable-Server that referenced this pull request Oct 3, 2023
…ptions

* fix: add error handling in postinstall

* feat: add MONGOMS_SKIP_MD5_CHECK for skipping md5 check

* refactor: add return type in checkMd5 signature

Response to the comment typegoose/mongodb-memory-server#114 (comment)

* refactor: add checkMD5 parameter to the MongoBinaryDownload constructor

For details see typegoose/mongodb-memory-server#114 (comment)

* refactor: style changes and function renaming

For details see typegoose/mongodb-memory-server#114 (comment)
and nodkz comment after approving pull request
S-Innovator added a commit to S-Innovator/mongo-server that referenced this pull request Feb 8, 2025
…ptions

* fix: add error handling in postinstall

* feat: add MONGOMS_SKIP_MD5_CHECK for skipping md5 check

* refactor: add return type in checkMd5 signature

Response to the comment typegoose/mongodb-memory-server#114 (comment)

* refactor: add checkMD5 parameter to the MongoBinaryDownload constructor

For details see typegoose/mongodb-memory-server#114 (comment)

* refactor: style changes and function renaming

For details see typegoose/mongodb-memory-server#114 (comment)
and nodkz comment after approving pull request
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

released Pull Request released | Issue is fixed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants