From eb2ce0f8839d76e63e44112c92e87c22c31ce002 Mon Sep 17 00:00:00 2001 From: Amir Mofakhar Date: Mon, 18 Nov 2024 09:29:14 +0000 Subject: [PATCH 1/5] added new arg for selecting replication method to sync tables --- dev-project/docker-compose.yml | 1 + dev-project/mongo/create-pipelinewise-user.sh | 2 +- pipelinewise/cli/__init__.py | 2 ++ pipelinewise/cli/pipelinewise.py | 16 ++++++---- tests/units/cli/cli_args.py | 4 ++- tests/units/cli/test_cli.py | 30 +++++++++++++++++++ 6 files changed, 47 insertions(+), 8 deletions(-) diff --git a/dev-project/docker-compose.yml b/dev-project/docker-compose.yml index 6803f05a3..b958f2e2d 100644 --- a/dev-project/docker-compose.yml +++ b/dev-project/docker-compose.yml @@ -121,6 +121,7 @@ services: --tlsMode requireTLS --tlsAllowConnectionsWithoutCertificates --tlsCertificateKeyFile /etc/ssl/mongodb.pem + --tlsAllowInvalidHostnames --tlsCAFile /etc/ssl/rootCA.pem --quiet networks: diff --git a/dev-project/mongo/create-pipelinewise-user.sh b/dev-project/mongo/create-pipelinewise-user.sh index ae2fc477b..ac3307721 100755 --- a/dev-project/mongo/create-pipelinewise-user.sh +++ b/dev-project/mongo/create-pipelinewise-user.sh @@ -1,6 +1,6 @@ echo 'CREATE MONGODB PIPELINEWISE USER' -mongo --tls --tlsAllowInvalidCertificates -u $MONGO_INITDB_ROOT_USERNAME -p $MONGO_INITDB_ROOT_PASSWORD --authenticationDatabase admin admin < Date: Mon, 18 Nov 2024 09:37:51 +0000 Subject: [PATCH 2/5] update document --- docs/user_guide/resync.rst | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/docs/user_guide/resync.rst b/docs/user_guide/resync.rst index 5ad86aee1..72be56b9d 100644 --- a/docs/user_guide/resync.rst +++ b/docs/user_guide/resync.rst @@ -56,7 +56,12 @@ add the ``--tables`` argument: table_mb: +.. attention:: + + There is an option to chose tables for re-sync which has a specific + replication method by ``--replication_method_only `` + $ pipelinewise sync_tables --target --tap --replication_method_only log_based From 69faef75be033e3edcf544bf713ef7f96c03fb0d Mon Sep 17 00:00:00 2001 From: Amir Mofakhar Date: Mon, 18 Nov 2024 09:57:43 +0000 Subject: [PATCH 3/5] fix for publish_docs.sh --- scripts/publish_docs.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/publish_docs.sh b/scripts/publish_docs.sh index b51d3bb04..aa58025bd 100755 --- a/scripts/publish_docs.sh +++ b/scripts/publish_docs.sh @@ -33,7 +33,7 @@ if [ -z "$GH_TOKEN" ]; then fi # Install dependencies in a virtual env -python3.8 -m venv ~/venv-doc +python3 -m venv ~/venv-doc . ~/venv-doc/bin/activate pip install --upgrade pip pip install sphinx sphinx-rtd-theme From d32bd1ff38d75e65e3b7dc9811eff87777523f0d Mon Sep 17 00:00:00 2001 From: Amir Mofakhar Date: Mon, 18 Nov 2024 11:11:39 +0000 Subject: [PATCH 4/5] fix doc --- docs/user_guide/resync.rst | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/docs/user_guide/resync.rst b/docs/user_guide/resync.rst index 72be56b9d..e4935bdff 100644 --- a/docs/user_guide/resync.rst +++ b/docs/user_guide/resync.rst @@ -58,8 +58,7 @@ add the ``--tables`` argument: .. attention:: - There is an option to chose tables for re-sync which has a specific - replication method by ``--replication_method_only `` + There is an option to chose tables for re-sync which has a specific replication method by ``--replication_method_only `` $ pipelinewise sync_tables --target --tap --replication_method_only log_based From 9b3800d1e40f0643767eddf96c95c9779834d762 Mon Sep 17 00:00:00 2001 From: Amir Mofakhar Date: Mon, 18 Nov 2024 11:55:22 +0000 Subject: [PATCH 5/5] fix doc --- docs/user_guide/resync.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/user_guide/resync.rst b/docs/user_guide/resync.rst index e4935bdff..3a854f4f3 100644 --- a/docs/user_guide/resync.rst +++ b/docs/user_guide/resync.rst @@ -58,7 +58,7 @@ add the ``--tables`` argument: .. attention:: - There is an option to chose tables for re-sync which has a specific replication method by ``--replication_method_only `` + There is an option to chose tables for re-sync which has a specific replication method by ``--replication_method_only `` $ pipelinewise sync_tables --target --tap --replication_method_only log_based