2021-09-01 05:32:08 +00:00
|
|
|
{
|
|
|
|
|
"name": "appsmith_utils",
|
|
|
|
|
"version": "1.0.0",
|
|
|
|
|
"description": "appsmith utils tool",
|
|
|
|
|
"main": "bin/index.js",
|
2021-11-26 10:10:16 +00:00
|
|
|
"author": "",
|
2021-09-01 05:32:08 +00:00
|
|
|
"license": "Apache-2.0",
|
|
|
|
|
"private": true,
|
|
|
|
|
"repository": {
|
|
|
|
|
"type": "git",
|
|
|
|
|
"url": "https://github.com/appsmithorg/appsmith.git",
|
2021-09-14 13:31:06 +00:00
|
|
|
"directory": "deploy/docker"
|
2021-09-01 05:32:08 +00:00
|
|
|
},
|
|
|
|
|
"dependencies": {
|
2022-11-01 07:27:41 +00:00
|
|
|
"cli-progress": "^3.11.2",
|
2021-12-17 05:09:20 +00:00
|
|
|
"dotenv": "10.0.0",
|
2022-11-01 07:27:41 +00:00
|
|
|
"jest": "^29.1.2",
|
2023-01-13 08:32:32 +00:00
|
|
|
"luxon": "^3.2.1",
|
2022-11-01 07:27:41 +00:00
|
|
|
"minimist": "^1.2.6",
|
fix: Fix replicaset check to not require ClusterMonitor role (#19997)
In the `entrypoint.sh` script, we check if the MongoDB in use, has
replicaSet initiated or not. This is usually done with a `rs.initiate()`
on the cluster.
We need the replicaSet to be enabled on MongoDB, since the backend
server relies on MongoDB `changeStream`s, which is a feature, only
available if replicaSet is enabled.
However, to use the `changeStream` APIs, having the `read` or
`readWrite` role on MongoDB is enough. But the check we do in
`entrypoint.sh`, runs `rs.status()` to see if `replicaSet` is initiated.
This `rs.status()` call, unfortunately, requires the `ClusterMonitor`
role, unlike the `changeStream` API.
To tackle this, we created the `appsmithctl check_replica_set` command.
This command would attempt to use the `changeStream` API, and report
success or failure. But this failed on certain configurations, where
MongoDB was running as a single-node-cluster, on localhost, or a
local/internal network. This was an edge case.
That edge case is solved by this PR. With this, we can use `appsmithctl
check-replica-set` in the `entrypoint.sh` again.
2023-02-07 00:08:37 +00:00
|
|
|
"mongodb": "^4.13.0",
|
|
|
|
|
"mongodb-connection-string-url": "^2.6.0",
|
2022-07-20 05:03:47 +00:00
|
|
|
"nodemailer": "6.7.5",
|
2022-11-01 07:27:41 +00:00
|
|
|
"readline-sync": "1.4.10",
|
|
|
|
|
"shelljs": "0.8.5"
|
2021-09-01 05:32:08 +00:00
|
|
|
},
|
|
|
|
|
"bin": {
|
2021-09-14 13:31:06 +00:00
|
|
|
"appsmithctl": "./bin/index.js"
|
2022-11-01 07:27:41 +00:00
|
|
|
},
|
|
|
|
|
"scripts": {
|
|
|
|
|
"test": "jest"
|
2021-09-01 05:32:08 +00:00
|
|
|
}
|
2022-03-10 04:46:16 +00:00
|
|
|
}
|