Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Source Jira: fixing schemas accordinately to response. #4947

Merged
merged 12 commits into from
Jul 28, 2021
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"sourceDefinitionId": "68e63de2-bb83-4c7e-93fa-a8a9051e3993",
"name": "Jira",
"dockerRepository": "airbyte/source-jira",
"dockerImageTag": "0.2.7",
"dockerImageTag": "0.2.8",
"documentationUrl": "https://hub.docker.com/r/airbyte/source-jira",
"icon": "jira.svg"
}
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@
- sourceDefinitionId: 68e63de2-bb83-4c7e-93fa-a8a9051e3993
name: Jira
dockerRepository: airbyte/source-jira
dockerImageTag: 0.2.7
dockerImageTag: 0.2.8
documentationUrl: https://hub.docker.com/r/airbyte/source-jira
icon: jira.svg
- sourceDefinitionId: 12928b32-bf0a-4f1e-964f-07e12e37153a
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.7
LABEL io.airbyte.version=0.2.8
LABEL io.airbyte.name=airbyte/source-jira
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,8 @@ tests:
configured_catalog_path: "integration_tests/configured_catalog.json"
# incremental:
# - config_path: "secrets/config.json"
# configured_catalog_path: "integration_tests/full_configured_catalog.json"
# configured_catalog_path: "integration_tests/inc_configured_catalog.json"
# future_state_path: "integration_tests/abnormal_state.json"
# cursor_paths:
# issues: ["created"]
# issue_worklogs: ["startedAfter"]
# Jira Source has a lot streams. It takes to long to sync them, which caused timeout error
# full_refresh:
# - config_path: "secrets/config.json"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

{"stream": "labels", "data": {"id": "jira.issuenav.criteria.autoupdate", "key": "jira.issuenav.criteria.autoupdate", "value": "true", "name": "Auto Update Criteria", "desc": "Turn on to update search results automatically", "type": "boolean"}, "emitted_at": 1626682849000}
{"stream": "labels", "data": {"id": "jira.clone.prefix", "key": "jira.clone.prefix", "value": "CLONE -", "name": "The prefix added to the Summary field of cloned issues", "type": "string"}, "emitted_at": 1626682849000}
{"stream": "labels", "data": {"id": "jira.date.picker.java.format", "key": "jira.date.picker.java.format", "value": "d/MMM/yy", "name": "Date Picker Format (Java)", "desc": "This part is only for the Java (server side) generated dates. Note that this should correspond to the javascript date picker format (jira.date.picker.javascript.format) setting.", "type": "string"}, "emitted_at": 1626682849000}
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
{
"streams": [
{
"stream": {
"name": "issues",
"json_schema": {},
"supported_sync_modes": ["incremental"],
"source_defined_cursor": true,
"default_cursor_field": ["created"]
},
"sync_mode": "incremental",
"cursor_field": ["created"],
"destination_sync_mode": "append"
},
{
"stream": {
"name": "issue_worklogs",
"json_schema": {},
"supported_sync_modes": ["incremental"],
"source_defined_cursor": true,
"default_cursor_field": ["startedAfter"]
},
"sync_mode": "incremental",
"cursor_field": ["startedAfter"],
"destination_sync_mode": "append"
}
]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
#
# MIT License
#
# Copyright (c) 2020 Airbyte
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
# copies of the Software, and to permit persons to whom the Software is
# furnished to do so, subject to the following conditions:
#
# The above copyright notice and this permission notice shall be included in all
# copies or substantial portions of the Software.
#
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
# SOFTWARE.
#


def test_example_method():
assert True
Original file line number Diff line number Diff line change
@@ -1,57 +1,48 @@
{
"$schema": "http://json-schema.org/draft-07/schema#",
"type": "object",
"$schema": "http://json-schema.org/schema#",
"properties": {
"key": {
"type": "string",
"description": "The key of the application role."
"defaultGroups": {
"items": {
"type": "string"
},
"type": "array"
},
"defined": {
"type": "boolean"
},
"groups": {
"uniqueItems": true,
"type": "array",
"description": "The groups associated with the application role.",
"items": { "type": "string" }
"items": {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

format

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

applied but somewhy it does not available in commit diff (available in global diff)

"type": "string"
},
"type": "array"
},
"name": {
"type": "string",
"description": "The display name of the application role."
"hasUnlimitedSeats": {
"type": "boolean"
},
"defaultGroups": {
"uniqueItems": true,
"type": "array",
"description": "The groups that are granted default access for this application role.",
"items": { "type": "string" }
"key": {
"type": "string"
},
"selectedByDefault": {
"type": "boolean",
"description": "Determines whether this application role should be selected by default on user creation."
"name": {
"type": "string"
},
"defined": { "type": "boolean", "description": "Deprecated." },
"numberOfSeats": {
"type": "integer",
"description": "The maximum count of users on your license.",
"format": "int32"
"type": "integer"
},
"platform": {
"type": "boolean"
},
"remainingSeats": {
"type": "integer",
"description": "The count of users remaining on your license.",
"format": "int32"
"type": "integer"
},
"selectedByDefault": {
"type": "boolean"
},
"userCount": {
"type": "integer",
"description": "The number of users counting against your license.",
"format": "int32"
"type": "integer"
},
"userCountDescription": {
"type": "string",
"description": "The [type of users](https://confluence.atlassian.com/x/lRW3Ng) being counted against your license."
},
"hasUnlimitedSeats": { "type": "boolean" },
"platform": {
"type": "boolean",
"description": "Indicates if the application role belongs to Jira platform (`jira-core`)."
"type": "string"
}
},
"additionalProperties": false,
"description": "Details of an application role."
"type": "object"
}
Original file line number Diff line number Diff line change
@@ -1,57 +1,35 @@
{
"$schema": "http://json-schema.org/draft-07/schema#",
"type": "object",
"$schema": "http://json-schema.org/schema#",
"properties": {
"system": {
"type": "array",
"description": "A list of avatar details.",
"readOnly": true,
"items": {
"type": "object",
"properties": {
"id": {
"type": "string",
"description": "The ID of the avatar."
},
"owner": {
"type": "string",
"description": "The owner of the avatar. For a system avatar the owner is null (and nothing is returned). For non-system avatars this is the appropriate identifier, such as the ID for a project or the account ID for a user.",
"readOnly": true
},
"isSystemAvatar": {
"type": "boolean",
"description": "Whether the avatar is a system avatar.",
"readOnly": true
},
"isSelected": {
"type": "boolean",
"description": "Whether the avatar is used in Jira. For example, shown as a project's avatar.",
"readOnly": true
},
"isDeletable": {
"type": "boolean",
"description": "Whether the avatar can be deleted.",
"readOnly": true
},
"fileName": {
"type": "string",
"description": "The file name of the avatar icon. Returned for system avatars.",
"readOnly": true
},
"urls": {
"type": "object",
"additionalProperties": {
"type": "string",
"format": "uri",
"readOnly": true
},
"description": "The list of avatar icon URLs.",
"readOnly": true
}
"id": {
"type": "string"
},
"isDeletable": {
"type": "boolean"
},
"isSelected": {
"type": "boolean"
},
"isSystemAvatar": {
"type": "boolean"
},
"urls": {
"properties": {
"16x16": {
"type": "string"
},
"24x24": {
"type": "string"
},
"32x32": {
"type": "string"
},
"48x48": {
"type": "string"
}
}
},
"type": "object"
}
},
"additionalProperties": false,
"description": "List of system avatars."
"type": "object"
}
Loading