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 Onesignal: Update connectors spec; fix incremental sync #24076

Merged
merged 11 commits into from
Mar 16, 2023

Conversation

artem1205
Copy link
Collaborator

What

Resolving #23535

How

Describe the solution

Recommended reading order

  1. x.java
  2. y.python

🚨 User Impact 🚨

Due to changes on Onesignal side, we cannot retrieve application keys no more (empty fields in response).
User has to fill in application data to retrieve records from app-related streams. (see screen)
image

Pre-merge Checklist

Expand the relevant checklist and delete the others.

Updating a connector

Community member or Airbyter

  • Grant edit access to maintainers (instructions)
  • Secrets in the connector's spec are annotated with airbyte_secret
  • Unit & integration tests added and passing. Community members, please provide proof of success locally e.g: screenshot or copy-paste unit, integration, and acceptance test output. To run acceptance tests for a Python connector, follow instructions in the README. For java connectors run ./gradlew :airbyte-integrations:connectors:<name>:integrationTest.
  • Code reviews completed
  • Documentation updated
    • Connector's README.md
    • Connector's bootstrap.md. See description and examples
    • Changelog updated in docs/integrations/<source or destination>/<name>.md including changelog. See changelog example
  • PR name follows PR naming conventions

Airbyter

If this is a community PR, the Airbyte engineer reviewing this PR is responsible for the below items.

  • Create a non-forked branch based on this PR and test the below items on it
  • Build is successful
  • If new credentials are required for use in CI, add them to GSM. Instructions.
  • /test connector=connectors/<name> command is passing
  • New Connector version released on Dockerhub and connector version bumped by running the /publish command described here

@octavia-squidington-iii octavia-squidington-iii added the area/documentation Improvements or additions to documentation label Mar 14, 2023
@artem1205
Copy link
Collaborator Author

artem1205 commented Mar 14, 2023

/test connector=connectors/source-onesignal

🕑 connectors/source-onesignal https://github.com/airbytehq/airbyte/actions/runs/4420921042
✅ connectors/source-onesignal https://github.com/airbytehq/airbyte/actions/runs/4420921042
Python tests coverage:

Name                           Stmts   Miss  Cover
--------------------------------------------------
source_onesignal/__init__.py       2      0   100%
source_onesignal/source.py        26      3    88%
source_onesignal/streams.py       99     18    82%
--------------------------------------------------
TOTAL                            127     21    83%

Build Passed

Test summary info:

=========================== short test summary info ============================
SKIPPED [1] ../usr/local/lib/python3.9/site-packages/connector_acceptance_test/plugin.py:63: Skipping TestIncremental.test_two_sequential_reads: not found in the config.
SKIPPED [1] ../usr/local/lib/python3.9/site-packages/connector_acceptance_test/tests/test_core.py:109: Backward compatibility tests are disabled for version 0.1.2.
SKIPPED [1] ../usr/local/lib/python3.9/site-packages/connector_acceptance_test/tests/test_core.py:518: Backward compatibility tests are disabled for version 0.1.2.
================= 32 passed, 3 skipped, 36 warnings in 29.86s ==================

@artem1205 artem1205 requested review from lazebnyi and davydov-d March 14, 2023 23:20
@artem1205 artem1205 requested review from a team March 15, 2023 16:54
LABEL io.airbyte.version=0.1.2
LABEL io.airbyte.version=0.1.3
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Due to changes on Onesignal side, we cannot retrieve application keys no more (empty fields in response).
User has to fill in application data to retrieve records from app-related streams. (see screen)

I think this makes this a breaking change?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

updated

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Deleting all the expected records doesn't seem right

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is not our data. I'll add expected records once we'll seed our new account.

@artem1205 artem1205 requested a review from evantahler March 16, 2023 11:09
Copy link
Contributor

@evantahler evantahler left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍, assuming seeding our account will happen soon

@artem1205
Copy link
Collaborator Author

artem1205 commented Mar 16, 2023

/publish connector=connectors/source-onesignal

🕑 Publishing the following connectors:
connectors/source-onesignal
https://github.com/airbytehq/airbyte/actions/runs/4440445220


Connector Did it publish? Were definitions generated?
connectors/source-onesignal

if you have connectors that successfully published but failed definition generation, follow step 4 here ▶️

@artem1205 artem1205 merged commit 326387b into master Mar 16, 2023
@artem1205 artem1205 deleted the artem1205/source-onesignal-to-cloud branch March 16, 2023 19:03
adriennevermorel pushed a commit to adriennevermorel/airbyte that referenced this pull request Mar 17, 2023
…bytehq#24076)

* Source Onesignal: Update connectors spec; fix incremental sync

* Source Onesignal: Update connectors spec; fix incremental sync

* Source Onesignal: fix unit tests

* Source Onesignal: fix tests

* Source Onesignal: update config

* Source Onesignal: update schemas

* Source Onesignal: add order

* Source Onesignal: update docs

* Source Onesignal: bump version

* auto-bump connector version

---------

Co-authored-by: Octavia Squidington III <octavia-squidington-iii@users.noreply.github.com>
erohmensing pushed a commit that referenced this pull request Mar 22, 2023
)

* Source Onesignal: Update connectors spec; fix incremental sync

* Source Onesignal: Update connectors spec; fix incremental sync

* Source Onesignal: fix unit tests

* Source Onesignal: fix tests

* Source Onesignal: update config

* Source Onesignal: update schemas

* Source Onesignal: add order

* Source Onesignal: update docs

* Source Onesignal: bump version

* auto-bump connector version

---------

Co-authored-by: Octavia Squidington III <octavia-squidington-iii@users.noreply.github.com>
erohmensing pushed a commit that referenced this pull request Mar 22, 2023
)

* Source Onesignal: Update connectors spec; fix incremental sync

* Source Onesignal: Update connectors spec; fix incremental sync

* Source Onesignal: fix unit tests

* Source Onesignal: fix tests

* Source Onesignal: update config

* Source Onesignal: update schemas

* Source Onesignal: add order

* Source Onesignal: update docs

* Source Onesignal: bump version

* auto-bump connector version

---------

Co-authored-by: Octavia Squidington III <octavia-squidington-iii@users.noreply.github.com>
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 connectors/source/onesignal
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants