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)

defect
Not set
critical

Tracking

(Not tracked)

VERIFIED FIXED

People

(Reporter: morgamic, Assigned: lorchard)

Details

Attachments

(2 files, 1 obsolete file)

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.
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")
Well, I think lorchard accidentally added a patch to bug 443977 that should have ended up here.
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 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.
Okay, posted a patch with a limit of 250.
Attachment #330784 - Attachment is obsolete: true
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.
Assignee: nobody → lorchard
Target Milestone: --- → 4.0.3
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)
Attachment #330788 - Flags: review?(rdoherty) → review+
Comment on attachment 330788 [details] [diff] [review]
changed limit from 400 to 250

Looks good works well.
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!)
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
(In reply to comment #9)
> Belatedly checked in as r20012

ZOMG we are in the 20ks!
(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
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.
They have to work: We use multibyte string functions elsewhere already.
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.
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.
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.
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
Severity: blocker → critical
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 ago16 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
Keywords: push-needed
Keywords: push-needed
Product: addons.mozilla.org → addons.mozilla.org Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: