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

Make getTeambySlug faster #733

Merged
merged 12 commits into from
Mar 17, 2020
Merged

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..

@bitwiseman bitwiseman changed the title Make getTeambySlug fast enought Make getTeambySlug faster Mar 17, 2020

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!

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