Skip to content

/org/ page does not paginate packages #2507

Description

@jonchurch

Describe the bug

Check https://www.npmx.dev/org/sindresorhus with empty cache. (actually, you need to navigate to the page via the search feature first if you want to see the 400 in your network tab, due to SSR on the direct path I guess)

  1. Go to the search bar
  2. Type @sindresorhus, choose the org result

There's a 400 on trying to enrich all packages via Algolia because there is a 1k item limit on the getObjects endpoint which is not accounted for.

This enters a fallback codepath, which then does 1 API call per 1690 packages, and takes a very long time to load the page.

Additional context

No response

Logs

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    backServer, DatafrontFrontend, DesignstaleThis has become stale and may be closed soonstale-to-close

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions