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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Source Monday: fix empty activity logs extractor #35696

Merged
merged 5 commits into from Feb 28, 2024

Conversation

artem1205
Copy link
Collaborator

What

Resolve https://github.com/airbytehq/oncall/issues/4395

How

pass if activity_logs value is null

Recommended reading order

  1. airbyte-integrations/connectors/source-monday/source_monday/extractor.py

馃毃 User Impact 馃毃

no breaking changes

Pre-merge Actions

Updating a connector

Community member or Airbyter

  • Grant edit access to maintainers (instructions)
  • Unit & integration tests added

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.

Signed-off-by: Artem Inzhyyants <artem.inzhyyants@gmail.com>
Copy link

vercel bot commented Feb 28, 2024

The latest updates on your projects. Learn more about Vercel for Git 鈫楋笌

1 Ignored Deployment
Name Status Preview Comments Updated (UTC)
airbyte-docs 猬滐笍 Ignored (Inspect) Visit Preview Feb 28, 2024 11:30am

Signed-off-by: Artem Inzhyyants <artem.inzhyyants@gmail.com>
@octavia-squidington-iii octavia-squidington-iii added the area/documentation Improvements or additions to documentation label Feb 28, 2024
@artem1205 artem1205 marked this pull request as ready for review February 28, 2024 10:44
@artem1205 artem1205 self-assigned this Feb 28, 2024
@octavia-squidington-iv octavia-squidington-iv requested a review from a team February 28, 2024 10:46
@@ -41,9 +41,8 @@ def extract_records(self, response: requests.Response) -> List[Record]:
return result

for board_data in response_body["data"]["boards"]:
if not isinstance(board_data, dict):
if not isinstance(board_data, dict) or not board_data.get("activity_logs"):
Copy link
Contributor

Choose a reason for hiding this comment

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

Should there be a unit test for the case when response_body["data"]["boards"] doesn't have the activity_logs section?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

added

Signed-off-by: Artem Inzhyyants <artem.inzhyyants@gmail.com>
Signed-off-by: Artem Inzhyyants <artem.inzhyyants@gmail.com>
Signed-off-by: Artem Inzhyyants <artem.inzhyyants@gmail.com>
@artem1205 artem1205 merged commit 7ac622c into master Feb 28, 2024
29 of 30 checks passed
@artem1205 artem1205 deleted the artem1205/source-monday-OC-4395 branch February 28, 2024 11:38
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/monday
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants