Skip to content

Commit

Permalink
🐛 Source Microsoft Dataverse: Adjust source_default_cursor when modif…
Browse files Browse the repository at this point in the history
…iedon not exists (airbytehq#29732)
  • Loading branch information
Grayfados authored and harrytou committed Sep 1, 2023
1 parent c3d0771 commit 4a266c3
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,5 +34,5 @@ COPY source_microsoft_dataverse ./source_microsoft_dataverse
ENV AIRBYTE_ENTRYPOINT "python /airbyte/integration_code/main.py"
ENTRYPOINT ["python", "/airbyte/integration_code/main.py"]

LABEL io.airbyte.version=0.1.1
LABEL io.airbyte.version=0.1.2
LABEL io.airbyte.name=airbyte/source-microsoft-dataverse
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ data:
connectorSubtype: api
connectorType: source
definitionId: 9220e3de-3b60-4bb2-a46f-046d59ea235a
dockerImageTag: 0.1.1
dockerImageTag: 0.1.2
dockerRepository: airbyte/source-microsoft-dataverse
githubIssueLabel: source-microsoft-dataverse
icon: microsoftdataverse.svg
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@ def discover(self, logger: logging.Logger, config: Mapping[str, Any]) -> Airbyte
stream = AirbyteStream(
name=entity["LogicalName"], json_schema=schema, supported_sync_modes=[SyncMode.full_refresh, SyncMode.incremental]
)
stream.source_defined_cursor = True
if "modifiedon" in schema["properties"]:
stream.source_defined_cursor = True
stream.default_cursor_field = ["modifiedon"]
else:
stream = AirbyteStream(name=entity["LogicalName"], json_schema=schema, supported_sync_modes=[SyncMode.full_refresh])
Expand Down
1 change: 1 addition & 0 deletions docs/integrations/sources/microsoft-dataverse.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,5 +61,6 @@ https://blog.magnetismsolutions.com/blog/paulnieuwelaar/2021/9/21/setting-up-an-

| Version | Date | Pull Request | Subject |
| :------ | :--------- | :------------------------------------------------------- | :---------------------------------------------- |
| 0.1.2 | 2023-08-24 | [29732](https://github.com/airbytehq/airbyte/pull/29732) | 🐛 Source Microsoft Dataverse: Adjust source_default_cursor when modifiedon not exists |
| 0.1.1 | 2023-03-16 | [22805](https://github.com/airbytehq/airbyte/pull/22805) | Fixed deduped cursor field value update |
| 0.1.0 | 2022-11-14 | [18646](https://github.com/airbytehq/airbyte/pull/18646) | 🎉 New Source: Microsoft Dataverse [python cdk] |

0 comments on commit 4a266c3

Please sign in to comment.