Closed Bug 625207 Opened 15 years ago Closed 15 years ago

Uploading screenshots can take a long time/is slow

Categories

(addons.mozilla.org Graveyard :: Developer Pages, defect)

defect
Not set
major

Tracking

(Not tracked)

VERIFIED FIXED
5.12.6

People

(Reporter: stephend, Assigned: andy+bugzilla)

References

()

Details

On https://addons.allizom.org/z/en-US/developers/addon/a9-9331/edit and the like: While I can't reproduce this at-will, it seems like a problem we should look into soon (if not before we ship): sometimes (often, in fact, at least on preview), screenshots will be in the Celery-processing queue (or appear to be), but a simple click on Edit or a reload of the page will make them appear. Other times, it seems like uploading a successive image works, while the first is still processing; not sure what's going on there. Screencast here, but it's not that helpful in debugging (neither are headers): http://screencast.com/t/DhP9d9MKI7
It seems like this is a problem with the polling, not with celery getting the job done.
Assignee: nobody → amckay
Target Milestone: --- → 5.12.6
Status: NEW → RESOLVED
Closed: 15 years ago
Resolution: --- → FIXED
Sadly, I can't notice a difference, on preview.
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
(In reply to comment #0) > Screencast here, but it's not that helpful in debugging (neither are headers): > http://screencast.com/t/DhP9d9MKI7 A screencast with web console network logging *would* be helpful.
http://screencast.com/t/pWCpLvWLfq; you want the console attached, as a log, or just visible in the screencast?
I think there's more than polling going on here. You upload a screenshot, click save. Image not present, polling message appears. After a while click edit. You should have one screenshot uploaded, but you don't. It's not present in the edit form at all. Where did that screenshot go?
Fix for Comment #5 screencast (Where even an empty box doesn't even show up): http://github.com/jbalogh/zamboni/commit/3fafd36
As far as I can tell, this is number of different bugs all combined into one: 1. EMPTY BOX DOESN'T SHOW UP: When you hit save before the image is uploaded, nothing is saved for the screenshot and you don't even get an empty box when you hit save. Example: http://screencast.com/t/pWCpLvWLfq Status: Fixed. 2. BOX IS BLANK UNTIL YOU HIT SAVE: See bug 625281 Solution: Use DataURL, similar to how icons are done. 3. BOX IS BLANK AFTER YOU HIT SAVE: We'll try to show a dataURL if we can, or we'll show a "Your Image is Processing" image if we can't. We'll need to use andy's polling script for this, too, to update it when it is available.
> 3. BOX IS BLANK AFTER YOU HIT SAVE: > We'll try to show a dataURL if we can, or we'll show a "Your Image is > Processing" image if we can't. We'll need to use andy's polling script for > this, too, to update it when it is available. That's actually bug 624435
Krupa, go! http://github.com/jbalogh/zamboni/commit/dabb667 (This fixes 1 and 2 from comment 8; 3 is bug 624435)
Status: REOPENED → RESOLVED
Closed: 15 years ago15 years ago
Resolution: --- → FIXED
I'm happy with how it works now, for the most part -- there are and will be spinoff bugs for the remaining issues. Verified!
Status: RESOLVED → VERIFIED
Product: addons.mozilla.org → addons.mozilla.org Graveyard
You need to log in before you can comment on or make changes to this bug.