-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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 overloads to the GetAll methods in the IEventsClient #1240
Conversation
…ApiOptions as parameter
…s + implement RequestsCorrectUrlWithApiOptions test
Just wondering if you're aware you've got 2 separate github accounts involved here... @samthedev is what you're logged into github.com as, but all your commits are coming from @UsamTheDev 😀 |
@ryangribble Yes, that might be an issue that need to be reported, the thing is that i am sending commits from vs, and even though i am logged in as @samthedev, the commits keep coming as @UsamTheDev (another Github account i've created once for testing purposes ) To fix this mess i am guessing that i need to merge the two accounts, not sure how to do that, you can probably save me the googling time :^3 |
not sure about being logged in from VS but its all down to the email address associated with the commits. All I do is have a couple of email addresses (eg work and personal) both associated with my one github account and things work fine that way. Im not sure in your situation with the added complexity of one of those email addresses already belonging to "another" github user (ie your 2econd account). Perhaps if you change that account's email address first, then add both email addresses to your main account. Alternatively, just change your VS settings so the email address is the right one and not worry about the historic commits (although its always nice to have all your commits against your own account so the contributors page is accurate!) |
Yes, changing the email in the vs settings pane did solve the issue, thx... it would be great if i can change the author of the older commits as well, is there an easy way to do that ? |
You should check your email addresses defined on GitHub as well |
@shiftkey Yes that did it (after deleting the other github account )..thx |
await Assert.ThrowsAsync<ArgumentNullException>(() => releasesClient.GetAll("owner", null)); | ||
await Assert.ThrowsAsync<ArgumentException>(() => releasesClient.GetAll("owner", "")); | ||
await Assert.ThrowsAsync<ArgumentNullException>(() => releasesClient.GetAll("owner", "name", null)); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should probably check ("", "name", ApiOptions.None)
and ("owner", "", ApiOptions.None)
as well
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this one was overlooked with the cleanup
@samthedev just did a pass over all the files in this PR, mostly focusing on the test changes. Looking good! |
_user = github.User.Current().Result.Login; | ||
_organization = github.Organization.GetAllForCurrent().Result.First().Login; | ||
} | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@shiftkey pls, i need some help with the GetAllForAnOrganization Method's IntegrationTests ! since the user must be authenticated and the organisation must be associated with that particular user !
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Have you configured your integration test settings with a test user (and test organization that this user is an owner of) created specifically for running the integration tests (so as not to mess up your personal account or rate limits etc)?
Then in integration tests, you can get that configured organization just with Helper.Organization
(same as you can get the integration user with Helper.UserName
)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@ryangribble thx, i miss configured some of the settings, i will try to fix the failing test then i will report back.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
All tests passed.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
TheGetAllForRepositoryMethod's tests are still failing for some reason !?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't believe the test failure is related to this PR.
Here's what I can see: #1251
It looks like a |
done. |
Just one more little bit of cleanup that was missed. I'll verify the tests later this week as I'm on terrible internets right now... |
Oh, and that merge conflict 😢 |
Yy, my bad ...I believe that's because i touched ReleasesClientTests in 7f93dad, should i undo the changes on that file ? |
@samthedev up to you - I'd suggest just merging |
@shiftkey that should do it, right ? |
@samthedev just this one comment https://github.com/octokit/octokit.net/pull/1240/files#r58579094 |
@shiftkey done. |
Cross-referencing #1251 again to remind myself about digging into that... |
@samthedev thanks! |
Refer to the issue #1153