Closed
Bug 963248
Opened 10 years ago
Closed 9 years ago
Warn admin when snippet or icon size is over a certain threshold
Categories
(Snippets :: Service, defect)
Snippets
Service
Tracking
(Not tracked)
VERIFIED
FIXED
People
(Reporter: osmose, Assigned: koddsson)
Details
(Whiteboard: [kb=1251468] )
Attachments
(1 file)
Twice now we've had major service issues related to large snippet filesizes (see bug 962885 as the most recent example). The service should warn the admin if they create a snippet larger than the recommended file size. For snippet icons (or, more generally, any file field for a template), I think 300kb is a good upper limit, and 500kb for the entire snippet (we can tweak these if we want, we may want to go lower based on average snippet sizes). The system should warn admins whenever they save a template or snippet that exceeds these limits in either one of their template variables or as the snippet on a whole, and allow the admin to either abort the operation or continue past the warning, in case we need to bypass the limit for a special case. If we can check this on the JS side, an alert box on save would be fine for this.
Updated•10 years ago
|
Whiteboard: [kb=1251468]
Reporter | ||
Updated•10 years ago
|
Assignee: nobody → giorgos
Updated•10 years ago
|
Assignee: giorgos → koddsson
Status: NEW → ASSIGNED
Assignee | ||
Comment 1•10 years ago
|
||
My stab at fixing this bug.
Comment 2•9 years ago
|
||
Commit pushed to master at https://github.com/mozilla/snippets-service https://github.com/mozilla/snippets-service/commit/4e77df9f877237a2307bb2200f50a75b2fe127c5 Fix bug 963248: Add size validation to snippet admin.
Updated•9 years ago
|
Status: ASSIGNED → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
Reporter | ||
Comment 3•9 years ago
|
||
Verified fixed on stage and has been deployed to prod. Yay!
Status: RESOLVED → VERIFIED
Assignee | ||
Comment 4•9 years ago
|
||
Awesome! :)
You need to log in
before you can comment on or make changes to this bug.
Description
•