Skip to content

Commit

Permalink
Merge pull request #44 from airbytehq/marcos/include-missing-models
Browse files Browse the repository at this point in the history
Marcos/include missing models
  • Loading branch information
marcosmarxm authored Aug 8, 2024
2 parents a494544 + a4c5d3b commit 43d7bfb
Show file tree
Hide file tree
Showing 29 changed files with 1,458 additions and 0 deletions.
9 changes: 9 additions & 0 deletions connectors/source_jira/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# Airbyte source_jira dbt Package

This package contains dbt models for Airbyte Jira source.

What it includes:

- A complete source description
- ERD model for the source
- Diagram documentation for the source
34 changes: 34 additions & 0 deletions connectors/source_jira/dbt_project.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: source_jira

config-version: 2

version: 0.1.0

profile: airbyte

model-paths:
- models

macro-paths:
- macros

target-path: target

clean-targets:
- target
- dbt_modules
- logs

require-dbt-version:
- ">=1.0.0"
- <2.0.0

models:
source_jira:
materialized: view
staging:
materialized: view

vars:
airbyte_database: airbyte_default_database
airbyte_schema: airbyte_default_schema
48 changes: 48 additions & 0 deletions connectors/source_jira/models/source/issue_comments.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
version: 2

sources:
- name: source_jira
schema: "{{ var('airbyte_schema', target.schema) }}"
database: "{{ var('airbyte_database', target.database) }}"
loader: airbyte
loaded_at_field: _airbyte_extracted_at
tables:
- name: issue_comments
description: "Comments on Jira issues"
columns:
- name: self
description: "The URL of the comment"
data_type: string
- name: id
description: "The ID of the comment"
data_type: string
- name: issueId
description: "ID of the related issue"
data_type: string
- name: author
description: "The ID of the user who created the comment"
data_type: string
- name: body
description: "The comment text in Atlassian Document Format"
data_type: json
- name: renderedBody
description: "The rendered version of the comment"
data_type: string
- name: updateAuthor
description: "The ID of the user who updated the comment last"
data_type: json
- name: created
description: "The date and time at which the comment was created"
data_type: timestamp
- name: updated
description: "The date and time at which the comment was updated last"
data_type: timestamp
- name: visibility
description: "The group or role to which this item is visible"
data_type: json
- name: jsdPublic
description: "Whether the comment is visible in Jira Service Desk"
data_type: boolean
- name: properties
description: "A list of comment properties"
data_type: array
45 changes: 45 additions & 0 deletions connectors/source_jira/models/source/issue_fields.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
version: 2

sources:
- name: source_jira
schema: "{{ var('airbyte_schema', target.schema) }}"
database: "{{ var('airbyte_database', target.database) }}"
loader: airbyte
loaded_at_field: _airbyte_extracted_at
tables:
- name: issue_fields
description: "Fields associated with Jira issues"
columns:
- name: id
description: "The ID of the field"
data_type: string
- name: key
description: "The key of the field"
data_type: string
- name: name
description: "The name of the field"
data_type: string
- name: custom
description: "Whether the field is a custom field"
data_type: boolean
- name: orderable
description: "Whether the content of the field can be used to order lists"
data_type: boolean
- name: navigable
description: "Whether the field can be used as a column on the issue navigator"
data_type: boolean
- name: searchable
description: "Whether the content of the field can be searched"
data_type: boolean
- name: clauseNames
description: "The names that can be used to reference the field in an advanced search"
data_type: array
- name: scope
description: "The scope of the field"
data_type: json
- name: schema
description: "The data schema for the field"
data_type: json
- name: untranslatedName
description: "The untranslated name of the field"
data_type: string
33 changes: 33 additions & 0 deletions connectors/source_jira/models/source/issue_priorities.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
version: 2

sources:
- name: source_jira
schema: "{{ var('airbyte_schema', target.schema) }}"
database: "{{ var('airbyte_database', target.database) }}"
loader: airbyte
loaded_at_field: _airbyte_extracted_at
tables:
- name: issue_priorities
description: "Details of Jira issue priorities"
columns:
- name: self
description: "The URL of the issue priority"
data_type: string
- name: statusColor
description: "The color used to indicate the issue priority"
data_type: string
- name: description
description: "The description of the issue priority"
data_type: string
- name: iconUrl
description: "The URL of the icon for the issue priority"
data_type: string
- name: name
description: "The name of the issue priority"
data_type: string
- name: id
description: "The ID of the issue priority"
data_type: string
- name: isDefault
description: "Indicates if this issue priority is the default"
data_type: boolean
27 changes: 27 additions & 0 deletions connectors/source_jira/models/source/issue_resolutions.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
version: 2

sources:
- name: source_jira
schema: "{{ var('airbyte_schema', target.schema) }}"
database: "{{ var('airbyte_database', target.database) }}"
loader: airbyte
loaded_at_field: _airbyte_extracted_at
tables:
- name: issue_resolutions
description: "Details of Jira issue resolutions"
columns:
- name: self
description: "The URL of the issue resolution"
data_type: string
- name: id
description: "The ID of the issue resolution"
data_type: string
- name: description
description: "The description of the issue resolution"
data_type: string
- name: name
description: "The name of the issue resolution"
data_type: string
- name: isDefault
description: "Indicates if this is the default issue resolution"
data_type: boolean
69 changes: 69 additions & 0 deletions connectors/source_jira/models/source/issues.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
version: 2

