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

Adding 4 new Reaction delete routes and obsoleting existing routes #2494

Merged
merged 4 commits into from
Jul 22, 2022

Conversation

JonruAlveus
Copy link
Collaborator

fixes #2490

#2430

Copy link
Contributor

@nickfloyd nickfloyd left a comment

Choose a reason for hiding this comment

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

Hey @JonruAlveus thanks for the contributions here. I just commented on the first few files regarding some parameter naming - let me know your thoughts; the changes would need to be applied through the entire change set.

Comment on lines 81 to 84
/// <param name="number">The comment id</param>
/// <param name="reaction">The reaction id</param>
/// <returns></returns>
IObservable<Unit> Delete(string owner, string name, int number, int reaction);
Copy link
Contributor

Choose a reason for hiding this comment

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

For generation sake (future concern) and ease of consumption, I'd like to name these to match the names in the OpenAPI descriptions as closely as possible.

Suggested change
/// <param name="number">The comment id</param>
/// <param name="reaction">The reaction id</param>
/// <returns></returns>
IObservable<Unit> Delete(string owner, string name, int number, int reaction);
/// <param name="commentId">The comment id</param>
/// <param name="reactionId">The reaction id</param>
/// <returns></returns>
IObservable<Unit> Delete(string owner, string name, int commentId, int reactionId);

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

👍

Comment on lines 91 to 94
/// <param name="number">The comment id</param>
/// <param name="reaction">The reaction id</param>
/// <returns></returns>
IObservable<Unit> Delete(long repositoryId, int number, int reaction);
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
/// <param name="number">The comment id</param>
/// <param name="reaction">The reaction id</param>
/// <returns></returns>
IObservable<Unit> Delete(long repositoryId, int number, int reaction);
/// <param name="commentId">The comment id</param>
/// <param name="reactionId">The reaction id</param>
/// <returns></returns>
IObservable<Unit> Delete(long repositoryId, int commentId, int reactionId);

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

👍

Comment on lines 75 to 78
/// <param name="number">The issue id</param>
/// <param name="reaction">The reaction id</param>
/// <returns></returns>
IObservable<Unit> Delete(string owner, string name, int number, int reaction);
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
/// <param name="number">The issue id</param>
/// <param name="reaction">The reaction id</param>
/// <returns></returns>
IObservable<Unit> Delete(string owner, string name, int number, int reaction);
/// <param name="issueId">The issue id</param>
/// <param name="reactionId">The reaction id</param>
/// <returns></returns>
IObservable<Unit> Delete(string owner, string name, int issueId, int reactionId);

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

👍

Comment on lines 85 to 88
/// <param name="number">The comment id</param>
/// <param name="reaction">The reaction id</param>
/// <returns></returns>
IObservable<Unit> Delete(long repositoryId, int number, int reaction);
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
/// <param name="number">The comment id</param>
/// <param name="reaction">The reaction id</param>
/// <returns></returns>
IObservable<Unit> Delete(long repositoryId, int number, int reaction);
/// <param name="commentId">The comment id</param>
/// <param name="reactionId">The reaction id</param>
/// <returns></returns>
IObservable<Unit> Delete(long repositoryId, int commentId, int reactionId);

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

👍

@JonruAlveus
Copy link
Collaborator Author

@nickfloyd all changes made!

Copy link
Contributor

@nickfloyd nickfloyd 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 the changes here! I was looking at Octokit/Helpers/ApiUrls.cs, and it looks like that whole class needs to be refactored to fit a less obscure naming scheme - lots of use of the nondescript number and the like.

I've created an issue for that one so that we can move forward with your changes here.

@nickfloyd nickfloyd merged commit 251c3a2 into octokit:main Jul 22, 2022
@nickfloyd
Copy link
Contributor

release_notes: Adds 4 new Reaction delete routes to replace the existing obsolete routes

@JonruAlveus JonruAlveus deleted the 2490_Add-Issue-Delete-Routes branch August 4, 2022 05:05
@nickfloyd nickfloyd added Type: Feature New feature or request and removed category: feature labels Oct 27, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Feature New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add way of deleting reactions from individual routes
2 participants