-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Allow IssuesStreams to be filtered with JQL [MFLP-7] (#100)
* fix: Change date range to properly use the end_date param * Quote the start_date / end_date params for future handling of date parsing * Implement new issues_jql param, allows arbitrary filtering * Update README with new setting param * Simplify jql expression creation * Add available env vars to pytest report header * Nest issues JQL setting --------- Co-authored-by: Edgar Ramírez Mondragón <[email protected]>
- Loading branch information
1 parent
1f83650
commit 7a46e3e
Showing
5 changed files
with
91 additions
and
28 deletions.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,30 +1,47 @@ | ||
version: 1 | ||
send_anonymous_usage_stats: true | ||
project_id: "tap-jira" | ||
project_id: tap-jira | ||
default_environment: dev | ||
plugins: | ||
extractors: | ||
- name: "tap-jira" | ||
namespace: "tap_jira" | ||
- name: tap-jira | ||
namespace: tap_jira | ||
pip_url: -e . | ||
capabilities: | ||
- state | ||
- catalog | ||
- discover | ||
- about | ||
- stream-maps | ||
settings_group_validation: | ||
- [domain, api_token, email] | ||
settings: | ||
- name: start_date | ||
kind: date_iso8601 | ||
description: Earliest record date to sync | ||
- name: end_date | ||
kind: date_iso8601 | ||
description: Latest record date to sync | ||
- name: domain | ||
- name: auth_type | ||
- name: auth.flow | ||
- name: auth.access_token | ||
kind: password | ||
- name: auth.username | ||
- name: auth.password | ||
kind: password | ||
kind: string | ||
description: The Domain for your Jira account, e.g. meltano.atlassian.net | ||
- name: api_token | ||
kind: string | ||
description: Jira API Token | ||
sensitive: true | ||
- name: email | ||
kind: string | ||
description: The user email for your Jira account | ||
- name: page_size.issues | ||
kind: integer | ||
value: 100 | ||
description: Page size for issues stream | ||
- name: stream_options.issues.jql | ||
kind: string | ||
description: A JQL query to filter issues | ||
environments: | ||
- name: dev | ||
- name: staging | ||
- name: prod | ||
venv: | ||
backend: uv |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,20 @@ | ||
"""Test Configuration.""" | ||
|
||
from __future__ import annotations | ||
|
||
import os | ||
import typing as t | ||
|
||
if t.TYPE_CHECKING: | ||
import pathlib | ||
|
||
import pytest | ||
|
||
|
||
def pytest_report_header( | ||
config: pytest.Config, # noqa: ARG001 | ||
start_path: pathlib.Path, # noqa: ARG001 | ||
) -> list[str] | str: | ||
"""Add a header to the test report.""" | ||
tap_jira_vars = [var for var in os.environ if var.startswith("TAP_JIRA")] | ||
return f"tap-jira environment variables: {tap_jira_vars}" |