-
Notifications
You must be signed in to change notification settings - Fork 599
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add Categorization! #473
Add Categorization! #473
Commits on Dec 28, 2016
-
Configuration menu - View commit details
-
Copy full SHA for e18b2f2 - Browse repository at this point
Copy the full SHA e18b2f2View commit details -
Configuration menu - View commit details
-
Copy full SHA for 7893307 - Browse repository at this point
Copy the full SHA 7893307View commit details -
Configuration menu - View commit details
-
Copy full SHA for 3854dfc - Browse repository at this point
Copy the full SHA 3854dfcView commit details -
Configuration menu - View commit details
-
Copy full SHA for 55f201f - Browse repository at this point
Copy the full SHA 55f201fView commit details -
I like when they match up with the filenames :)
Configuration menu - View commit details
-
Copy full SHA for e46971d - Browse repository at this point
Copy the full SHA e46971dView commit details -
Configuration menu - View commit details
-
Copy full SHA for 9c8ff2d - Browse repository at this point
Copy the full SHA 9c8ff2dView commit details -
Extract a method for encoding a crate without all its metadata
I draw the line at 3 None arguments.
Configuration menu - View commit details
-
Copy full SHA for 5e8d7be - Browse repository at this point
Copy the full SHA 5e8d7beView commit details -
Configuration menu - View commit details
-
Copy full SHA for 7cb99cf - Browse repository at this point
Copy the full SHA 7cb99cfView commit details -
Configuration menu - View commit details
-
Copy full SHA for c8442ed - Browse repository at this point
Copy the full SHA c8442edView commit details -
Configuration menu - View commit details
-
Copy full SHA for 54c374b - Browse repository at this point
Copy the full SHA 54c374bView commit details -
Configuration menu - View commit details
-
Copy full SHA for fcd7b28 - Browse repository at this point
Copy the full SHA fcd7b28View commit details -
Configuration menu - View commit details
-
Copy full SHA for 5a8ad82 - Browse repository at this point
Copy the full SHA 5a8ad82View commit details -
Configuration menu - View commit details
-
Copy full SHA for 6364c73 - Browse repository at this point
Copy the full SHA 6364c73View commit details -
Use a pretty slug for categories in URLs
Categories are now specified by slug in Cargo.toml. This will allow crates.io to change the display text of a category but still have crates in those categories. Characters allowed in slugs are from RFC 3986, those that are valid in path segments (pchar) https://tools.ietf.org/html/rfc3986#page-22
Configuration menu - View commit details
-
Copy full SHA for 29f8e2e - Browse repository at this point
Copy the full SHA 29f8e2eView commit details -
Change the header text on a category page
Looking at some of the categories I have locally, I think, for example, "Command-line argument parsing Crates" is clearer than "All Crates for category 'Command-line argument parsing'"
Configuration menu - View commit details
-
Copy full SHA for d20cfc3 - Browse repository at this point
Copy the full SHA d20cfc3View commit details -
Configuration menu - View commit details
-
Copy full SHA for 9c36d77 - Browse repository at this point
Copy the full SHA 9c36d77View commit details -
Configuration menu - View commit details
-
Copy full SHA for 27b8f95 - Browse repository at this point
Copy the full SHA 27b8f95View commit details -
Configuration menu - View commit details
-
Copy full SHA for d421dbd - Browse repository at this point
Copy the full SHA d421dbdView commit details -
Configuration menu - View commit details
-
Copy full SHA for 82f810c - Browse repository at this point
Copy the full SHA 82f810cView commit details -
Configuration menu - View commit details
-
Copy full SHA for a3655bd - Browse repository at this point
Copy the full SHA a3655bdView commit details -
Configuration menu - View commit details
-
Copy full SHA for cb7c262 - Browse repository at this point
Copy the full SHA cb7c262View commit details -
Configuration menu - View commit details
-
Copy full SHA for 2dcec87 - Browse repository at this point
Copy the full SHA 2dcec87View commit details -
Add a page listing all valid category slugs
To direct people to when they have specified an invalid slug. JSON containing all the slugs is available at /api/v1/category_slugs, but visiting that in a browser doesn't work.
Configuration menu - View commit details
-
Copy full SHA for e3e10fd - Browse repository at this point
Copy the full SHA e3e10fdView commit details -
Make warnings about invalid crate names be JSON instead of text
And cargo will handle making nice English messages out of them.
Configuration menu - View commit details
-
Copy full SHA for 1cee6d8 - Browse repository at this point
Copy the full SHA 1cee6d8View commit details -
Configuration menu - View commit details
-
Copy full SHA for f7d2780 - Browse repository at this point
Copy the full SHA f7d2780View commit details -
Add descriptions to categories
Have to switch from a nice batch insert to running a query for each category so that we can use apostrophes in the descriptions and have the string escaped for SQL.
Configuration menu - View commit details
-
Copy full SHA for 9318605 - Browse repository at this point
Copy the full SHA 9318605View commit details -
Configuration menu - View commit details
-
Copy full SHA for f0733d5 - Browse repository at this point
Copy the full SHA f0733d5View commit details -
Fix the query for subcategories to only include the next level
And not all descendant categories
Configuration menu - View commit details
-
Copy full SHA for ef33d9c - Browse repository at this point
Copy the full SHA ef33d9cView commit details -
Add a heading for Crates on a category page
To better distinguish subcategories and crates. This makes "crates" in the h1 redundant, especially when there *aren't* subcategories.
Configuration menu - View commit details
-
Copy full SHA for a2531d4 - Browse repository at this point
Copy the full SHA a2531d4View commit details -
Sort crates within a category by downloads by default
There will be an RFC soon about whether this is the best ordering or not.
Configuration menu - View commit details
-
Copy full SHA for c75bb56 - Browse repository at this point
Copy the full SHA c75bb56View commit details -
Sum crate count in all subcategories in a better way
And make the top-level query that does this consistent with subcategory queries.
Configuration menu - View commit details
-
Copy full SHA for c81c950 - Browse repository at this point
Copy the full SHA c81c950View commit details -
Configuration menu - View commit details
-
Copy full SHA for c2d5cf8 - Browse repository at this point
Copy the full SHA c2d5cf8View commit details -
Use a different crate name in a test to prevent deadlocks
This test does a lot of different manipulations of categories and crate categories and it was using a crate named foo. The good_categories test also used a crate named foo, and these two tests were causing a postgres deadlock. I was able to cause deadlocks more often by duplicating the update_crate test and the good_categories test: https://travis-ci.org/integer32llc/crates.io/builds/187302718 Making this change and running the duplicated tests resulted in 0 deadlocks: https://travis-ci.org/integer32llc/crates.io/builds/187306433 This is unlikely to happen in production; requests get a database connection that gets closed when the request finishes, and the publish request only modifies the categories once, not as much as the update_crate test is. It seems unlikely that two people would publish the same crate at exactly the same time.
Configuration menu - View commit details
-
Copy full SHA for c6de914 - Browse repository at this point
Copy the full SHA c6de914View commit details
Commits on Dec 29, 2016
-
Configuration menu - View commit details
-
Copy full SHA for bffd16a - Browse repository at this point
Copy the full SHA bffd16aView commit details