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 fetching and update schema for filters stream #9079

Merged
merged 6 commits into from
Dec 23, 2021

Conversation

Zirochkaa
Copy link
Contributor

@Zirochkaa Zirochkaa commented Dec 23, 2021

Bug-fix Request

Fixes #9017


Reason

Error was in filters stream. I believe that earlier following fields were sent by default without explicitly specifying that we want to receive these fields:

  • description
  • owner
  • jql
  • viewUrl
  • searchUrl
  • favourite
  • favouritedCount
  • sharePermissions
  • isWritable
  • subscriptions

Right now if someone wants to receive those fields they need to send additional parameter - expand in which put wanted fields (see docs, under QUERY PARAMETERS section).
That was the reason why tests were failing for that stream.

Confirmation

  • Was reproduced locally

How does the code change in the PR fix the issue?

The code change sends that expand parameter.

@Zirochkaa Zirochkaa self-assigned this Dec 23, 2021
@github-actions github-actions bot added area/connectors Connector related issues area/documentation Improvements or additions to documentation labels Dec 23, 2021
@Zirochkaa
Copy link
Contributor Author

Zirochkaa commented Dec 23, 2021

/test connector=source-jira

🕑 source-jira https://github.com/airbytehq/airbyte/actions/runs/1614985072
✅ source-jira https://github.com/airbytehq/airbyte/actions/runs/1614985072
Python tests coverage:

	 ---------- coverage: platform linux, python 3.8.10-final-0 -----------
	 Name                                                 Stmts   Miss  Cover
	 ------------------------------------------------------------------------
	 source_acceptance_test/__init__.py                       2      0   100%
	 source_acceptance_test/base.py                          10      4    60%
	 source_acceptance_test/config.py                        74      6    92%
	 source_acceptance_test/conftest.py                     109    109     0%
	 source_acceptance_test/plugin.py                        47     47     0%
	 source_acceptance_test/tests/__init__.py                 4      0   100%
	 source_acceptance_test/tests/test_core.py              242     96    60%
	 source_acceptance_test/tests/test_full_refresh.py       38      0   100%
	 source_acceptance_test/tests/test_incremental.py        69     38    45%
	 source_acceptance_test/utils/__init__.py                 6      0   100%
	 source_acceptance_test/utils/asserts.py                 37      2    95%
	 source_acceptance_test/utils/common.py                  54     17    69%
	 source_acceptance_test/utils/compare.py                 62     23    63%
	 source_acceptance_test/utils/connector_runner.py       110     48    56%
	 source_acceptance_test/utils/json_schema_helper.py     115     14    88%
	 ------------------------------------------------------------------------
	 TOTAL                                                  979    404    59%
	 ---------- coverage: platform linux, python 3.8.10-final-0 -----------
	 Name                      Stmts   Miss  Cover
	 ---------------------------------------------
	 source_jira/__init__.py       2      2     0%
	 source_jira/source.py        35     35     0%
	 source_jira/streams.py      532    532     0%
	 ---------------------------------------------
	 TOTAL                       569    569     0%

Python short test summary info:

=========================== short test summary info ============================
SKIPPED [1] ../usr/local/lib/python3.7/site-packages/source_acceptance_test/plugin.py:56: Skipping TestFullRefresh.test_sequential_reads because not found in the config
SKIPPED [1] ../usr/local/lib/python3.7/site-packages/source_acceptance_test/plugin.py:56: Skipping TestIncremental.test_two_sequential_reads because not found in the config
================== 18 passed, 2 skipped in 160.97s (0:02:40) ===================

@jrhizor jrhizor temporarily deployed to more-secrets December 23, 2021 09:36 Inactive
@Zirochkaa
Copy link
Contributor Author

Zirochkaa commented Dec 23, 2021

/test connector=source-jira

🕑 source-jira https://github.com/airbytehq/airbyte/actions/runs/1615929919
❌ source-jira https://github.com/airbytehq/airbyte/actions/runs/1615929919
🐛 https://gradle.com/s/uq4w64f5dbwve

@Zirochkaa Zirochkaa temporarily deployed to more-secrets December 23, 2021 14:28 Inactive
@jrhizor jrhizor temporarily deployed to more-secrets December 23, 2021 14:29 Inactive
@Zirochkaa Zirochkaa temporarily deployed to more-secrets December 23, 2021 14:31 Inactive
@Zirochkaa
Copy link
Contributor Author

Zirochkaa commented Dec 23, 2021

/test connector=source-jira

🕑 source-jira https://github.com/airbytehq/airbyte/actions/runs/1615993401
✅ source-jira https://github.com/airbytehq/airbyte/actions/runs/1615993401
Python tests coverage:

	 ---------- coverage: platform linux, python 3.8.10-final-0 -----------
	 Name                                                 Stmts   Miss  Cover
	 ------------------------------------------------------------------------
	 source_acceptance_test/__init__.py                       2      0   100%
	 source_acceptance_test/base.py                          10      4    60%
	 source_acceptance_test/config.py                        74      6    92%
	 source_acceptance_test/conftest.py                     109    109     0%
	 source_acceptance_test/plugin.py                        47     47     0%
	 source_acceptance_test/tests/__init__.py                 4      0   100%
	 source_acceptance_test/tests/test_core.py              242     96    60%
	 source_acceptance_test/tests/test_full_refresh.py       38      0   100%
	 source_acceptance_test/tests/test_incremental.py        69     38    45%
	 source_acceptance_test/utils/__init__.py                 6      0   100%
	 source_acceptance_test/utils/asserts.py                 37      2    95%
	 source_acceptance_test/utils/common.py                  54     17    69%
	 source_acceptance_test/utils/compare.py                 62     23    63%
	 source_acceptance_test/utils/connector_runner.py       110     48    56%
	 source_acceptance_test/utils/json_schema_helper.py     115     14    88%
	 ------------------------------------------------------------------------
	 TOTAL                                                  979    404    59%
	 ---------- coverage: platform linux, python 3.8.10-final-0 -----------
	 Name                      Stmts   Miss  Cover
	 ---------------------------------------------
	 source_jira/__init__.py       2      2     0%
	 source_jira/source.py        35     35     0%
	 ---------- coverage: platform linux, python 3.8.10-final-0 -----------/actions-runner/_work/airbyte/airbyte/airbyte-integrations/connectors/source-jira/.venv/lib/python3.8/site-packages/coverage/control.py:768: CoverageWarning: No data was collected. (no-data-collected)
	 source_jira/streams.py      532    532     0%
	 ---------------------------------------------
	 TOTAL                       569    569     0%