sources:
- name: source_jira
schema: "{{ var('airbyte_schema', target.schema) }}"
database: "{{ var('airbyte_database', target.database) }}"
loader: airbyte
loaded_at_field: _airbyte_extracted_at
tables:
- name: issues
description: "Details of Jira issues"
columns:
- name: expand
description: "Expand options that include additional issue details in the response"
data_type: string
- name: id
description: "The unique ID of the issue"
data_type: string
- name: self
description: "The URL of the issue details"
data_type: string
- name: key
description: "The unique key of the issue"
data_type: string
- name: renderedFields
description: "The rendered value of each field present on the issue"
data_type: json
- name: properties
description: "Details of the issue properties identified in the request"
data_type: json
- name: names
description: "The ID and name of each field present on the issue"
data_type: json
- name: schema
description: "The schema describing each field present on the issue"
data_type: json
- name: transitions
description: "The transitions that can be performed on the issue"
data_type: json
- name: operations
description: "The operations that can be performed on the issue"
data_type: json
- name: editmeta
description: "The metadata for the fields on the issue that can be amended"
data_type: json
- name: changelog
description: "Details of changelogs associated with the issue"
data_type: json
- name: versionedRepresentations
description: "The versions of each field on the issue"
data_type: json
- name: fieldsToInclude
description: "Specify the fields to include in the fetched issues data"
data_type: json
- name: fields
description: "Details of various fields associated with the issue"
data_type: json
- name: projectId
description: "The ID of the project containing the issue"
data_type: string
- name: projectKey
description: "The key of the project containing the issue"
data_type: string
- name: created
description: "The timestamp when the issue was created"
data_type: timestamp
- name: updated
description: "The timestamp when the issue was last updated"
data_type: timestamp
60 changes: 60 additions & 0 deletions connectors/source_jira/models/source/project_components.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
version: 2

sources:
- name: source_jira
schema: "{{ var('airbyte_schema', target.schema) }}"
database: "{{ var('airbyte_database', target.database) }}"
loader: airbyte
loaded_at_field: _airbyte_extracted_at
tables:
- name: project_components
description: "Components of Jira projects"
columns:
- name: self
description: "The URL of the component"
data_type: string
- name: id
description: "The unique identifier for the component"
data_type: string
- name: name
description: "The unique name for the component in the project"
data_type: string
- name: description
description: "The description for the component"
data_type: string
- name: lead
description: "The user details for the component's lead user"
data_type: json
- name: leadUserName
description: "Deprecated: The username of the component's lead user"
data_type: string
- name: leadAccountId
description: "The accountId of the component's lead user"
data_type: string
- name: assigneeType
description: "The nominal user type used to determine the assignee for issues created with this component"
data_type: string
- name: assignee
description: "The details of the user associated with assigneeType"
data_type: json
- name: realAssigneeType
description: "The type of the assignee that is assigned to issues created with this component"
data_type: string
- name: realAssignee
description: "The user assigned to issues created with this component"
data_type: json
- name: isAssigneeTypeValid
description: "Whether a user is associated with assigneeType"
data_type: boolean
- name: project
description: "The key of the project the component is assigned to"
data_type: string
- name: projectId
description: "The ID of the project the component is assigned to"
data_type: integer
- name: componentBean
description: "Contains information about the component associated with the project"
data_type: json
- name: issueCount
description: "The total count of issues related to the project component"
data_type: integer
63 changes: 63 additions & 0 deletions connectors/source_jira/models/source/project_versions.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
version: 2

sources:
- name: source_jira
schema: "{{ var('airbyte_schema', target.schema) }}"
database: "{{ var('airbyte_database', target.database) }}"
loader: airbyte
loaded_at_field: _airbyte_extracted_at
tables:
- name: project_versions
description: "Details of Jira project versions"
columns:
- name: expand
description: "Use expand parameter to include additional information about the version in the response"
data_type: string
- name: self
description: "The URL of the version"
data_type: string
- name: id
description: "The unique ID of the version"
data_type: string
- name: description
description: "The description of the version"
data_type: string
- name: name
description: "The unique name assigned to the version"
data_type: string
- name: archived
description: "Indicates whether the version is archived"
data_type: boolean
- name: released
description: "Indicates whether the version has been released"
data_type: boolean
- name: startDate
description: "The start date of the version in ISO 8601 format (yyyy-mm-dd)"
data_type: date
- name: releaseDate
description: "The release date of the version in ISO 8601 format (yyyy-mm-dd)"
data_type: date
- name: overdue
description: "Indicates whether the version is overdue"
data_type: boolean
- name: userStartDate
description: "The date when work on this version is expected to begin, expressed in the instance's Day/Month/Year format"
data_type: string
- name: userReleaseDate
description: "The date when work on this version is expected to finish, expressed in the instance's Day/Month/Year format"
data_type: string
- name: project
description: "Deprecated field. Use projectId instead"
data_type: string
- name: projectId
description: "The ID of the project to which this version is connected"
data_type: integer
- name: moveUnfixedIssuesTo
description: "The URL of the self link to the version where all unfixed issues are moved when the version gets released"
data_type: string
- name: operations
description: "If 'operations' is expanded, provides a list of available operations for this version"
data_type: json
- name: issuesStatusForFixVersion
description: "If 'issuesstatus' is expanded, provides counts of issues in this version for status categories: to do, in progress, done, and unmapped"
data_type: json
Loading

0 comments on commit 43d7bfb

Please sign in to comment.