Skip to content

Search by creationMethod#333

Open
confused-Techie wants to merge 5 commits into
mainfrom
sort-by-creation-method
Open

Search by creationMethod#333
confused-Techie wants to merge 5 commits into
mainfrom
sort-by-creation-method

Conversation

@confused-Techie

Copy link
Copy Markdown
Member

This PR introduces the ability to search & sort packages by the new query parameter creationMethod.

This parameter can be one of the following values:

  • any: Behaves just like it does now, returning packages with any creation method.
  • atom: Returns only packages that were originally migrated from Atom.
  • pulsar: Returns only packages that have been created for Pulsar.

The pulsar results will match packages that have the badge Made for Pulsar

The new query is supported on the following endpoints:

  • GET /api/packages
  • GET /api/packages/search

Tests are already included in the new framework to ensure they behave as we expect.

Relates to #231 (but does not close)

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.

1 participant