Python short test summary info:

=========================== short test summary info ============================
SKIPPED [1] ../usr/local/lib/python3.7/site-packages/source_acceptance_test/plugin.py:56: Skipping TestFullRefresh.test_sequential_reads because not found in the config
SKIPPED [1] ../usr/local/lib/python3.7/site-packages/source_acceptance_test/plugin.py:56: Skipping TestIncremental.test_two_sequential_reads because not found in the config
================== 18 passed, 2 skipped in 158.79s (0:02:38) ===================

@jrhizor jrhizor temporarily deployed to more-secrets December 23, 2021 14:48 Inactive
@Zirochkaa Zirochkaa temporarily deployed to more-secrets December 23, 2021 14:51 Inactive
@Zirochkaa
Copy link
Contributor Author

Zirochkaa commented Dec 23, 2021

/test connector=source-jira

🕑 source-jira https://github.com/airbytehq/airbyte/actions/runs/1616085729
✅ source-jira https://github.com/airbytehq/airbyte/actions/runs/1616085729
Python tests coverage:

	 ---------- coverage: platform linux, python 3.8.10-final-0 -----------
	 Name                                                 Stmts   Miss  Cover
	 ------------------------------------------------------------------------
	 source_acceptance_test/__init__.py                       2      0   100%
	 source_acceptance_test/base.py                          10      4    60%
	 source_acceptance_test/config.py                        74      6    92%
	 source_acceptance_test/conftest.py                     109    109     0%
	 source_acceptance_test/plugin.py                        47     47     0%
	 source_acceptance_test/tests/__init__.py                 4      0   100%
	 source_acceptance_test/tests/test_core.py              242     96    60%
	 source_acceptance_test/tests/test_full_refresh.py       38      0   100%
	 source_acceptance_test/tests/test_incremental.py        69     38    45%
	 source_acceptance_test/utils/__init__.py                 6      0   100%
	 source_acceptance_test/utils/asserts.py                 37      2    95%
	 source_acceptance_test/utils/common.py                  54     17    69%
	 source_acceptance_test/utils/compare.py                 62     23    63%
	 source_acceptance_test/utils/connector_runner.py       110     48    56%
	 source_acceptance_test/utils/json_schema_helper.py     115     14    88%
	 ------------------------------------------------------------------------
	 TOTAL                                                  979    404    59%
	 ---------- coverage: platform linux, python 3.8.10-final-0 -----------
	 Name                      Stmts   Miss  Cover
	 ---------------------------------------------
	 source_jira/__init__.py       2      2     0%
	 source_jira/source.py        35     35     0%
	 source_jira/streams.py      532    532     0%
	 source_jira/source.py        35     35     0%/actions-runner/_work/airbyte/airbyte/airbyte-integrations/connectors/source-jira/.venv/lib/python3.8/site-packages/coverage/control.py:768: CoverageWarning: No data was collected. (no-data-collected)
	   self._warn("No data was collected.", slug="no-data-collected")
	 ---------------------------------------------
	 TOTAL                       569    569     0%

Python short test summary info:

=========================== short test summary info ============================
SKIPPED [1] ../usr/local/lib/python3.7/site-packages/source_acceptance_test/plugin.py:56: Skipping TestFullRefresh.test_sequential_reads because not found in the config
SKIPPED [1] ../usr/local/lib/python3.7/site-packages/source_acceptance_test/plugin.py:56: Skipping TestIncremental.test_two_sequential_reads because not found in the config
================== 18 passed, 2 skipped in 157.40s (0:02:37) ===================

@Zirochkaa Zirochkaa temporarily deployed to more-secrets December 23, 2021 15:15 Inactive
@jrhizor jrhizor temporarily deployed to more-secrets December 23, 2021 15:15 Inactive
@Zirochkaa
Copy link
Contributor Author

Zirochkaa commented Dec 23, 2021

/publish connector=connectors/source-jira

🕑 connectors/source-jira https://github.com/airbytehq/airbyte/actions/runs/1616166841
✅ connectors/source-jira https://github.com/airbytehq/airbyte/actions/runs/1616166841

@jrhizor jrhizor temporarily deployed to more-secrets December 23, 2021 15:40 Inactive
@Zirochkaa Zirochkaa merged commit 7f14731 into master Dec 23, 2021
@Zirochkaa Zirochkaa deleted the oleh/9017-fix-filters-stream branch December 23, 2021 15:53
@Zirochkaa Zirochkaa temporarily deployed to more-secrets December 23, 2021 15:53 Inactive
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/connectors Connector related issues area/documentation Improvements or additions to documentation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Source Jira: correct CI test failure
3 participants