Issues & Help问题和帮助¶
Our developer community is vibrant and highly engaged, with extensive experience using Node.js with MongoDB.我们的开发者社区充满活力,参与度很高,拥有在MongoDB中使用Node.js的丰富经验。
Often, the quickest way to get support for general questions is through the MongoDB Community Forums.通常,获得一般问题支持的最快方法是通过MongoDB社区论坛。
Refer to our support channels documentation for more information.有关更多信息,请参阅我们的支持渠道文档。
Bugs / Feature Requests错误/功能请求¶
To report a bug or to request a new feature in the Node.js driver, please open a case in our issue management tool, JIRA:要报告错误或请求Node.js驱动程序中的新功能,请在我们的问题管理工具JIRA中打开一个案例:
Create an account and login创建一个帐户并登录。Navigate to the NODE project.导航到NODE项目。Click Create Issue.单击“创建问题”。Please provide as much information as possible about the issue and the steps to reproduce it.请尽可能多地提供有关该问题的信息以及重现该问题的步骤。
Bug reports in JIRA for the Node.js driver and the Core Server (i.e. SERVER) project are public.JIRA中Node.js驱动程序和核心服务器(即服务器)项目的错误报告是公开的。
If you’ve identified a security vulnerability in a driver or any other MongoDB project, please report it according to the instructions found in the Create a Vulnerability Report.如果您在驱动程序或任何其他MongoDB项目中发现了安全漏洞,请按照创建漏洞报告中的说明进行报告。
Pull Requests拉取请求¶
We are happy to accept contributions to help improve the driver. 我们很高兴接受有助于提高驾驶水平的捐款。We will review user contributions to ensure they meet the standards of the codebase. 我们将审查用户贡献,以确保它们符合代码库的标准。Pull requests must pass the 拉取请求必须通过travis.ci
checks as well as include documentation and tests.travis.ci
检查,并包括文档和测试。
To get started check out the source and work on a branch:要开始,请签出源并使用分支:
git clone https://github.com/mongodb/node-mongodb-native.git
cd node-mongodb-native
npm install
git checkout -b myNewFeature
To run the test suite, you must have a server topology running and provide the URI to the command. 要运行测试套件,必须运行服务器拓扑并向命令提供URI。For example, if you have a single server running at 例如,如果有一台服务器运行在“"mongodb://localhost:27017"
, you can run the following:"mongodb://localhost:27017"
”,您可以运行以下操作:
MONGODB_URI="mongodb://localhost:27017" npm test
Note that, depending on the type of topology that you are running (standalone, replicaset, etc.), different tests will be run.请注意,根据您正在运行的拓扑类型(独立、复制集等),将运行不同的测试。
There are many tools that can help you with setting up different topologies for local testing. 有许多工具可以帮助您为本地测试设置不同的拓扑。Some examples are mtools and mongo-orchestration.例如mtools和mongo-orchestration。