Skip to content
This repository has been archived by the owner on Sep 9, 2022. It is now read-only.

Paginate group membership #248

Merged
merged 2 commits into from
Aug 1, 2016
Merged

Conversation

raylu
Copy link
Contributor

@raylu raylu commented Jul 22, 2016

2e55bee#diff-590760686c68c2507617371c9719e4d3 paginates groups but not their members

@coveralls
Copy link

coveralls commented Jul 22, 2016

Coverage Status

Coverage increased (+0.001%) to 97.346% when pulling 135844f on stripe:paginate_group_members into 6ae7c37 on dtan4:master.

@@ -44,7 +44,8 @@ def tfstate
private

def group_members_of(group)
@client.get_group(group_name: group.group_name).users.map { |user| user.user_name }
users = @client.get_group(group_name: group.group_name).map { |r| r.users }.flatten
Copy link
Owner

Choose a reason for hiding this comment

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

[rubocop]

  • Line is too long. [91/80] :ref

@coveralls
Copy link

coveralls commented Jul 22, 2016

Coverage Status

Coverage increased (+0.001%) to 97.346% when pulling 05b34d2 on stripe:paginate_group_members into 6ae7c37 on dtan4:master.

@@ -44,7 +44,8 @@ def tfstate
private

def group_members_of(group)
@client.get_group(group_name: group.group_name).users.map { |user| user.user_name }
user_query = @client.get_group(group_name: group.group_name)
user_query.map { |r| r.users }.flatten.map { |user| user.user_name }
Copy link
Owner

Choose a reason for hiding this comment

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

Sorry, maximum limitation of lines is misconfigured... 🙇
Please write this in one line.

@client.get_group(group_name: group.group_name).map(&:users).flatten.map(&:user_name)

@raylu raylu force-pushed the paginate_group_members branch from 05b34d2 to 9d7421a Compare July 25, 2016 19:10
@@ -44,7 +44,7 @@ def tfstate
private

def group_members_of(group)
@client.get_group(group_name: group.group_name).users.map { |user| user.user_name }
@client.get_group(group_name: group.group_name).map(&:users).flatten.map(&:user_name)
Copy link
Owner

Choose a reason for hiding this comment

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

[rubocop]

  • Line is too long. [93/80] :ref

@coveralls
Copy link

coveralls commented Jul 25, 2016

Coverage Status

Coverage remained the same at 97.344% when pulling 9d7421a on stripe:paginate_group_members into 6ae7c37 on dtan4:master.

1 similar comment
@coveralls
Copy link

Coverage Status

Coverage remained the same at 97.344% when pulling 9d7421a on stripe:paginate_group_members into 6ae7c37 on dtan4:master.

@dtan4
Copy link
Owner

dtan4 commented Aug 1, 2016

LGTM 👍 Thanks ❗
Sorry for late review 🙇

@dtan4 dtan4 merged commit c42d6a8 into dtan4:master Aug 1, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants