Skip to content

Commit

Permalink
Bump Source Jira Connector (#7202)
Browse files Browse the repository at this point in the history
* Create separate cache file per stream and add projects and start_date config

* Add project id to issue record

* Add projectId to issue schema

* Add BoardIssues stream

* Add SprintIssues stream

* Add Epics stream and deduplicate state code

* Add EpicIssues stream and additional fields for Issues stream

* Add story points to sprint issues

* Add new streams to test catalog

* Update gitignore

* Rename cache boolean and fix test catalog

* Fix streams that depend on Issues stream

* Fix sprint_issues stream

* Add more fields to issues stream and format

* Add option to expand issue changelogs

* Remove epic_issues stream

* Expand project descriptions

* Show rendered fields for epics

* Include project key

* Include project key in issues stream

* Address comments

* Use CDK caching

* Remove extra changes

* Fix sprints stream reading from non-scrum boards

* Format

* small fix and bump version

* bump version

Co-authored-by: Chris Wu <chris@faros.ai>
  • Loading branch information
marcosmarxm and cjwooo committed Oct 20, 2021
1 parent 1fcd6c4 commit 6c0a173
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 5 deletions.
Expand Up @@ -2,7 +2,7 @@
"sourceDefinitionId": "68e63de2-bb83-4c7e-93fa-a8a9051e3993",
"name": "Jira",
"dockerRepository": "airbyte/source-jira",
"dockerImageTag": "0.2.11",
"dockerImageTag": "0.2.12",
"documentationUrl": "https://docs.airbyte.io/integrations/sources/jira",
"icon": "jira.svg"
}
Expand Up @@ -228,7 +228,7 @@
- sourceDefinitionId: 68e63de2-bb83-4c7e-93fa-a8a9051e3993
name: Jira
dockerRepository: airbyte/source-jira
dockerImageTag: 0.2.11
dockerImageTag: 0.2.12
documentationUrl: https://docs.airbyte.io/integrations/sources/jira
icon: jira.svg
sourceType: api
Expand Down
2 changes: 1 addition & 1 deletion airbyte-integrations/connectors/source-jira/Dockerfile
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.11
LABEL io.airbyte.version=0.2.12
LABEL io.airbyte.name=airbyte/source-jira
Expand Up @@ -80,7 +80,7 @@ def check_connection(self, logger: AirbyteLogger, config: Mapping[str, Any]) ->

try:
authenticator = self.get_authenticator(config)
args = {"authenticator": authenticator, "domain": config["domain"]}
args = {"authenticator": authenticator, "domain": config["domain"], "projects": config["projects"]}
issue_resolutions = IssueResolutions(**args)
for item in issue_resolutions.read_records(sync_mode=SyncMode.full_refresh):
continue
Expand Down
Expand Up @@ -473,7 +473,7 @@ def path(self, stream_slice: Mapping[str, Any] = None, **kwargs) -> str:

def read_records(self, stream_slice: Optional[Mapping[str, Any]] = None, **kwargs) -> Iterable[Mapping[str, Any]]:
issues_stream = Issues(authenticator=self.authenticator, domain=self._domain, projects=self._projects, start_date=self._start_date)
issue_property_keys_stream = IssuePropertyKeys(authenticator=self.authenticator, domain=self._domain)
issue_property_keys_stream = IssuePropertyKeys(authenticator=self.authenticator, domain=self._domain, projects=self._projects)
for issue in issues_stream.read_records(sync_mode=SyncMode.full_refresh):
for property_key in issue_property_keys_stream.read_records(stream_slice={"key": issue["key"]}, **kwargs):
yield from super().read_records(stream_slice={"key": property_key["key"], "issue_key": issue["key"]}, **kwargs)
Expand Down
1 change: 1 addition & 0 deletions docs/integrations/sources/jira.md
Expand Up @@ -85,6 +85,7 @@ The Jira connector should not run into Jira API limitations under normal usage.

| Version | Date | Pull Request | Subject |
| :--- | :--- | :--- | :--- |
| 0.2.12 | 2021-10-19 | [\#6621](https://github.com/airbytehq/airbyte/pull/6621) | Add Board, Epic, and Sprint streams |
| 0.2.11 | 2021-09-02 | [\#6523](https://github.com/airbytehq/airbyte/pull/6523) | Add cache and more streams \(boards and sprints\) |
| 0.2.9 | 2021-07-28 | [\#5426](https://github.com/airbytehq/airbyte/pull/5426) | Changed cursor field from fields.created to fields.updated for Issues stream. Made Issues worklogs stream full refresh. |
| 0.2.8 | 2021-07-28 | [\#4947](https://github.com/airbytehq/airbyte/pull/4947) | Source Jira: fixing schemas accordinately to response. |
Expand Down

0 comments on commit 6c0a173

Please sign in to comment.