1
0
mirror of synced 2025-12-23 21:03:15 -05:00

Source Jira: Added updates to include issue components and fixes to README files (#15135)

* solve readme conflict

* updated jira sources with open PR details

* correct additionalProperties test discover

Co-authored-by: marcosmarxm <marcosmarxm@gmail.com>
This commit is contained in:
Stephen Wentling
2022-08-09 21:30:14 +01:00
committed by GitHub
parent 9e691d85c3
commit 123705c510
53 changed files with 94 additions and 152 deletions

View File

@@ -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.20
LABEL io.airbyte.version=0.2.21
LABEL io.airbyte.name=airbyte/source-jira

View File

@@ -8,7 +8,7 @@ For information about how to use this connector within Airbyte, see [the documen
### Prerequisites
**To iterate on this connector, make sure to complete this prerequisites section.**
#### Minimum Python version required `= 3.7.0`
#### Minimum Python version required `= 3.9.0`
#### Build & Activate Virtual Environment and install dependencies
From this connector directory, create a virtual environment:
@@ -80,7 +80,7 @@ Then run any of the connector commands as follows:
docker run --rm airbyte/source-jira:dev spec
docker run --rm -v $(pwd)/secrets:/secrets airbyte/source-jira:dev check --config /secrets/config.json
docker run --rm -v $(pwd)/secrets:/secrets airbyte/source-jira:dev discover --config /secrets/config.json
docker run --rm -v $(pwd)/secrets:/secrets -v $(pwd)/integration_tests:/integration_tests airbyte/source-jira:dev read --config secrets/config.json --catalog integration_tests/configured_catalog.json
docker run --rm -v $(pwd)/secrets:/secrets -v $(pwd)/integration_tests:/integration_tests airbyte/source-jira:dev read --config /secrets/config.json --catalog /integration_tests/configured_catalog.json
```
#### Acceptance Tests

View File

@@ -1,5 +1,6 @@
{
"api_token": "<api_token>",
"domain": "<your_domain.atlassian.net>",
"email": "<email>"
"email": "<email>",
"projects": []
}

View File

@@ -135,6 +135,6 @@
}
}
},
"additionalProperties": false,
"additionalProperties": true,
"description": "An audit record."
}

View File

@@ -33,15 +33,11 @@
},
"urls": {
"type": "object",
"additionalProperties": {
"type": "string",
"format": "uri",
"readOnly": true
},
"additionalProperties": true,
"description": "The list of avatar icon URLs.",
"readOnly": true
}
},
"additionalProperties": false,
"additionalProperties": true,
"description": "List of system avatars."
}

View File

@@ -1378,10 +1378,7 @@
},
"roles": {
"type": "object",
"additionalProperties": {
"type": "string",
"format": "uri"
},
"additionalProperties": true,
"description": "The name and self URL for each role defined in the project. For more information, see [Create project role](#api-rest-api-3-role-post)."
},
"avatarUrls": {

View File

@@ -47,7 +47,7 @@
"description": "This field is not shown in schema / swagger, but exists in records and we use it as cursor fiekd."
}
},
"additionalProperties": {}
"additionalProperties": true
},
"projectId": {
"type": "string",
@@ -60,5 +60,5 @@
"readOnly": true
}
},
"additionalProperties": false
"additionalProperties": true
}

View File

@@ -1386,11 +1386,7 @@
},
"roles": {
"type": "object",
"additionalProperties": {
"type": "string",
"format": "uri",
"readOnly": true
},
"additionalProperties": true,
"description": "The name and self URL for each role defined in the project. For more information, see [Create project role](#api-rest-api-3-role-post).",
"readOnly": true
},
@@ -1540,9 +1536,7 @@
},
"properties": {
"type": "object",
"additionalProperties": {
"readOnly": true
},
"additionalProperties": true,
"description": "Map of project properties",
"readOnly": true
},
@@ -2303,6 +2297,6 @@
}
}
},
"additionalProperties": false,
"additionalProperties": true,
"description": "Details of a share permission for the filter."
}

View File

@@ -1674,11 +1674,7 @@
},
"roles": {
"type": "object",
"additionalProperties": {
"type": "string",
"format": "uri",
"readOnly": true
},
"additionalProperties": true,
"description": "The name and self URL for each role defined in the project. For more information, see [Create project role](#api-rest-api-3-role-post).",
"readOnly": true
},
@@ -1828,9 +1824,7 @@
},
"properties": {
"type": "object",
"additionalProperties": {
"readOnly": true
},
"additionalProperties": true,
"description": "Map of project properties",
"readOnly": true
},
@@ -2862,6 +2856,6 @@
}
}
},
"additionalProperties": false,
"additionalProperties": true,
"description": "Details of a filter."
}

View File

@@ -11,6 +11,6 @@
"description": "The ID of the group, if available, which uniquely identifies the group across all Atlassian products. For example, *952d12c3-5b5b-4d04-bb32-44d383afc4b2*."
}
},
"additionalProperties": false,
"additionalProperties": true,
"description": "The list of groups found in a search, including header text (Showing X of Y matching groups) and total of matched groups."
}

View File

@@ -10,6 +10,6 @@
"description": "The value of the property. Required on create and update."
}
},
"additionalProperties": false,
"additionalProperties": true,
"description": "An entity property, for more information see [Entity properties](https://developer.atlassian.com/cloud/jira/platform/jira-entity-properties/)."
}

View File

@@ -23,6 +23,6 @@
"description": "Whether the context apply to all issue types."
}
},
"additionalProperties": false,
"additionalProperties": true,
"description": "The details of a custom field context."
}

View File

@@ -19,6 +19,6 @@
"description": "Whether the option is disabled."
}
},
"additionalProperties": false,
"additionalProperties": true,
"description": "Details of the custom field options for a context."
}

View File

@@ -13,7 +13,7 @@
},
"properties": {
"type": "object",
"additionalProperties": {},
"additionalProperties": true,
"description": "The properties of the object, as arbitrary key-value pairs. These properties can be searched using JQL, if the extractions (see [Issue Field Option Property Index](https://developer.atlassian.com/cloud/jira/platform/modules/issue-field-option-property-index/)) are defined in the descriptor for the issue field module."
},
"config": {
@@ -85,6 +85,6 @@
}
}
},
"additionalProperties": false,
"additionalProperties": true,
"description": "Details of the options for a select list issue field."
}

View File

@@ -20,6 +20,6 @@
"description": "Whether the field configuration is the default."
}
},
"additionalProperties": false,
"additionalProperties": true,
"description": "Details of a field configuration."
}

View File

@@ -173,9 +173,7 @@
},
"configuration": {
"type": "object",
"additionalProperties": {
"readOnly": true
},
"additionalProperties": true,
"description": "If the field is a custom field, the configuration of the field.",
"readOnly": true
}

View File

@@ -25,6 +25,6 @@
"readOnly": true
}
},
"additionalProperties": false,
"additionalProperties": true,
"description": "A list of issue link type beans."
}

View File

@@ -11,6 +11,6 @@
"description": "The issue navigator column value."
}
},
"additionalProperties": false,
"additionalProperties": true,
"description": "Details of an issue navigator column item."
}

View File

@@ -273,9 +273,7 @@
},
"configuration": {
"type": "object",
"additionalProperties": {
"readOnly": true
},
"additionalProperties": true,
"description": "If the field is a custom field, the configuration of the field.",
"readOnly": true
}
@@ -696,6 +694,6 @@
}
}
},
"additionalProperties": false,
"additionalProperties": true,
"description": "Details about a notification scheme."
}

View File

@@ -10,6 +10,6 @@
"description": "The value of the property. Required on create and update."
}
},
"additionalProperties": false,
"additionalProperties": true,
"description": "An entity property, for more information see [Entity properties](https://developer.atlassian.com/cloud/jira/platform/jira-entity-properties/)."
}

View File

@@ -99,6 +99,6 @@
}
}
},
"additionalProperties": false,
"additionalProperties": true,
"description": "Details of an issue remote link."
}

View File

@@ -20,6 +20,6 @@
"description": "The name of the issue resolution."
}
},
"additionalProperties": false,
"additionalProperties": true,
"description": "Details of an issue resolution."
}

View File

@@ -58,6 +58,6 @@
}
}
},
"additionalProperties": false,
"additionalProperties": true,
"description": "List of security schemes."
}

View File

@@ -10,6 +10,6 @@
"description": "The value of the property. Required on create and update."
}
},
"additionalProperties": false,
"additionalProperties": true,
"description": "An entity property, for more information see [Entity properties](https://developer.atlassian.com/cloud/jira/platform/jira-entity-properties/)."
}

View File

@@ -23,6 +23,6 @@
"description": "Whether the issue type scheme is the default."
}
},
"additionalProperties": false,
"additionalProperties": true,
"description": "Details of an issue type scheme."
}

View File

@@ -15,6 +15,6 @@
"description": "The description of the issue type screen scheme."
}
},
"additionalProperties": false,
"additionalProperties": true,
"description": "Details of an issue type screen scheme."
}

View File

@@ -155,6 +155,6 @@
}
}
},
"additionalProperties": false,
"additionalProperties": true,
"description": "Details about an issue type."
}

View File

@@ -255,6 +255,6 @@
}
}
},
"additionalProperties": false,
"additionalProperties": true,
"description": "The details of votes on an issue."
}

View File

@@ -101,6 +101,6 @@
}
}
},
"additionalProperties": false,
"additionalProperties": true,
"description": "The details of watchers on an issue."
}

View File

@@ -28,26 +28,19 @@
},
"renderedFields": {
"type": "object",
"additionalProperties": {
"readOnly": true
},
"additionalProperties": true,
"description": "The rendered value of each field present on the issue.",
"readOnly": true
},
"properties": {
"type": "object",
"additionalProperties": {
"readOnly": true
},
"additionalProperties": true,
"description": "Details of the issue properties identified in the request.",
"readOnly": true
},
"names": {
"type": "object",
"additionalProperties": {
"type": "string",
"readOnly": true
},
"additionalProperties": true,
"description": "The ID and name of each field present on the issue.",
"readOnly": true
},
@@ -75,13 +68,7 @@
},
"versionedRepresentations": {
"type": "object",
"additionalProperties": {
"type": "object",
"additionalProperties": {
"readOnly": true
},
"readOnly": true
},
"additionalProperties": true,
"description": "The versions of each field on the issue.",
"readOnly": true
},
@@ -102,7 +89,7 @@
"description": "This field is not shown in schema / swagger, but exists in records and we use it as cursor fiekd. Updated may be absent. Added to solve the #4341"
}
},
"additionalProperties": {}
"additionalProperties": true
},
"projectId": {
"type": "string",
@@ -115,5 +102,5 @@
"readOnly": true
}
},
"additionalProperties": false
"additionalProperties": true
}

View File

@@ -41,6 +41,6 @@
}
}
},
"additionalProperties": false,
"additionalProperties": true,
"description": "Details of an application property."
}

View File

@@ -89,6 +89,6 @@
}
}
},
"additionalProperties": false,
"additionalProperties": true,
"description": "Lists of JQL reference data."
}

View File

@@ -175,6 +175,6 @@
}
}
},
"additionalProperties": false,
"additionalProperties": true,
"description": "List of all permission schemes."
}

View File

@@ -15,6 +15,6 @@
"type": ["null", "string"]
}
},
"additionalProperties": false,
"additionalProperties": true,
"description": "Details about permissions."
}

View File

@@ -33,15 +33,11 @@
},
"urls": {
"type": "object",
"additionalProperties": {
"type": "string",
"format": "uri",
"readOnly": true
},
"additionalProperties": true,
"description": "The list of avatar icon URLs.",
"readOnly": true
}
},
"additionalProperties": false,
"additionalProperties": true,
"description": "List of project avatars."
}

View File

@@ -22,6 +22,6 @@
"description": "The description of the project category. Required on create, optional on update."
}
},
"additionalProperties": false,
"additionalProperties": true,
"description": "A project category."
}

View File

@@ -7,6 +7,6 @@
"description": "The email address."
}
},
"additionalProperties": false,
"additionalProperties": true,
"description": "A project's sender email address."
}

View File

@@ -19,6 +19,6 @@
"description": "The name of the issue level security item."
}
},
"additionalProperties": false,
"additionalProperties": true,
"description": "Details about a security scheme."
}

View File

@@ -28,6 +28,6 @@
"readOnly": true
}
},
"additionalProperties": false,
"additionalProperties": true,
"description": "Details about a project type."
}

View File

@@ -71,11 +71,7 @@
},
"roles": {
"type": "object",
"additionalProperties": {
"type": "string",
"format": "uri",
"readOnly": true
},
"additionalProperties": true,
"description": "The name and self URL for each role defined in the project. For more information, see [Create project role](#api-rest-api-3-role-post).",
"readOnly": true
},
@@ -123,9 +119,7 @@
},
"properties": {
"type": "object",
"additionalProperties": {
"readOnly": true
},
"additionalProperties": true,
"description": "Map of project properties",
"readOnly": true
},
@@ -176,6 +170,6 @@
"readOnly": true
}
},
"additionalProperties": false,
"additionalProperties": true,
"description": "Details about a project."
}

View File

@@ -45,6 +45,6 @@
"type": "object"
}
},
"additionalProperties": false,
"additionalProperties": true,
"description": "A screen scheme."
}

View File

@@ -12,6 +12,6 @@
"description": "The name of the screen tab field. Required on create and update. The maximum length is 255 characters."
}
},
"additionalProperties": false,
"additionalProperties": true,
"description": "A screen tab field."
}

View File

@@ -14,6 +14,6 @@
"description": "The name of the screen tab. The maximum length is 255 characters."
}
},
"additionalProperties": false,
"additionalProperties": true,
"description": "A screen tab."
}

View File

@@ -67,6 +67,6 @@
}
}
},
"additionalProperties": false,
"additionalProperties": true,
"description": "Details about the Jira instance."
}

View File

@@ -17,6 +17,6 @@
"readOnly": true
}
},
"additionalProperties": false,
"additionalProperties": true,
"description": "Details about the time tracking provider."
}

View File

@@ -228,7 +228,7 @@
}
}
},
"additionalProperties": false,
"additionalProperties": true,
"description": "A user with details as permitted by the user's Atlassian Account privacy settings. However, be aware of these exceptions:\n\n * User record deleted from Atlassian: This occurs as the result of a right to be forgotten request. In this case, `displayName` provides an indication and other parameters have default values or are blank (for example, email is blank).\n * User record corrupted: This occurs as a results of events such as a server import and can only happen to deleted users. In this case, `accountId` returns *unknown* and all other parameters have fallback values.\n * User record unavailable: This usually occurs due to an internal service outage. In this case, all parameters have fallback values.",
"xml": {
"name": "user"

View File

@@ -22,9 +22,7 @@
},
"issueTypeMappings": {
"type": "object",
"additionalProperties": {
"type": "string"
},
"additionalProperties": true,
"description": "The issue type to workflow mappings, where each mapping is an issue type ID and workflow name pair. Note that an issue type can only be mapped to one workflow in a workflow scheme."
},
"originalDefaultWorkflow": {
@@ -34,10 +32,7 @@
},
"originalIssueTypeMappings": {
"type": "object",
"additionalProperties": {
"type": "string",
"readOnly": true
},
"additionalProperties": true,
"description": "For draft workflow schemes, this property is the issue type to workflow mappings for the original workflow scheme, where each mapping is an issue type ID and workflow name pair. Note that an issue type can only be mapped to one workflow in a workflow scheme.",
"readOnly": true
},
@@ -301,6 +296,6 @@
"readOnly": true
}
},
"additionalProperties": false,
"additionalProperties": true,
"description": "Details about a workflow scheme."
}

View File

@@ -33,9 +33,7 @@
},
"issueTypeMappings": {
"type": "object",
"additionalProperties": {
"type": "string"
},
"additionalProperties": true,
"description": "The issue type to workflow mappings, where each mapping is an issue type ID and workflow name pair. Note that an issue type can only be mapped to one workflow in a workflow scheme."
},
"originalDefaultWorkflow": {
@@ -45,10 +43,7 @@
},
"originalIssueTypeMappings": {
"type": "object",
"additionalProperties": {
"type": "string",
"readOnly": true
},
"additionalProperties": true,
"description": "For draft workflow schemes, this property is the issue type to workflow mappings for the original workflow scheme, where each mapping is an issue type ID and workflow name pair. Note that an issue type can only be mapped to one workflow in a workflow scheme.",
"readOnly": true
},

View File

@@ -22,9 +22,7 @@
},
"issueTypeMappings": {
"type": "object",
"additionalProperties": {
"type": "string"
},
"additionalProperties": true,
"description": "The issue type to workflow mappings, where each mapping is an issue type ID and workflow name pair. Note that an issue type can only be mapped to one workflow in a workflow scheme."
},
"originalDefaultWorkflow": {
@@ -34,10 +32,7 @@
},
"originalIssueTypeMappings": {
"type": "object",
"additionalProperties": {
"type": "string",
"readOnly": true
},
"additionalProperties": true,
"description": "For draft workflow schemes, this property is the issue type to workflow mappings for the original workflow scheme, where each mapping is an issue type ID and workflow name pair. Note that an issue type can only be mapped to one workflow in a workflow scheme.",
"readOnly": true
},

View File

@@ -364,6 +364,7 @@ class Issues(IncrementalJiraStream):
fields = [
"assignee",
"attachment",
"components",
"created",
"creator",
"description",