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

Fix parsing of DBRef MongoDB objects #10276

Merged
merged 12 commits into from
Feb 22, 2022
Merged

Conversation

NahidOulmi
Copy link
Contributor

What

Related to this issue : #9604
The default codec registry does not handle MongoDB DBRef objects.
This PR provides a fix to this issue.

How

The Mongo team provides a DBRefCodecProvider for handling DBRef objects.
This PR provides a custom codec registry that is derived from the default codec registry.
Only difference is the added DBRefCodecProvider in here.

Community member or Airbyter

  • 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.

Integration & acceptation tests passed:
image

@github-actions github-actions bot added the area/connectors Connector related issues label Feb 11, 2022
@CLAassistant
Copy link

CLAassistant commented Feb 11, 2022

CLA assistant check
All committers have signed the CLA.

@github-actions github-actions bot added the area/documentation Improvements or additions to documentation label Feb 11, 2022
| 0.1.1 | 2021-09-21 | [6364](https://github.com/airbytehq/airbyte/pull/6364) | Source MongoDb: added support via TLS/SSL |
| 0.1.0 | 2021-08-30 | [5530](https://github.com/airbytehq/airbyte/pull/5530) | New source: MongoDb ported to java |
|:--------| :--- | :--- | :--- |
| 0.1.11 | 2022-02-11 | [10276](https://github.com/airbytehq/airbyte/pull/10276) | Create a custom codec registry to handle DBRef MongoDB objects |
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
| 0.1.11 | 2022-02-11 | [10276](https://github.com/airbytehq/airbyte/pull/10276) | Create a custom codec registry to handle DBRef MongoDB objects |
| 0.1.12 | 2022-02-11 | [10276](https://github.com/airbytehq/airbyte/pull/10276) | Create a custom codec registry to handle DBRef MongoDB objects |

@alafanechere alafanechere mentioned this pull request Feb 21, 2022
@alafanechere alafanechere temporarily deployed to more-secrets February 21, 2022 13:46 Inactive
Copy link
Contributor

@alafanechere alafanechere left a comment

Choose a reason for hiding this comment

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

I confirm that acceptance test are passing. I made minor changes to bump to the right version.

@alafanechere alafanechere self-assigned this Feb 21, 2022
@octavia-squidington-iii octavia-squidington-iii temporarily deployed to more-secrets February 21, 2022 14:24 Inactive
@alafanechere
Copy link
Contributor

Thanks @NahidOulmi for this contrib and glad it fixes your original problem.

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 community
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants