-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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
Changes from all commits
Commits
Show all changes
12 commits
Select commit
Hold shift + click to select a range
40a3ac4
pre-setup save
vovavovavovavova e5a3d2a
save labels
vovavovavovavova 959f323
modify schemas (test)
vovavovavovavova f44dd71
Merge remote-tracking branch 'origin/master' into valdemar/#4341_jira…
vovavovavovavova 07e6b24
rm unused
vovavovavovavova 4f8a3e8
add newlines to schemas
vovavovavovavova e422742
remove incremental as it was before
vovavovavovavova fc0c6d5
Merge remote-tracking branch 'origin/master' into valdemar/#4341_jira…
vovavovavovavova 317948d
fixing file
vovavovavovavova bdad966
Merge remote-tracking branch 'origin/master' into valdemar/#4341_jira…
vovavovavovavova e8cf077
format && fixes
vovavovavovavova f215e9a
update docs
vovavovavovavova File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 0 additions & 1 deletion
1
airbyte-integrations/connectors/source-jira/integration_tests/expected_label_records.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
28 changes: 28 additions & 0 deletions
28
airbyte-integrations/connectors/source-jira/integration_tests/inc_configured_catalog.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" | ||
} | ||
] | ||
} |
27 changes: 27 additions & 0 deletions
27
airbyte-integrations/connectors/source-jira/integration_tests/integration_test.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
69 changes: 30 additions & 39 deletions
69
airbyte-integrations/connectors/source-jira/source_jira/schemas/application_roles.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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": { | ||
"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" | ||
} |
80 changes: 29 additions & 51 deletions
80
airbyte-integrations/connectors/source-jira/source_jira/schemas/avatars.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" | ||
} |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
format
There was a problem hiding this comment.
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)