Code Monkey home page Code Monkey logo

Comments (6)

shiftkey avatar shiftkey commented on May 20, 2024

It's to do with the ApplyParameters extension we use. Here's a failing test:

[Fact]
public void DoesNotDropPageFromQueryStringWhenUsingParameters()
{
    var uri = new Uri("https://api.github.com/repositories/1/milestones?state=closed&sort=due_date&direction=asc&page=2");

    var parameters = new Dictionary<string, string> { { "state", "open" }, { "sort", "other"} };

    var actual = uri.ApplyParameters(parameters);

    Assert.True(actual.Query.Contains("page=2"));
}

cc @haacked if he wants to look into this fix

from octokit.net.

shiftkey avatar shiftkey commented on May 20, 2024

I've started a PR for this fix here

https://github.com/octokit/octokit.net/tree/milestones-kill-your-rate-limit

I haven't confirmed the milestones client works as expected, but that's easy to chase down now...

from octokit.net.

SimonCropp avatar SimonCropp commented on May 20, 2024

@haacked @shiftkey i notice 0.1.3 is out. did this one make it into the release?

from octokit.net.

SimonCropp avatar SimonCropp commented on May 20, 2024

https://github.com/octokit/octokit.net/releases/tag/v0.1.3

"Fixed bug in applying query parameters that could cause paging to continually request the same page"

looks like it. so shall we close this?

from octokit.net.

haacked avatar haacked commented on May 20, 2024

@SimonCropp Can you try it out?

from octokit.net.

SimonCropp avatar SimonCropp commented on May 20, 2024

Works on my machine

from octokit.net.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.