Summary: | Need a flag to indicate that a ContactInfo field is overwritten by nickname | ||
---|---|---|---|
Product: | Telepathy | Reporter: | Jonathon Jongsma <jonathon> |
Component: | tp-spec | Assignee: | Jonathon Jongsma <jonathon> |
Status: | RESOLVED FIXED | QA Contact: | Telepathy bugs list <telepathy-bugs> |
Severity: | normal | ||
Priority: | medium | Keywords: | patch |
Version: | unspecified | ||
Hardware: | Other | ||
OS: | All | ||
Whiteboard: | review+ | ||
i915 platform: | i915 features: | ||
Attachments: |
ContactInfo: Add flag for fields that are overwritten by nickname
ContactInfo: Add flag for fields that are overwritten by nickname ContactInfo: Add flag for fields that are overwritten by nickname |
Description
Jonathon Jongsma
2010-10-05 09:52:24 UTC
Created attachment 39182 [details] [review] ContactInfo: Add flag for fields that are overwritten by nickname It's likely that clients will want to expose the user's nickname and their contact info in the same place for editing. Howevever, many CMs map one of the ContactInfo fields to the user's nickname, so editing these two fields independantly at the same time results in surprising behavior. Adding a flag to the ContactInfo field will allow clients to hide these duplicate fields when presenting them together. Fixes: fd.o#30631 Comment on attachment 39182 [details] [review] ContactInfo: Add flag for fields that are overwritten by nickname uhh, I accidentally added this flag to Contact_Info_Flags instead of Contact_Info_Field_Flags, please ignore this patch. Created attachment 39183 [details] [review] ContactInfo: Add flag for fields that are overwritten by nickname It's likely that clients will want to expose the user's nickname and their contact info in the same place for editing. Howevever, many CMs map one of the ContactInfo fields to the user's nickname, so editing these two fields independantly at the same time results in surprising behavior. Adding a flag to the ContactInfo field will allow clients to hide these duplicate fields when presenting them together. Fixes: fd.o#30631 Review of attachment 39183 [details] [review]: ::: spec/Connection_Interface_Contact_Info.xml @@ +473,3 @@ + + <tp:flag suffix="Overwritten_By_Nickname" value="2"> + <tp:docstring> Please set the XHTML xmlns on the <tp:docstring> and put the text in paragraphs, like so, to get better spacing in the HTML output: <p>Indicates ... this field</p> <tp:rationale> <p>If a client ... first.</p> </tp:rationale> You can abbreviate org.freedesktop.Telepathy to ofdT in namespace attributes. The actual text of this change looks fine, but I'd prefer it if you also said something like: <p>If used, this flag typically appears on either the "nickname" or "fn" field.</p> It also seems a good idea to recommend calling SetContactInfo *before* either calling SetAliases or setting the Nickname, if both were changed, so that it's harmless if the UI leaves the stale nickname in its "things to set" data structure. Hopefully we can rely on connection managers to handle overlapping edits correctly (Gabble does). Created attachment 39187 [details] [review] ContactInfo: Add flag for fields that are overwritten by nickname It's likely that clients will want to expose the user's nickname and their contact info in the same place for editing. Howevever, many CMs map one of the ContactInfo fields to the user's nickname, so editing these two fields independantly at the same time results in surprising behavior. Adding a flag to the ContactInfo field will allow clients to hide these duplicate fields when presenting them together. Fixes: fd.o#30631 Review of attachment 39187 [details] [review]: (Sorry, I missed this for a while because the patch keyword was missing. Please add it when you want review on things.) The patch looks fine, please merge. ::: spec/Connection_Interface_Contact_Info.xml @@ +489,3 @@ + </tp:rationale> + <p>In addition to hiding this field when editing ContactInfo together + with the user's nickname, it is recommended that clients call Don't bother changing this now, but in future I'd prefer (the source code of) spec HTML to have a blank line between paragraphs, as seen here: <p>Something.</p> <p>Something else which you should imagine to be long enough to need wrapping.</p> <tp:rationale> <p>Because I said so.</p> </tp:rationale> merged in a8f7f603bc1be3fd5ce66f01ec1ebf2b296f1a90 I'll remember to separate the paragraphs for next time. |
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.