Skip to content

Commit 4deb0dd

Browse files
authored
DOCSP-19316: change source constants to be more readable (#62)
* DOCSP-19316: change source constants to be more readable * name changes * CC renaming suggestions * use source constants on high traffic pgs * merge conflicts left an old constant behind-- fixed * change constants to short
1 parent 3c9c0d8 commit 4deb0dd

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

44 files changed

+210
-210
lines changed

snooty.toml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@ intersphinx = ["https://www.mongodb.com/docs/manual/objects.inv"]
44
toc_landing_pages = ["/introduction", "/tutorials", "/sink-connector", "/source-connector", "/sink-connector/configuration-properties", "/source-connector/configuration-properties", "/sink-connector/fundamentals", "/source-connector/fundamentals", "/source-connector/usage-examples", "/security-and-authentication", "/troubleshooting"]
55

66
[constants]
7-
mkc = "MongoDB Kafka Connector"
7+
connector = "MongoDB Kafka Connector"
88
connector-long = "MongoDB Connector for Apache Kafka"
9-
ak = "Apache Kafka"
10-
kc = "Kafka Connect"
11-
avro = "Apache Avro"
12-
avro-short = "Avro"
13-
kafka-connect = "Confluent Kafka Connect"
9+
kafka = "Apache Kafka"
10+
kafka-connect = "Kafka Connect"
11+
kafka-connect-long = "Confluent Kafka Connect"
12+
avro-long = "Apache Avro"
13+
avro = "Avro"
1414
connector_version="1.8"
1515
connector_patch_version="1"
1616
connector_driver_version="4.5"

source/compatibility.txt

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -26,27 +26,27 @@ MongoDB v4.0 or later.
2626

2727
.. note::
2828

29-
We recommend that you only use the {+mkc+} with an official version
29+
We recommend that you only use the {+connector+} with an official version
3030
of the MongoDB server. We cannot guarantee it functions correctly
3131
with any other version.
3232

3333
Kafka Compatibility
3434
-------------------
3535

36-
The {+mkc+} requires Kafka Connect v2.1.0 or later. It's
37-
tested against Apache Kafka v2.3 and later. You can use the Kafka
38-
Connect service with several Apache Kafka compatible platforms including
39-
the following:
36+
The {+connector+} requires {+kafka-connect-long+} v2.1.0 or later. It's
37+
tested against {+kafka+} v2.3 and later. You can use the
38+
{+kafka-connect+} service with several {+kafka+} compatible platforms
39+
including the following:
4040

4141
- Confluent Platform v5.3 or later
4242
- Microsoft Azure Event Hubs
4343
- Red Hat AMQ Streams
4444

45-
The {+mkc+} works directly with {+kafka-connect+}. The connector does not
45+
The connector works directly with {+kafka-connect+}. The connector does not
4646
connect directly to a Kafka cluster which means it's compatible with any
47-
Apache Kafka platform that supports {+kafka-connect+}.
47+
{+kafka+} platform that supports {+kafka-connect+}.
4848

49-
If you have any questions about the {+mkc+}, ask them on the
49+
If you have any questions about the connector, ask them on the
5050
`MongoDB Community Forums
5151
<https://www.mongodb.com/community/forums/c/data/connectors-integrations/>`__.
5252

source/contribute.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
How to Contribute
33
=================
44

5-
We are happy to accept contributions to help improve the {+mkc+}. We guide
5+
We are happy to accept contributions to help improve the {+connector+}. We guide
66
community contributions to ensure they meet the standards of the codebase. Please
77
ensure that your pull request meets the following criteria:
88

@@ -39,7 +39,7 @@ Gradle checks. You can run the checks with the following command:
3939
.. note:: Skipped Tests
4040

4141
You can skip tests in the ``integrationTest`` task related to
42-
the following areas unless your code specifically modifies {+mkc+} behavior
42+
the following areas unless your code specifically modifies {+connector+} behavior
4343
related to these areas:
4444

4545
- Specific versions of MongoDB
@@ -54,7 +54,7 @@ Gradle checks. You can run the checks with the following command:
5454
You can run tests related to a specific MongoDB version by deploying a local replica set
5555
with that version of MongoDB.
5656

57-
To learn more about the {+mkc+} source code, see the :github:`GitHub repository <mongodb/mongo-kafka>`.
57+
To learn more about the {+connector+} source code, see the :github:`GitHub repository <mongodb/mongo-kafka>`.
5858

5959
To learn more about Gradle, see the official
6060
`Gradle website <https://docs.gradle.org/>`__.

source/includes/fundamentals/cdc/debezium.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ CDC events from each of the preceding datastores:
2828
change.data.capture.handler=com.mongodb.kafka.connect.sink.cdc.debezium.mongodb.MongoDbHandler
2929
3030
To view the source code for the Debezium CDC handler, see
31-
:github:`the {+mkc+} source code </mongodb/mongo-kafka/tree/{+connector_version_github_tag+}/src/main/java/com/mongodb/kafka/connect/sink/cdc/debezium>`.
31+
:github:`the {+connector+} source code </mongodb/mongo-kafka/tree/{+connector_version_github_tag+}/src/main/java/com/mongodb/kafka/connect/sink/cdc/debezium>`.
3232

3333
.. tab::
3434
:tabid: Postgres
@@ -47,7 +47,7 @@ CDC events from each of the preceding datastores:
4747
change.data.capture.handler=com.mongodb.kafka.connect.sink.cdc.debezium.rdbms.postgres.PostgresHandler
4848
4949
To view the source code for the Debezium CDC handler, see
50-
:github:`the {+mkc+} source code <mongodb/mongo-kafka/blob/{+connector_version_github_tag+}/src/main/java/com/mongodb/kafka/connect/sink/cdc/debezium/rdbms/postgres/PostgresHandler.java>`.
50+
:github:`the {+connector+} source code <mongodb/mongo-kafka/blob/{+connector_version_github_tag+}/src/main/java/com/mongodb/kafka/connect/sink/cdc/debezium/rdbms/postgres/PostgresHandler.java>`.
5151

5252
.. tab::
5353
:tabid: MySQL
@@ -66,7 +66,7 @@ CDC events from each of the preceding datastores:
6666
change.data.capture.handler=com.mongodb.kafka.connect.sink.cdc.debezium.rdbms.mysql.MysqlHandler
6767
6868
To view the source code for the Debezium CDC handler, see
69-
:github:`the {+mkc+} source code <mongodb/mongo-kafka/blob/{+connector_version_github_tag+}/src/main/java/com/mongodb/kafka/connect/sink/cdc/debezium/rdbms/mysql/MysqlHandler.java>`.
69+
:github:`the {+connector+} source code <mongodb/mongo-kafka/blob/{+connector_version_github_tag+}/src/main/java/com/mongodb/kafka/connect/sink/cdc/debezium/rdbms/mysql/MysqlHandler.java>`.
7070

7171
.. note:: Customize the Debezium CDC Handler
7272

source/includes/fundamentals/cdc/mongodb.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,4 @@ MongoDB change event documents:
1414
change.data.capture.handler=com.mongodb.kafka.connect.sink.cdc.mongodb.ChangeStreamHandler
1515
1616
To view the source code for the MongoDB CDC handler, see
17-
:github:`the {+mkc+} source code <mongodb/mongo-kafka/tree/{+connector_version_github_tag+}/src/main/java/com/mongodb/kafka/connect/sink/cdc/mongodb>`.
17+
:github:`the {+connector+} source code <mongodb/mongo-kafka/tree/{+connector_version_github_tag+}/src/main/java/com/mongodb/kafka/connect/sink/cdc/mongodb>`.

source/includes/fundamentals/cdc/qlik.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ Qlik Replicate CDC events:
2121
change.data.capture.handler=com.mongodb.kafka.connect.sink.cdc.qlik.rdbms.RdbmsHandler
2222
2323
To view the source code for the Qlik Replicate CDC handler, see
24-
:github:`the {+mkc+} source code </mongodb/mongo-kafka/tree/{+connector_version_github_tag+}/src/main/java/com/mongodb/kafka/connect/sink/cdc/qlik/rdbms/RdbmsHandler.java>`.
24+
:github:`the {+connector+} source code </mongodb/mongo-kafka/tree/{+connector_version_github_tag+}/src/main/java/com/mongodb/kafka/connect/sink/cdc/qlik/rdbms/RdbmsHandler.java>`.
2525

2626
.. note:: Customize the Qlik Replicate CDC Handler
2727

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
.. important:: Converters
22

3-
If you want to send your data through {+ak+} with {+avro-short+} binary encoding,
4-
you must use an {+avro-short+} converter. For more information, see the guide on
3+
If you want to send your data through {+kafka+} with {+avro+} binary encoding,
4+
you must use an {+avro+} converter. For more information, see the guide on
55
:ref:`Converters <intro-converters>`.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
A {+source-connector+} works by opening a single change stream with
2-
MongoDB and sending data from that change stream to {+kc+}. Your source
2+
MongoDB and sending data from that change stream to {+kafka-connect+}. Your source
33
connector maintains its change stream for the duration of its runtime, and your
44
connector closes its change stream when you stop it.

source/includes/steps-cdc-tutorial.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -268,7 +268,7 @@ content: |
268268
to a topic rather than stop. To learn how to write errant messages to a topic,
269269
see :ref:`<kafka-sink-errors-dlq>`.
270270
- Remove the ``change.data.capture.handler`` from your sink connector.
271-
Add the :ref:`source connector from the tutorial <cdc-tutorial-source-connector>` to {+kc+}
271+
Add the :ref:`source connector from the tutorial <cdc-tutorial-source-connector>` to {+kafka-connect+}
272272
if its not already added. Insert a document into MongoDB
273273
:ref:`as done in the tutorial <cdc-tutorial-change-data-insert>`.
274274
Look at the :ref:`change event document <source-connector-fundamentals-change-event>`

source/includes/tutorials/feedback.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,5 @@
33
44
.. note::
55

6-
Send your tutorial feedback or ideas for future {+mkc+} tutorials through
6+
Send your tutorial feedback or ideas for future {+connector+} tutorials through
77
this `feedback form <https://tinyurl.com/mongokafkatutorialfeedback>`__.

0 commit comments

Comments
 (0)