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 Instagram: add new fields for streams StoryInsights and MediaInsights #41937

Merged
merged 12 commits into from
Jul 29, 2024

Conversation

im-voracity
Copy link
Contributor

What

New metrics for StoryInsights and MediaInsights streams:
StoryInsights: follows, profile_visits, shares, total_interactions.
MediaInsights: follows, profile_visits, clips_replay_count, ig_reels_aggregated_all_plays_count.
Also changed description for ig_reels_avg_watch_time and ig_reels_video_view_total_time that were wrong, since Instagram uses milliseconds for those metrics and not seconds.
Issue: #40610

How

Added new fields to requests query, updated schemas and tests to reflect the changes.

Review guide

  1. source-instagram/schemas/media_insights.json
  2. source-instagram/schemas/story_insights.json
  3. source-instagram/source_instagram/manifest.yaml
  4. source-instagram/unit_tests/resource/
  5. source-instagram/unit_tests/resource/http/response/media_insights_for_carousel_album.json
  6. source-instagram/unit_tests/resource/http/response/media_insights_for_general_media.json
  7. source-instagram/unit_tests/resource/http/response/media_insights_for_reels.json
  8. airbyte-integrations/connectors/source-instagram/unit_tests/resource/http/response/media_insights_for_video.json
  9. source-instagram/unit_tests/resource/http/response/story_insights_for_story_insights_happy_path.json

User Impact

New metrics available for affected streams

Can this PR be safely reverted and rolled back?

  • YES 💚
  • NO ❌

Context: Some metrics were deprecated in newer versions of instagram API and although the connector removed the deprecated fields, it didn't added the new metrics available. This PR focus on bringing some of them, since the remaining ones are more complex.

API Reference for all the metrics available can be found here.

Copy link

vercel bot commented Jul 13, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
airbyte-docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jul 29, 2024 2:30pm

@CLAassistant
Copy link

CLAassistant commented Jul 13, 2024

CLA assistant check
All committers have signed the CLA.

@natikgadzhi
Copy link
Contributor

natikgadzhi commented Jul 14, 2024

/format-fix

Format-fix job started... Check job output.

❌ Job failed.

@natikgadzhi
Copy link
Contributor

Thank you for this! Let me run CI on this and fix formatting, let's see how things look then

@im-voracity
Copy link
Contributor Author

im-voracity commented Jul 14, 2024

Do I have to do something to allow you to run this?

It seems it tried to run on my repo and got an error because of that

@natikgadzhi
Copy link
Contributor

natikgadzhi commented Jul 20, 2024

/format-fix

Format-fix job started... Check job output.

✅ Changes applied successfully. (c8609de)

@im-voracity
Copy link
Contributor Author

Any updates on this review?

@natikgadzhi
Copy link
Contributor

The changes make sense to me, but the team that owns Instagram is pretty backlogged. ;(

@bazarnov maybe I can convince you resolve the conflicts and take a look? ;)

@bazarnov
Copy link
Collaborator

@natikgadzhi No problem; I'll take a look. However, this is a private repo I don't have access to. Thus, the conflicts must be resolved by the repo maintainer @im-voracity (I believe this is you). Merging with master (pull) is enough to list and resolve the conflicts (there are a couple of lines of code to accept and move your changes on top of it).

Copy link
Collaborator

@bazarnov bazarnov left a comment

Choose a reason for hiding this comment

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

The changes look good to me, this is not a Breaking Change, thus we should be safe to proceed.

@im-voracity Poke @marcosmarxm when the conflicts are resolved from your side, please.

Thank you for the contribution!

Copy link
Member

@marcosmarxm marcosmarxm left a comment

Choose a reason for hiding this comment

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

LGTM!

@natikgadzhi natikgadzhi merged commit b4bda3b into airbytehq:master Jul 29, 2024
33 checks passed
@marcosmarxm
Copy link
Member

Hello your feedback matters a lot to us. Can you spare just 2 minutes to complete a survey? We’re dedicated to making the contributor experience even better, and your input is key to achieving excellence. Thank you for helping us improve!

@im-voracity im-voracity deleted the instagram-connector-update branch July 29, 2024 19:12
jtruty pushed a commit to jtruty/airbyte that referenced this pull request Aug 10, 2024
…aInsights (airbytehq#41937)

Co-authored-by: Natik Gadzhi <[email protected]>
Co-authored-by: Octavia Squidington III <[email protected]>
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 connectors/source/instagram
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants