Skip to content

Commit

Permalink
🐛 Source Jira: Fix fetching and update schema for filters stream (#…
Browse files Browse the repository at this point in the history
…9079)

* 9017 Fix fetching and update schema for `filters` stream

* 9017 Bump connector's version

* 9017 Update docs

* 9017 Update docs

* 9017 Set additionalProperties to false

* 9017 Bump connector's version
  • Loading branch information
Zirochkaa authored Dec 23, 2021
1 parent fd8e5bc commit 7f14731
Show file tree
Hide file tree
Showing 6 changed files with 16 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -322,7 +322,7 @@
- name: Jira
sourceDefinitionId: 68e63de2-bb83-4c7e-93fa-a8a9051e3993
dockerRepository: airbyte/source-jira
dockerImageTag: 0.2.16
dockerImageTag: 0.2.17
documentationUrl: https://docs.airbyte.io/integrations/sources/jira
icon: jira.svg
sourceType: api
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3136,7 +3136,7 @@
supportsNormalization: false
supportsDBT: false
supported_destination_sync_modes: []
- dockerImage: "airbyte/source-jira:0.2.16"
- dockerImage: "airbyte/source-jira:0.2.17"
spec:
documentationUrl: "https://docs.airbyte.io/integrations/sources/jira"
connectionSpecification:
Expand Down
2 changes: 1 addition & 1 deletion airbyte-integrations/connectors/source-jira/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.2.16
LABEL io.airbyte.version=0.2.17
LABEL io.airbyte.name=airbyte/source-jira
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@
"$schema": "http://json-schema.org/draft-07/schema#",
"type": "object",
"properties": {
"expand": {
"type": "string"
},
"self": {
"type": "string",
"description": "The URL of the filter.",
Expand Down Expand Up @@ -2590,6 +2593,9 @@
}
}
},
"isWritable": {
"type": "boolean"
},
"subscriptions": {
"type": "array",
"description": "The users that are subscribed to the filter.",
Expand Down Expand Up @@ -2856,6 +2862,6 @@
}
}
},
"additionalProperties": true,
"additionalProperties": false,
"description": "Details of a filter."
}
Original file line number Diff line number Diff line change
Expand Up @@ -286,6 +286,11 @@ class Filters(JiraStream):
def path(self, **kwargs) -> str:
return "filter/search"

def request_params(self, **kwargs) -> MutableMapping[str, Any]:
params = super().request_params(**kwargs)
params["expand"] = "description,owner,jql,viewUrl,searchUrl,favourite,favouritedCount,sharePermissions,isWritable,subscriptions"
return params


class FilterSharing(JiraStream):
"""
Expand Down
1 change: 1 addition & 0 deletions docs/integrations/sources/jira.md
Original file line number Diff line number Diff line change
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.17 | 2021-12-23 | [\#9079](https://github.com/airbytehq/airbyte/pull/9079) | Update schema for `filters` stream + fix fetching `filters` stream |
| 0.2.16 | 2021-12-21 | [\#8999](https://github.com/airbytehq/airbyte/pull/8999) | Update connector fields title/description |
| 0.2.15 | 2021-11-01 | [\#7398](https://github.com/airbytehq/airbyte/pull/7398) | Add option to render fields in HTML format and fix sprint_issue ids |
| 0.2.14 | 2021-10-27 | [\#7408](https://github.com/airbytehq/airbyte/pull/7408) | Fix normalization step error. Fix schemas. Fix `acceptance-test-config.yml`. Fix `streams.py`. |
Expand Down

0 comments on commit 7f14731

Please sign in to comment.