Skip to content

Commit

Permalink
source-mailchimp: set primary_key for EmailActivity (#19023)
Browse files Browse the repository at this point in the history
* source-mailchimp: set primary_key for EmailActivity

* auto-bump connector version

Co-authored-by: Octavia Squidington III <octavia-squidington-iii@users.noreply.github.com>
  • Loading branch information
mdibaiee and octavia-squidington-iii committed Dec 5, 2022
1 parent 3a11c7e commit 34e85e3
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -882,7 +882,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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7587,7 +7587,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:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
3 changes: 2 additions & 1 deletion docs/integrations/sources/mailchimp.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 |
Expand Down

0 comments on commit 34e85e3

Please sign in to comment.