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

Add repositoryId overloads to methods on I(Observable)RepositoryCommentsClient #1344

Merged

Conversation

alexander-efremov
Copy link
Contributor

@alexander-efremov alexander-efremov commented Jun 5, 2016

As part of my work on #1120 I've added new overloads on I(Observable)RepositoryCommentsClient to get access by repository id.

  • Update XML documentation of interface methods of clients (also synchronize XML docs of IRepositoryCommentsClient and IObservableRepositoryCommentsClient).

    There is some divergence between XML documentation of methods in IRepositoryCommentsClient and IObservableRepositoryCommentsClient. So I've decided
    to sync XML documentation of these classes during my work on Add support for interacting with repositories by id. #1120.

  • Add overloads to IRepositoryCommentsClient.

    Just add overloads of existing methods that use repositoryId to work with repo.

  • Add overloads to IObservableRepositoryCommentsClient.

    Just add overloads of existing methods that use repositoryId to work with repo.

  • Add unit tests.

    I've added new unit tests that use repositoryId to work with repo that is just a full copy of existing tests that use (owner, name) key.
    Also I've found out that not all methods are covered by tests and added them for new and for old methods.

  • Add integration tests.

    I've added new integration tests that use repositoryId to work with repo that is just a full copy of existing tests that use (owner, name) key.
    Also I've found out that not all methods are covered by tests and added them for new and for old methods.

/cc @shiftkey, @ryangribble

@alexander-efremov alexander-efremov changed the title [WIP] Add repositoryId overloads to methods on I(Observable)RepositoryCommentsClient Add repositoryId overloads to methods on I(Observable)RepositoryCommentsClient Jun 5, 2016
@@ -13,81 +19,157 @@ public interface IObservableRepositoryCommentsClient
/// <param name="owner">The owner of the repository</param>
/// <param name="name">The name of the repository</param>
/// <param name="number">The comment id</param>
/// <returns></returns>
/// <returns>A <see cref="IObservable{CommitComment}"/> of <see cref="CommitComment"/> for the specified repository.</returns>
Copy link
Member

@shiftkey shiftkey Jun 15, 2016

Choose a reason for hiding this comment

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

I think this reads better as "An IObservable ..." rather than "A IObservable ..."

Copy link
Member

Choose a reason for hiding this comment

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

Rather than call this out everywhere for the file, I'll just come back and check after this comment is folded away

@shiftkey
Copy link
Member

@dampir this is looking really good - just a few pointers on the documentation while we're in here updating things. I think once we settle on the reviews for the first couple of these PRs that it should really fly through!

@alexander-efremov
Copy link
Contributor Author

alexander-efremov commented Jun 15, 2016

@shiftkey it is looks like I have to review all 26 existent repositoryId PRs to fix XML documentation things, because I've used similar pattern to write docs. So, I'm going through it as slowly and methodically as possible do it 👍 But, firstly, I want add repositoryId PRs for new Reactions clients (they are simple and small 👍 )

I think once we settle on the reviews for the first couple of these PRs that it should really fly through!

I glad to hear that 👍 Let's do this 😄

@alexander-efremov
Copy link
Contributor Author

@shiftkey I've updated XML docs according your remarks. Please review it whenever possible and if all ok, I'm going to pass through other PRs and update their docs.

@alexander-efremov
Copy link
Contributor Author

@shiftkey I've cleared XML docs here. I suppose I should clear in every PR that I've done for repository id, because they are similar these ones.

/// <remarks>http://developer.github.com/v3/repos/comments/#get-a-single-commit-comment</remarks>
/// <param name="repositoryId">The ID of the repository</param>
/// <param name="number">The comment id</param>
/// <returns></returns>
Copy link
Member

Choose a reason for hiding this comment

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

Apologies, I should have been clearer - the whole <returns></returns> element can be removed from these docs.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@shiftkey done 👍

@shiftkey shiftkey self-assigned this Jun 17, 2016
@shiftkey
Copy link
Member

👍 to the additional integration tests here

@shiftkey shiftkey merged commit 6bd1f06 into octokit:master Jun 17, 2016
@alexander-efremov alexander-efremov deleted the add-repo-id-repo-comment-client branch June 18, 2016 06:34
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