Skip to content

Conversation

@sarwaan001
Copy link
Contributor

@sarwaan001 sarwaan001 commented Feb 12, 2025

  • Pause follow endpoint for ccr
  • Unfollow Endpoint for ccr

@sarwaan001 sarwaan001 marked this pull request as ready for review February 13, 2025 10:26
Copilot AI review requested due to automatic review settings February 13, 2025 10:26
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

PR Overview

This pull request introduces new functionality to pause the follow process for CCR as well as updates the existing unfollow endpoint in the ElastomerClient. Key changes include:

  • Adding a new pause_follow method with documentation and a corresponding API call
  • Updating the unfollow method documentation to clarify usage and pre-conditions
  • Enhancing test coverage by adding helper methods and tests for follow, pause_follow, and unfollow endpoints
  • Switching test hook syntax from the default to before/after :each blocks for consistency

Changes

File Description
lib/elastomer_client/client/ccr.rb Added pause_follow endpoint; updated unfollow docs
test/client/ccr_test.rb Added tests for pause_follow and unfollow endpoints

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

Comments suppressed due to low confidence (1)

lib/elastomer_client/client/ccr.rb:42

  • [nitpick] The comment for 'follower_index' could be reworded to clarify the intent, e.g., 'follower_index - String name of the follower index to pause'.
# follower_index - String name of the follower index pause

Tip: If you use Visual Studio Code, you can request a review from Copilot before you push from the "Source Control" tab. Learn more

@sarwaan001 sarwaan001 changed the title Feature: Pause Follow Endpoint Pause Follow and Unfollow endpoints Feb 13, 2025
Copy link
Contributor

@jherns jherns left a comment

Choose a reason for hiding this comment

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

This looks really good. I left a few comments and suggestions. I really liked the helper functions you added to the tests

sarwaan001 and others added 6 commits February 13, 2025 13:06
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: John Hernley <jherns@github.com>
Co-authored-by: John Hernley <jherns@github.com>
Co-authored-by: John Hernley <jherns@github.com>
Co-authored-by: John Hernley <jherns@github.com>
@sarwaan001 sarwaan001 merged commit 283b68a into main Feb 13, 2025
5 checks passed
@sarwaan001 sarwaan001 deleted the sarwaan001/pause_follow_endpoint branch February 13, 2025 20:15
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.

4 participants