Skip to content

Conversation

RobbieClarken
Copy link
Contributor

This change adds the option to sort crates by "Newly Added" on the following pages:

  • /crates
  • /search
  • /users/:user_id
  • /teams/:team_id
  • /keywords/:keyword_id
  • /categories/:category_id
  • /me/crates

Sorting is performed using the crates.created_at column.

I've put "Newly Added" as the last option in the dropdown:

sort-by-newly-added

Let me know if you would like a different label or for the order to be different.

I couldn't find any existing frontend tests of changing sort order. I'd be happy to add some as part of this PR if they would be valuable.

Closes #1919.

@rust-highfive
Copy link

Thanks for the pull request, and welcome! The Rust team is excited to review your changes, and you should hear from @jtgeibel (or someone else) soon.

If any changes to this PR are deemed necessary, please add them as extra commits. This ensures that the reviewer can see what has changed since they last reviewed the code. Due to the way GitHub handles out-of-date commits, this should also make it reasonably obvious what issues have or haven't been addressed. Large or tricky changes may require several passes of review and changes.

Please see the contribution instructions for more information.

@bors
Copy link
Contributor

bors commented Feb 24, 2020

☔ The latest upstream changes (presumably #2209) made this pull request unmergeable. Please resolve the merge conflicts.

@jtgeibel
Copy link
Member

Thanks @RobbieClarken, these changes look great to me. It you rebase to resolve the merge conflicts I can r+. Thanks again!

@RobbieClarken RobbieClarken force-pushed the sort-by-newly-added branch 2 times, most recently from 462cd97 to 327d762 Compare February 25, 2020 00:51
This change adds the option to sort by "Newly Added" on the following
pages:
  - /crates
  - /search
  - /users/:user_id
  - /teams/:team_id
  - /keywords/:keyword_id
  - /categories/:category_id
  - /me/crates

Sorting is performed using the `crates.created_at` column.

Closes rust-lang#1919.
@RobbieClarken
Copy link
Contributor Author

Thanks @jtgeibel, merge conflicts resolved.

@jtgeibel
Copy link
Member

@bors r+

@bors
Copy link
Contributor

bors commented Feb 25, 2020

📌 Commit 975de2a has been approved by jtgeibel

@bors
Copy link
Contributor

bors commented Feb 25, 2020

⌛ Testing commit 975de2a with merge a72846f...

@bors
Copy link
Contributor

bors commented Feb 25, 2020

☀️ Test successful - checks-travis
Approved by: jtgeibel
Pushing a72846f to master...

@bors bors merged commit a72846f into rust-lang:master Feb 25, 2020
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.

Add sort by "Newly Added"
4 participants