Skip to content

Commit

Permalink
Test PR 7584: Okta source incremental streams (airbytehq#7586)
Browse files Browse the repository at this point in the history
* fixed bug which crashes okta log incremental sync

* bump connector version

* update acceptance test

* rollback pendulum function

* add comment

* bump version

* run format

Co-authored-by: collin <collinscangarella@gmail.com>
  • Loading branch information
marcosmarxm and colleen-love authored Nov 3, 2021
1 parent 0e09ac3 commit dd86fa7
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@
"sourceDefinitionId": "1d4fdb25-64fc-4569-92da-fcdca79a8372",
"name": "Okta",
"dockerRepository": "airbyte/source-okta",
"dockerImageTag": "0.1.3",
"dockerImageTag": "0.1.4",
"documentationUrl": "https://docs.airbyte.io/integrations/sources/okta"
}
Original file line number Diff line number Diff line change
Expand Up @@ -355,7 +355,7 @@
- name: Okta
sourceDefinitionId: 1d4fdb25-64fc-4569-92da-fcdca79a8372
dockerRepository: airbyte/source-okta
dockerImageTag: 0.1.3
dockerImageTag: 0.1.4
documentationUrl: https://docs.airbyte.io/integrations/sources/okta
sourceType: api
- name: OneSignal
Expand Down
2 changes: 1 addition & 1 deletion airbyte-integrations/connectors/source-okta/Dockerfile
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.1.3
LABEL io.airbyte.version=0.1.4
LABEL io.airbyte.name=airbyte/source-okta
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ tests:
basic_read:
- config_path: "secrets/config.json"
configured_catalog_path: "integration_tests/configured_catalog.json"
empty_streams: ["logs"]
full_refresh:
- config_path: "secrets/config.json"
configured_catalog_path: "integration_tests/configured_catalog.json"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@


from abc import ABC, abstractmethod
from datetime import datetime
from typing import Any, Iterable, List, Mapping, MutableMapping, Optional, Tuple
from urllib import parse

Expand Down Expand Up @@ -114,6 +113,7 @@ def path(self, **kwargs) -> str:


class Logs(IncrementalOktaStream):

cursor_field = "published"
primary_key = "uuid"

Expand All @@ -126,6 +126,8 @@ def request_params(
stream_slice: Mapping[str, any] = None,
next_page_token: Mapping[str, Any] = None,
) -> MutableMapping[str, Any]:
# The log stream use a different params to get data
# https://developer.okta.com/docs/reference/api/system-log/#datetime-filter
stream_state = stream_state or {}
params = {
"limit": self.page_size,
Expand Down
1 change: 1 addition & 0 deletions docs/integrations/sources/okta.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ Different Okta APIs require different admin privilege levels. API tokens inherit

| Version | Date | Pull Request | Subject |
| :--- | :--- | :--- | :--- |
| 0.1.4 | 2021-11-02 | [7584](https://github.com/airbytehq/airbyte/pull/7584) | Fix incremental params for log stream |
| 0.1.3 | 2021-09-08 | [5905](https://github.com/airbytehq/airbyte/pull/5905) | Fix incremental stream defect |
| 0.1.2 | 2021-07-01 | [4456](https://github.com/airbytehq/airbyte/pull/4456) | Bugfix infinite pagination in logs stream |
| 0.1.1 | 2021-06-09 | [3937](https://github.com/airbytehq/airbyte/pull/3973) | Add `AIRBYTE_ENTRYPOINT` env variable for kubernetes support |
Expand Down

0 comments on commit dd86fa7

Please sign in to comment.