Skip to content

Add an option to order crates by last updated time #1210

@carols10cents

Description

@carols10cents

Add to at least the API (and may as well add to the UI as well) the option to sort by last updated.

Crates' last_updated time is changed when a new version is published. This sort should put crates that have had a new version published most recently first.

This should be as straightforward as adding an ORDER BY; this is not a stream of new versions. That is, if this set of events happens:

  • 3 days ago: crate A published version 1.0.0
  • 2 days ago: crate B published version 0.5.0
  • 1 day ago: crate A published version 2.0.0

The list of crates ordered by last updated time should be:

  • 1 day ago: crate A
  • 2 days ago: crate B

As opposed to:

  • 1 day ago: crate A
  • 2 days ago: crate B
  • 3 days ago: crate A

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-backend ⚙️C-enhancement ✨Category: Adding new behavior or a change to the way an existing feature works

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions