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: Fix DBT failing normalization on Labels schema. #4817

Merged
merged 4 commits into from
Jul 20, 2021
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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.6",
"dockerImageTag": "0.2.7",
"documentationUrl": "https://hub.docker.com/r/airbyte/source-jira",
"icon": "jira.svg"
}
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@
- sourceDefinitionId: 68e63de2-bb83-4c7e-93fa-a8a9051e3993
name: Jira
dockerRepository: airbyte/source-jira
dockerImageTag: 0.2.6
dockerImageTag: 0.2.7
documentationUrl: https://hub.docker.com/r/airbyte/source-jira
icon: jira.svg
- sourceDefinitionId: 859e501d-2b67-471f-91bb-1c801414d28f
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.6
LABEL io.airbyte.version=0.2.7
LABEL io.airbyte.name=airbyte/source-jira
8 changes: 4 additions & 4 deletions airbyte-integrations/connectors/source-jira/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,10 @@ and place them into `secrets/config.json`.

### Locally running the connector
```
python main_dev.py spec
python main_dev.py check --config secrets/config.json
python main_dev.py discover --config secrets/config.json
python main_dev.py read --config secrets/config.json --catalog sample_files/configured_catalog.json
python main.py spec
python main.py check --config secrets/config.json
python main.py discover --config secrets/config.json
python main.py read --config secrets/config.json --catalog sample_files/configured_catalog.json
```

### Unit Tests
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,12 @@ tests:
discovery:
- config_path: "secrets/config.json"
basic_read:
# TEST for the Labels stream
- config_path: "secrets/config.json"
configured_catalog_path: "integration_tests/labels_catalog.json"
validate_output_from_all_streams: yes
expect_records:
path: "integration_tests/expected_label_records.txt"
- config_path: "secrets/config.json"
configured_catalog_path: "integration_tests/issues_configured_catalog.json"
validate_output_from_all_streams: yes
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7406,12 +7406,53 @@
"name": "labels",
"json_schema": {
"$schema": "http://json-schema.org/draft-07/schema#",
"type": "array",
"description": "The list of items.",
"readOnly": true,
"items": { "type": "string", "readOnly": true }
"type": [
"object",
"null"
],
"properties": {
"id": {
"type": [
"string",
"null"
]
},
"key": {
"type": [
"string",
"null"
]
},
"value": {
"type": [
"string",
"null"
]
},
"name": {
"type": [
"string",
"null"
]
},
"desc": {
"type": [
"string",
"null"
]
},
"type": {
"type": [
"string",
"null"
]
}
},
"additionalProperties": true
},
"supported_sync_modes": ["full_refresh"],
"supported_sync_modes": [
"full_refresh"
],
"source_defined_cursor": false
},
"sync_mode": "full_refresh",
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@

{"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}
{"stream": "labels", "data": {"id": "jira.date.picker.javascript.format", "key": "jira.date.picker.javascript.format", "value": "%e/%b/%y", "name": "Date Picker Format (JavaScript)", "desc": "This part is only for the JavaScript (client side) generated dates. Note that this should correspond to the java date picker format (jira.date.picker.java.format) setting.", "type": "string"}, "emitted_at": 1626682849000}
{"stream": "labels", "data": {"id": "jira.date.time.picker.java.format", "key": "jira.date.time.picker.java.format", "value": "dd/MMM/yy h:mm a", "name": "DateTime Picker Format (Java)", "desc": "This part is only for the Java (server side) generated datetimes. Note that this should correspond to the javascript datetime picker format (jira.date.time.picker.javascript.format) setting.", "type": "string"}, "emitted_at": 1626682849000}
{"stream": "labels", "data": {"id": "jira.date.time.picker.javascript.format", "key": "jira.date.time.picker.javascript.format", "value": "%e/%b/%y %I:%M %p", "name": "DateTime Picker Format (JavaScript)", "desc": "This part is only for the JavaScript (client side) generated date times. Note that this should correspond to the java datetime picker format (jira.date.time.picker.java.format) setting.", "type": "string"}, "emitted_at": 1626682849000}
{"stream": "labels", "data": {"id": "jira.issue.actions.order", "key": "jira.issue.actions.order", "value": "asc", "name": "JIRA issue actions order", "desc": "The default order of actions (tab items like 'Comments', 'Change History' etc) on the 'View Issue' screen, by date, from top to bottom.", "type": "enum", "allowedValues": ["asc", "desc"]}, "emitted_at": 1626682849000}
{"stream": "labels", "data": {"id": "jira.lf.date.time", "key": "jira.lf.date.time", "value": "h:mm a", "name": "Time Format", "type": "string", "example": "3:55 AM"}, "emitted_at": 1626682849000}
{"stream": "labels", "data": {"id": "jira.lf.date.day", "key": "jira.lf.date.day", "value": "EEEE h:mm a", "name": "Day Format", "type": "string", "example": "Wednesday 3:55 AM"}, "emitted_at": 1626682849000}
{"stream": "labels", "data": {"id": "jira.lf.date.complete", "key": "jira.lf.date.complete", "value": "dd/MMM/yy h:mm a", "name": "Complete Date/Time Format", "type": "string", "example": "23/May/07 3:55 AM"}, "emitted_at": 1626682849000}
{"stream": "labels", "data": {"id": "jira.lf.date.dmy", "key": "jira.lf.date.dmy", "value": "dd/MMM/yy", "name": "Day/Month/Year Format", "type": "string", "example": "23/May/07"}, "emitted_at": 1626682849000}
{"stream": "labels", "data": {"id": "jira.date.time.picker.use.iso8061", "key": "jira.date.time.picker.use.iso8061", "value": "false", "name": "Use ISO8601 standard in Date Picker", "desc": "Turning it on will cause Monday to be the first day of week in the Date Picker, as specified by the ISO8601 standard", "type": "boolean"}, "emitted_at": 1626682849000}
Original file line number Diff line number Diff line change
Expand Up @@ -9593,12 +9593,53 @@
"name": "labels",
"json_schema": {
"$schema": "http://json-schema.org/draft-07/schema#",
"type": "array",
"description": "The list of items.",
"readOnly": true,
"items": { "type": "string", "readOnly": true }
"type": [
"object",
"null"
],
"properties": {
"id": {
"type": [
"string",
"null"
]
},
"key": {
"type": [
"string",
"null"
]
},
"value": {
"type": [
"string",
"null"
]
},
"name": {
"type": [
"string",
"null"
]
},
"desc": {
"type": [
"string",
"null"
]
},
"type": {
"type": [
"string",
"null"
]
}
},
"additionalProperties": true
},
"supported_sync_modes": ["full_refresh"],
"supported_sync_modes": [
"full_refresh"
],
"source_defined_cursor": false
},
"sync_mode": "full_refresh",
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
{
"streams": [
{
"stream": {
"name": "labels",
"json_schema": {
"$schema": "http://json-schema.org/draft-07/schema#",
"type": ["object", "null"],
"properties": {
"id": {
"type": ["string", "null"]
},
"key": {
"type": ["string", "null"]
},
"value": {
"type": ["string", "null"]
},
"name": {
"type": ["string", "null"]
},
"desc": {
"type": ["string", "null"]
},
"type": {
"type": ["string", "null"]
}
},
"additionalProperties": true
},
"supported_sync_modes": ["full_refresh"],
"source_defined_cursor": false
},
"sync_mode": "full_refresh",
"destination_sync_mode": "overwrite"
}
]
}

Loading