-
Notifications
You must be signed in to change notification settings - Fork 643
"Latest updates" never loads #438
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
Labels
C-bug 🐞
Category: unintended, undesired behavior
Comments
I've been seeing this behavior for months now. Just decided to open the console and saw this error logged:
I think the following change should fix this but I'm unable to setup logging in with diff --git a/app/templates/dashboard.hbs b/app/templates/dashboard.hbs
index f0b074e..9be2ff6 100644
--- a/app/templates/dashboard.hbs
+++ b/app/templates/dashboard.hbs
@@ -52,7 +52,7 @@
{{link-to version.crate.name 'crate.version' version.num}}
<span class='small'>{{ version.num }}</span>
<span class='date small'>
- {{from-now version.created_at}}
+ {{moment-from-now version.created_at}}
</span>
</div>
</div> If anyone else is able to test this, please feel free to commit this if it works. |
sgrif
added a commit
to sgrif/crates.io
that referenced
this issue
Mar 12, 2017
Get it? Because this ports the following endpoints. To Diesel. ...Anyone? This ports 4 endpoints over to Diesel. The 3 endpoints which manipulate the `following` endpoint, as well as the `/me/updates` endpoint since it is only hit by the tests for the following endpoints. I ended up changing the updates endpoint quite a bit. I wanted to eliminate the N+1 queries on the max version, and was wondering why we needed the max version at all here. I went to go look at it in the UI, and it turns out that the dashboard page which displayed it is actually broken as well. After fixing it, I noticed that it doesn't need the crates at all, just the name (which we tell Ember is the id). I couldn't actually find a good way in Ember to reference the ID of an association without loading the whole thing. If anybody knows a better way to do it than what I'm doing here, please let me know. Since we don't need the crates, I've just opted not to include that data in the response body (note that just not including the max version is a bad idea, since ember caches stuff and it could result in a page that does need the max version displaying wrong later). While I was touching these endpoints, I also went ahead and reduced them all to a single query. Fixes rust-lang#438.
sgrif
added a commit
to sgrif/crates.io
that referenced
this issue
Mar 12, 2017
Get it? Because this ports the following endpoints. To Diesel. ...Anyone? This ports 4 endpoints over to Diesel. The 3 endpoints which manipulate the `following` endpoint, as well as the `/me/updates` endpoint since it is only hit by the tests for the following endpoints. I ended up changing the updates endpoint quite a bit. I wanted to eliminate the N+1 queries on the max version, and was wondering why we needed the max version at all here. I went to go look at it in the UI, and it turns out that the dashboard page which displayed it is actually broken as well. After fixing it, I noticed that it doesn't need the crates at all, just the name (which we tell Ember is the id). I couldn't actually find a good way in Ember to reference the ID of an association without loading the whole thing. If anybody knows a better way to do it than what I'm doing here, please let me know. Since we don't need the crates, I've just opted not to include that data in the response body (note that just not including the max version is a bad idea, since ember caches stuff and it could result in a page that does need the max version displaying wrong later). While I was touching these endpoints, I also went ahead and reduced them all to a single query. Fixes rust-lang#438.
Merged
sgrif
added a commit
to sgrif/crates.io
that referenced
this issue
Mar 14, 2017
Get it? Because this ports the following endpoints. To Diesel. ...Anyone? This ports 4 endpoints over to Diesel. The 3 endpoints which manipulate the `following` endpoint, as well as the `/me/updates` endpoint since it is only hit by the tests for the following endpoints. I ended up changing the updates endpoint quite a bit. I wanted to eliminate the N+1 queries on the max version, and was wondering why we needed the max version at all here. I went to go look at it in the UI, and it turns out that the dashboard page which displayed it is actually broken as well. After fixing it, I noticed that it doesn't need the crates at all, just the name (which we tell Ember is the id). I couldn't actually find a good way in Ember to reference the ID of an association without loading the whole thing. If anybody knows a better way to do it than what I'm doing here, please let me know. Since we don't need the crates, I've just opted not to include that data in the response body (note that just not including the max version is a bad idea, since ember caches stuff and it could result in a page that does need the max version displaying wrong later). While I was touching these endpoints, I also went ahead and reduced them all to a single query. Fixes rust-lang#438.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
On https://crates.io/dashboard the "Latest updates" section on the right never seems to load.
The spinner keeps being displayed for some time, then is replaced by a "Load More" button.
Same thing happens again when clicking "Load More".
Note that when the page is loading, and then each time I click "Load More", I get this in the console:
Not sure how I can provide more information.
The text was updated successfully, but these errors were encountered: