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

feat: Add Instagram to API endpoint #2655

Merged
merged 3 commits into from
Dec 8, 2024
Merged

feat: Add Instagram to API endpoint #2655

merged 3 commits into from
Dec 8, 2024

Conversation

kimadactyl
Copy link
Member

@kimadactyl kimadactyl commented Dec 8, 2024

Allows access to instagram field on the GraphQL endpoint

Checklist:

  • I have performed a self-review of my own code,
  • I have made corresponding changes to the documentation,
  • I have added tests that prove my fix is effective or that my feature works,

Resolves #2654

Description

  • Adds IG methods to endpoint
  • Updates Bruno collections
  • Adds tests

Motivation and Context

Instagram is one of the most crucial communications platforms for groups.

Type of change

  • New feature (non-breaking change which adds functionality)
  • Documentation update

How Has This Been Tested?

I have tested the endpoints in Bruno and added in an extra test.

Huly®: PC-2662

Gemfile.lock Show resolved Hide resolved
@kimadactyl kimadactyl self-assigned this Dec 8, 2024
@@ -288,6 +288,10 @@ def twitter_url
"https://twitter.com/#{twitter_handle}" if twitter_handle.present?
end

def instagram_url
"https://instagram.com/#{instagram_handle}" if instagram_handle.present?
Copy link
Member

Choose a reason for hiding this comment

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

Couldn't immediately see where the instagram_handle is coming from - but appears it was already part of the model. Was it previously not being rendered as a link?

Copy link
Member

@katjam katjam left a comment

Choose a reason for hiding this comment

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

Doesn't seem like it can hurt anything!

@kimadactyl kimadactyl merged commit 0f03893 into main Dec 8, 2024
2 checks passed
@kimadactyl kimadactyl deleted the add-instagram branch December 8, 2024 17:12
@kimadactyl
Copy link
Member Author

confirmed working on staging

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.

Add Instagram to API endpoints
2 participants