Skip to content

Commit

Permalink
source-mailchimp: set primary_key for EmailActivity
Browse files Browse the repository at this point in the history
  • Loading branch information
mdibaiee committed Nov 7, 2022
1 parent 022fca8 commit 4465054
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
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 4465054

Please sign in to comment.