Closed
Bug 1117080
Opened 9 years ago
Closed 9 years ago
Limit conversations (no Rooms) subject to 124 characters.
Categories
(Hello (Loop) :: Client, defect, P3)
Hello (Loop)
Client
Tracking
(Not tracked)
VERIFIED
FIXED
Iteration:
42.1 - Jul 13
People
(Reporter: standard8, Assigned: frsela)
References
Details
(Whiteboard: [chat bug])
Attachments
(2 files, 2 obsolete files)
68.03 KB,
image/png
|
Details | |
3.69 KB,
patch
|
standard8
:
review+
|
Details | Diff | Splinter Review |
Bug 1107082 implemented a limit on the number of characters for a room name. I think we should probably somehow reflect that in the UI - possibly one of: - find out server limit - hard-code the limit - Allow the user to do any length, detect the server failure and reflect it in an informed way to the user.
Reporter | ||
Comment 1•9 years ago
|
||
Sevaan: We should probably be doing client-side limiting of this even though the server limit added in bug 1107082 doesn't apply now. Is 124 characters a reasonable number? (this was originally as suggested by the FxOS client, but I have no details as to why it was that number).
Flags: needinfo?(sfranks)
Comment 2•9 years ago
|
||
(In reply to Mark Banner (:standard8) from comment #1) > Is 124 characters a reasonable number? (this was originally as suggested by > the FxOS client, but I have no details as to why it was that number). No reasons from our FxOS client (at least from a UX point of view), Alexis suggested that number and Product team was fine with it (see https://bugzilla.mozilla.org/show_bug.cgi?id=1095358#c2)
Assignee | ||
Updated•9 years ago
|
Assignee: nobody → frsela
Updated•9 years ago
|
Iteration: --- → 42.1 - Jul 13
Rank: 33
Flags: qe-verify+
Flags: firefox-backlog+
Priority: -- → P3
Whiteboard: [chat bug]
Comment 3•9 years ago
|
||
124 seems aribitrary yet reasonable. In the panel or room titlebar, the conversation name should trail off to elipses if it is too long. I don't think we need to limit the number of characters to force room titles to fit. As such, we can't just leave it open-ended in-case someone puts in a gigantic string which causes problems. We can leave it as it, or even make it Twitter limit for fun: 140 characters.
Flags: needinfo?(sfranks)
Assignee | ||
Comment 4•9 years ago
|
||
Setting 102 characteres to the converstaion name, server rejects renaming, so the practical limit is 101
Reporter | ||
Comment 5•9 years ago
|
||
That's strange. What we save on the server is encrypted context - there shouldn't be a length limit at all.
Reporter | ||
Comment 6•9 years ago
|
||
Hang on a minute, I think that's a screenshot of release which isn't using the context yet. Can you try nightly instead?
Assignee | ||
Comment 7•9 years ago
|
||
Attachment #8632071 -
Flags: feedback?(mdeboer)
Assignee | ||
Comment 8•9 years ago
|
||
(In reply to Mark Banner (:standard8) from comment #6) > Hang on a minute, I think that's a screenshot of release which isn't using > the context yet. Can you try nightly instead? This version had been built by me this morning
Assignee | ||
Comment 9•9 years ago
|
||
Attachment #8632092 -
Flags: review?(standard8)
Assignee | ||
Updated•9 years ago
|
Attachment #8632071 -
Attachment is obsolete: true
Attachment #8632071 -
Flags: feedback?(mdeboer)
Assignee | ||
Comment 10•9 years ago
|
||
(In reply to Mark Banner (:standard8) from comment #5) > That's strange. What we save on the server is encrypted context - there > shouldn't be a length limit at all. My last test (with patch) stored a 124 name: 1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234
Assignee | ||
Comment 11•9 years ago
|
||
Attachment #8632092 -
Attachment is obsolete: true
Attachment #8632092 -
Flags: review?(standard8)
Attachment #8632098 -
Flags: review?(standard8)
Reporter | ||
Comment 12•9 years ago
|
||
Comment on attachment 8632098 [details] [diff] [review] Bug1117080.patch Review of attachment 8632098 [details] [diff] [review]: ----------------------------------------------------------------- r=Standard8 with the eslint error fixed. The other one is just a comment. ::: browser/components/loop/content/js/roomViews.jsx @@ +285,5 @@ > }); > > var DesktopRoomEditContextView = React.createClass({ > mixins: [React.addons.LinkedStateMixin], > + maxRoomNameLength: 124, I found there was an instance where we could use "statics" as part of the createClass definition, but it seems mainly for functions and I doubt it'd by us much, so I think defining like this is fine. @@ +512,5 @@ > <form onSubmit={this.handleFormSubmit}> > <input className="room-context-name" > onKeyDown={this.handleTextareaKeyDown} > placeholder={mozL10n.get("context_edit_name_placeholder")} > + maxLength={this.maxRoomNameLength} Eslint says: 516:14 error Props should be sorted alphabetically react/jsx-sort-props
Attachment #8632098 -
Flags: review?(standard8) → review+
Reporter | ||
Comment 14•9 years ago
|
||
Fernando: I've landed this for you with the change I asked for, as I know we're both away next week.
Assignee | ||
Comment 15•9 years ago
|
||
(In reply to Mark Banner (:standard8) from comment #14) > Fernando: I've landed this for you with the change I asked for, as I know > we're both away next week. Thank you Mark !
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
Updated•9 years ago
|
QA Contact: anthony.s.hughes → bogdan.maris
Comment 17•9 years ago
|
||
Verified that conversation name can contain a maximum of 124 characters on latest Nightly across platforms (Windows 7 64-bit, Mac OS X 10.10 and Ubuntu 14.04 32-bit).
Status: RESOLVED → VERIFIED
Flags: qe-verify+
You need to log in
before you can comment on or make changes to this bug.
Description
•