From 446505498844ba4417f51f21951fc9af8d62bf36 Mon Sep 17 00:00:00 2001
From: Mahdi Dibaiee <mdibaiee@pm.me>
Date: Thu, 3 Nov 2022 15:13:18 +0000
Subject: [PATCH 1/2] source-mailchimp: set primary_key for EmailActivity

---
 airbyte-integrations/connectors/source-mailchimp/Dockerfile    | 2 +-
 .../connectors/source-mailchimp/source_mailchimp/streams.py    | 2 +-
 docs/integrations/sources/mailchimp.md                         | 3 ++-
 3 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/airbyte-integrations/connectors/source-mailchimp/Dockerfile b/airbyte-integrations/connectors/source-mailchimp/Dockerfile
index 671746b197fd..84fe47f2ab50 100644
--- a/airbyte-integrations/connectors/source-mailchimp/Dockerfile
+++ b/airbyte-integrations/connectors/source-mailchimp/Dockerfile
@@ -12,5 +12,5 @@ RUN pip install .
 ENV AIRBYTE_ENTRYPOINT "python /airbyte/integration_code/main.py"
 ENTRYPOINT ["python", "/airbyte/integration_code/main.py"]
 
-LABEL io.airbyte.version=0.2.15
+LABEL io.airbyte.version=0.3.0
 LABEL io.airbyte.name=airbyte/source-mailchimp
diff --git a/airbyte-integrations/connectors/source-mailchimp/source_mailchimp/streams.py b/airbyte-integrations/connectors/source-mailchimp/source_mailchimp/streams.py
index 8cf13347017f..af1fa6b12a4b 100644
--- a/airbyte-integrations/connectors/source-mailchimp/source_mailchimp/streams.py
+++ b/airbyte-integrations/connectors/source-mailchimp/source_mailchimp/streams.py
@@ -111,7 +111,7 @@ def path(self, **kwargs) -> str:
 class EmailActivity(IncrementalMailChimpStream):
     cursor_field = "timestamp"
     data_field = "emails"
-    primary_key = None
+    primary_key = ["timestamp", "email_id", "action"]
 
     def stream_slices(self, **kwargs):
         campaign_stream = Campaigns(authenticator=self.authenticator)
diff --git a/docs/integrations/sources/mailchimp.md b/docs/integrations/sources/mailchimp.md
index d41da58980a4..76ee9e4816d3 100644
--- a/docs/integrations/sources/mailchimp.md
+++ b/docs/integrations/sources/mailchimp.md
@@ -229,7 +229,8 @@ Now that you have set up the Mailchimp source connector, check out the following
 ## Changelog
 
 | Version | Date       | Pull Request                                             | Subject                                                                  |
-|:--------|:-----------|:---------------------------------------------------------|:-------------------------------------------------------------------------|
+|---------|------------|----------------------------------------------------------|--------------------------------------------------------------------------|
+| 0.3.0   | 2022-11-07 | [19023](https://github.com/airbytehq/airbyte/pull/19023) | Set primary key for Email Activity stream.                               |
 | 0.2.15  | 2022-09-28 | [17326](https://github.com/airbytehq/airbyte/pull/17326) | Migrate to per-stream states.                                            |
 | 0.2.14  | 2022-04-12 | [11352](https://github.com/airbytehq/airbyte/pull/11352) | Update documentation                                                     |
 | 0.2.13  | 2022-04-11 | [11632](https://github.com/airbytehq/airbyte/pull/11632) | Add unit tests                                                           |

From dfd721097c5ab6cc0830f6299739b807d1d5aa09 Mon Sep 17 00:00:00 2001
From: Octavia Squidington III
 <octavia-squidington-iii@users.noreply.github.com>
Date: Mon, 7 Nov 2022 19:47:37 +0000
Subject: [PATCH 2/2] auto-bump connector version

---
 .../init/src/main/resources/seed/source_definitions.yaml        | 2 +-
 airbyte-config/init/src/main/resources/seed/source_specs.yaml   | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/airbyte-config/init/src/main/resources/seed/source_definitions.yaml b/airbyte-config/init/src/main/resources/seed/source_definitions.yaml
index 2b53633ed09f..7deafa8b974f 100644
--- a/airbyte-config/init/src/main/resources/seed/source_definitions.yaml
+++ b/airbyte-config/init/src/main/resources/seed/source_definitions.yaml
@@ -712,7 +712,7 @@
 - name: Mailchimp
   sourceDefinitionId: b03a9f3e-22a5-11eb-adc1-0242ac120002
   dockerRepository: airbyte/source-mailchimp
-  dockerImageTag: 0.2.15
+  dockerImageTag: 0.3.0
   documentationUrl: https://docs.airbyte.com/integrations/sources/mailchimp
   icon: mailchimp.svg
   sourceType: api
diff --git a/airbyte-config/init/src/main/resources/seed/source_specs.yaml b/airbyte-config/init/src/main/resources/seed/source_specs.yaml
index 7edad5248d6d..c0dd39254a03 100644
--- a/airbyte-config/init/src/main/resources/seed/source_specs.yaml
+++ b/airbyte-config/init/src/main/resources/seed/source_specs.yaml
@@ -6596,7 +6596,7 @@
     supportsNormalization: false
     supportsDBT: false
     supported_destination_sync_modes: []
-- dockerImage: "airbyte/source-mailchimp:0.2.15"
+- dockerImage: "airbyte/source-mailchimp:0.3.0"
   spec:
     documentationUrl: "https://docs.airbyte.com/integrations/sources/mailchimp"
     connectionSpecification: