Skip to content
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

Use crate.id with links to force ember to load all the crate data #476

Merged
merged 1 commit into from
Nov 23, 2016

Conversation

carols10cents
Copy link
Member

Fixes #331. Thanks to @locks, who knew exactly what the problem was!!!!

On crate list pages, we had some data about each crate, but not
keywords. The way the links were constructed, ember saw the partial data
that matched and would use that on the crate page instead of reloading
the whole crate from the crate show api JSON, which does have keywords
available. Using the id with the links instead of the whole model forces
the request for all the data to happen.

Fixes rust-lang#331. Thank you @locks!!!!

On crate list pages, we had *some* data about each crate, but not
keywords. The way the links were constructed, ember saw the partial data
that matched and would use that on the crate page instead of reloading
the whole crate from the crate show api JSON, which *does* have keywords
available. Using the id with the links instead of the whole model forces
the request for all the data to happen.
@alexcrichton alexcrichton merged commit d07616d into rust-lang:master Nov 23, 2016
@alexcrichton
Copy link
Member

Nice!

@carols10cents carols10cents deleted the keywords-loading branch November 23, 2016 14:16
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