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 Greenhouse #1076

Merged

Conversation

eugene-kulak
Copy link
Contributor

What

Add new source Greenhouse

How

Describe the solution

Checklist

  • Create config API model
  • Implement config persistence
  • Add persistence tests

Recommended reading order

  1. test.java
  2. component.ts
  3. the rest

@eugene-kulak eugene-kulak force-pushed the source-greenhouse branch 3 times, most recently from f9a475a to 30520ad Compare November 27, 2020 00:45
@eugene-kulak eugene-kulak changed the title WIP: Source Greenhouse Source Greenhouse Nov 27, 2020
@eugene-kulak
Copy link
Contributor Author

eugene-kulak commented Nov 27, 2020

based on #1068 - not anymore, rebased on master

@eugene-kulak eugene-kulak force-pushed the source-greenhouse branch 2 times, most recently from bb9c70e to 8aa0c1a Compare December 1, 2020 23:37
Copy link
Contributor

@sherifnada sherifnada left a comment

Choose a reason for hiding this comment

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

This is pretty close to shipping, the main two things remaining are:

  1. merge master to pick up the changes in this PR Freshdesk fixes #1145 and resolve any conflicts
  2. run ./tools/integrations/manage.sh build airbyte-integrations/connectors/source-greenhouse from the repo root and verify the tests are passing

def __init__(self, *args, **kwargs):
super().__init__(*args, **kwargs)

# FIXME: patch missing endpoint
Copy link
Contributor

Choose a reason for hiding this comment

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

what's this comment about?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

The current Greenhouse package doesn't support custom_fields endpoint, so I have to patch internals manually here. I have created a PR for the Greenhouse package, but it doesn't seem to be very much alive.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I have improved the comment to clarify this

self._uris["direct"]["custom_fields"] = {"list": "custom_fields", "retrieve": "custom_field/{id}"}

def __getattr__(self, key):
# FIXME: patch auth object to avoid bug with serialization of None
Copy link
Contributor

Choose a reason for hiding this comment

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

is this suppsed to be done in this PR?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

No, the latest package has an issue that is fixed in the master branch, we just need it to be released to drop this line

@@ -0,0 +1,45 @@
# Greenhouse

## Overview
Copy link
Contributor

Choose a reason for hiding this comment

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

Awesome

@eugene-kulak
Copy link
Contributor Author

./tools/integrations/manage.sh build airbyte-integrations/connectors/source-greenhouse

Test run finished after 63178 ms
[         2 containers found      ]
[         0 containers skipped    ]
[         4 containers started    ]
[         0 containers aborted    ]
[         4 containers successful ]
[         0 containers failed     ]
[         5 tests found           ]
[         0 tests skipped         ]
[        10 tests started         ]
[         0 tests aborted         ]
[        10 tests successful      ]
[         0 tests failed          ]


Deprecated Gradle features were used in this build, making it incompatible with Gradle 7.0.
Use '--warning-mode all' to show the individual deprecation warnings.
See https://docs.gradle.org/6.7.1/userguide/command_line_interface.html#sec:command_line_warnings

BUILD SUCCESSFUL in 2m 32s
86 actionable tasks: 37 executed, 49 up-to-date

to use it append `&template=source.md` to standard MR URL
Copy link
Contributor

@sherifnada sherifnada left a comment

Choose a reason for hiding this comment

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

LGTM -- will merge in the morning

@sherifnada sherifnada mentioned this pull request Dec 5, 2020
@sherifnada sherifnada changed the base branch from master to sherif/merge-greenhouse December 5, 2020 02:30
@sherifnada sherifnada merged this pull request into airbytehq:sherif/merge-greenhouse Dec 5, 2020
davydov-d added a commit that referenced this pull request Dec 27, 2022
grubberr added a commit that referenced this pull request Jan 5, 2023
…n-usable-stream

Signed-off-by: Sergey Chvalyuk <grubberr@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants