Skip to content

Conversation

carols10cents
Copy link
Member

Turns out when we were checking for crate/category/etc not being found, we were using any from the ember prototype extensions. This PR changes those spots to use some instead, and cleans up a few other inconsistencies I noticed.

I tried to write tests for "not found" pages, but that's proving to be a bit more.... interesting... so I decided to open this up to fix production first.

r? @Turbo87

Fixes "not found" pages that were showing errors since we disabled
prototype extensions
Queue a flash message and then redirect to the home page

Not doing this for crates, I think I'd rather do a search by default or
something?
@Turbo87
Copy link
Member

Turbo87 commented Sep 23, 2017

bors: r+

Thanks @carols10cents!

bors-voyager bot added a commit that referenced this pull request Sep 23, 2017
1076: Fixes errors on "not found" pages r=Turbo87

Turns out when we were checking for crate/category/etc not being found, we were using `any` from the ember prototype extensions. This PR changes those spots to use `some` instead, and cleans up a few other inconsistencies I noticed.

I tried to write tests for "not found" pages, but that's proving to be a bit more.... interesting... so I decided to open this up to fix production first.

r? @Turbo87
@bors-voyager
Copy link
Contributor

bors-voyager bot commented Sep 23, 2017

Build succeeded

@bors-voyager bors-voyager bot merged commit 4e1fde2 into rust-lang:master Sep 23, 2017
@carols10cents carols10cents deleted the not-found branch September 23, 2017 12:20
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.

2 participants