Closed
Bug 444817
Opened 16 years ago
Closed 16 years ago
Limit size of add-on desciptions in feature element
Categories
(addons.mozilla.org Graveyard :: Public Pages, defect)
Tracking
(Not tracked)
VERIFIED
FIXED
4.0.4
People
(Reporter: morgamic, Assigned: lorchard)
Details
Attachments
(2 files, 1 obsolete file)
1018 bytes,
patch
|
rdoherty
:
review+
|
Details | Diff | Splinter Review |
239.08 KB,
image/png
|
Details |
Truncate the summary of summaries in the feature element so they can't take up too much space. If people want to have verbose summaries, give them the chop.
Comment 1•16 years ago
|
||
Isn't this bug 443977 or are you referring to another field? (not entirely sure what you mean by "summary of summaries in the feature element")
Comment 2•16 years ago
|
||
Well, I think lorchard accidentally added a patch to bug 443977 that should have ended up here.
Assignee | ||
Comment 3•16 years ago
|
||
Yup, this patch was posted to a different bug, since we couldn't find this one earlier yesterday. Posting the patch to this bug now for your perusal
Comment 4•16 years ago
|
||
Comment on attachment 330784 [details] [diff] [review] quick feature element patch to truncate too-long descriptions As per bug 443977 comment #4, the limit should be 250 characters, not the 400 I gave as an initial suggestion in the description.
Assignee | ||
Comment 5•16 years ago
|
||
Okay, posted a patch with a limit of 250.
Attachment #330784 -
Attachment is obsolete: true
Comment 6•16 years ago
|
||
This patch has been sitting here for a while now. (and it's listed as severity "blocker", at that ;) Is this going to get used or should something else be done? If the limit is correctly enforced (bug 443977) and any over the limit are truncated then this patch would be redundant.
Reporter | ||
Updated•16 years ago
|
Assignee: nobody → lorchard
Target Milestone: --- → 4.0.3
Assignee | ||
Comment 7•16 years ago
|
||
Comment on attachment 330788 [details] [diff] [review] changed limit from 400 to 250 Adding an r? for the patch, which appears to still work 3 months or so later
Attachment #330788 -
Flags: review?(rdoherty)
Updated•16 years ago
|
Attachment #330788 -
Flags: review?(rdoherty) → review+
Comment 8•16 years ago
|
||
Comment on attachment 330788 [details] [diff] [review] changed limit from 400 to 250 Looks good works well.
Assignee | ||
Comment 9•16 years ago
|
||
Belatedly checked in as r20012
Status: NEW → RESOLVED
Closed: 16 years ago
Resolution: --- → FIXED
For "Clupedia Toolbar" in the screenshot, we simply show the ellipsis, but, according to the patch comments, we should display the last full word up to the 250-character limit and then ellipsize (look Ma, new word!)
Updated•16 years ago
|
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Comment 11•16 years ago
|
||
(In reply to comment #9) > Belatedly checked in as r20012 ZOMG we are in the 20ks!
Comment 12•16 years ago
|
||
(In reply to comment #10) > 250-character limit and then ellipsize (look Ma, new word!) Look Ma, new word... and I misspelled it 2 lines after I learned it! :p
Assignee | ||
Comment 13•16 years ago
|
||
Crud - this works on my laptop. Wondering if the multibyte string functions aren't working on preview. If not, that's annoying, and there might not be a way I know to do this for non-English languages. Trying a checkin using plain old string functions to see if it works for English on preview at least.
Comment 14•16 years ago
|
||
They have to work: We use multibyte string functions elsewhere already.
Assignee | ||
Comment 15•16 years ago
|
||
Huh, well, I changed all the mb_* string functions to non-mb in r20044 and it looks like things magically started working on preview. Wondering if anything showed up in the error log, since it just looked like it was silently failing to do proper truncation.
Comment 16•16 years ago
|
||
But that's not exactly the right way to fix this if it's going to break multi-byte strings. If preview doesn't have the right packages, we need to fix preview, not un-internationalize our code.
Comment 17•16 years ago
|
||
oremj says php-mbstring is installed on preview.amo. And really, if the mb_ functions aren't working I think we'd see a lot more break.
Reporter | ||
Comment 18•16 years ago
|
||
Wil will help find an all-japanese add-on to test the mb functions and help debug.
Target Milestone: 4.0.3 → 4.0.4
Reporter | ||
Updated•16 years ago
|
Severity: blocker → critical
Assignee | ||
Comment 19•16 years ago
|
||
As it turns out, the functions are installed - a test I added in r20052 proves that out. The problem ended up being that there's been a parameter change between PHP 5.1.6 and 5.2.0 - in 5.1.6, mb_strrpos() is missing support for an offset parameter supported by strrpos() and other string functions. I just happened to use that one, but couldn't see the error. Checked in a fix in r20065, hopefully be on preview soon
Status: REOPENED → RESOLVED
Closed: 16 years ago → 16 years ago
Resolution: --- → FIXED
Verified FIXED, with the following noted: When BlogRovR (https://preview.addons.mozilla.org/en-US/firefox/addon/4689 ) is featured in the "Recommended" list (displayed text follows), "You don't have time to read ALL those Blogs! Let RovR do it for you. RovR fetches posts from your favorite blogs about anything you're browsing, and shows you summaries you can open read posts without leaving the web page you were" (...) it's 230 characters, rather than the 250 -- Les can explain it better than I, but we're splitting on "spaces, not newlines."
Status: RESOLVED → VERIFIED
Updated•16 years ago
|
Keywords: push-needed
Updated•16 years ago
|
Keywords: push-needed
Updated•8 years ago
|
Product: addons.mozilla.org → addons.mozilla.org Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•