Skip to content

Conversation

@ingwarsw
Copy link
Contributor

@ingwarsw ingwarsw commented Mar 9, 2020

Description

Change method how getTeambySlug works... (direct api call instead of getting list and iterating)
Wit bigger organisations getting all teams can take a lot of times..

Before submitting a PR:

We love getting PRs, but we hate asking people for the same basic changes every time.

  • Push your changes to a branch other than master. Create your PR from that branch.
  • Add JavaDocs and other comments
  • Write tests that run and pass in CI. See CONTRIBUTING.md for details on how to capture snapshot data.
  • Run mvn -D enable-ci clean install site locally. This may reformat your code, commit those changes. If this command doesn't succeed, your change will not pass CI.

@ingwarsw
Copy link
Contributor Author

ingwarsw commented Mar 9, 2020

To fix test I would need access to https://github.com/github-api-test-org

Copy link
Member

@bitwiseman bitwiseman left a comment

Choose a reason for hiding this comment

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

Need updates to tests and auto-formatting. Thanks!

@bitwiseman
Copy link
Member

Invited to test org. 😄

Co-Authored-By: Liam Newman <bitwiseman@gmail.com>
@ingwarsw
Copy link
Contributor Author

@bitwiseman Thanks for org invite.. now will be easier with tests..

@ingwarsw ingwarsw requested a review from bitwiseman March 17, 2020 10:39
@bitwiseman bitwiseman changed the title Make getTeambySlug fast enought Make getTeambySlug faster Mar 17, 2020
GHOrganization organization = gitHub.getOrganization(GITHUB_API_TEST_ORG);
GHTeam teamByName = organization.getTeams().get("Core Developers");

GHTeam teamById = gitHub.getTeam(teamByName.getId());
Copy link
Member

Choose a reason for hiding this comment

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

Sorry, just because it is deprecated doesn't mean we can remove the test for it. We must ensure it continues to work until it is removed.

Copy link
Member

@bitwiseman bitwiseman left a comment

Choose a reason for hiding this comment

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

One more test change and then i can merge. Thanks!

@ingwarsw ingwarsw requested a review from bitwiseman March 17, 2020 21:38
Copy link
Member

@bitwiseman bitwiseman left a comment

Choose a reason for hiding this comment

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

Thanks for fast turnaround.

@bitwiseman bitwiseman merged commit adfd095 into hub4j:master Mar 17, 2020
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.

2 participants