Closed
Bug 1061411
Opened 10 years ago
Closed 10 years ago
[Contacts] ICE 1 & ICE 2 can be set to the same contact
Categories
(Firefox OS Graveyard :: Gaia::Contacts, defect)
Tracking
(b2g-v2.1 verified, b2g-v2.2 verified)
VERIFIED
FIXED
2.1 S5 (26sep)
People
(Reporter: ericcc, Assigned: arcturus)
References
Details
(Keywords: late-l10n)
Attachments
(3 files, 1 obsolete file)
61.33 KB,
image/png
|
Details | |
46 bytes,
text/x-github-pull-request
|
jmcf
:
review+
fabrice
:
approval-gaia-v2.1-
|
Details | Review |
191 bytes,
text/html
|
arcturus
:
review+
fabrice
:
approval-gaia-v2.1+
|
Details |
### STR
1. Have a contact in Contacts
2. Set ICE1 to a contact
3. Set ICE2 to the same contact
### Actual
ICE1 & ICE2 can be set to the same contact
### Expected
Not found any info in spec
https://bugzilla.mozilla.org/attachment.cgi?id=8459474
### Version
Gaia e7d31f0e9b6b19d9b484eeec8fb980718bc40d79
Gecko https://hg.mozilla.org/mozilla-central/rev/532b5fb77ba1
BuildID 20140901160203
Version 34.0a1
ro.build.version.incremental=110
ro.build.date=Fri Jun 27 15:57:58 CST 2014
B1TC00011230
Reporter | ||
Comment 1•10 years ago
|
||
Hi Carrie, are we okay with setting 2 ICEs to the same contact?
QA Whiteboard: [COM=Gaia::Contacts]
Flags: needinfo?(cawang)
Comment 2•10 years ago
|
||
I'd suggest not displaying the selected contact when user is choosing for the other ICE contact, but I don't know if it's feasible or not. So ni? Francisco for help! \o/
Thanks!
Flags: needinfo?(cawang) → needinfo?(francisco)
Assignee | ||
Comment 3•10 years ago
|
||
Hi,
It will create us a lot of trouble, since implies hidding elements from the list (we show the normal list). What it's pretty simple to control is to check if it's a ICE contact and display an alert to notify that one has been already selected.
Will that work for you Carrie?
Flags: needinfo?(francisco) → needinfo?(cawang)
Comment 4•10 years ago
|
||
Yes, this is my plan B as well.
Let's show something like this:
___________________________
This contact is already an
existing ICE contact
Thanks! (<- this is not the string ;))
Flags: needinfo?(cawang)
Updated•10 years ago
|
Assignee: nobody → jpruden92
Updated•10 years ago
|
Status: NEW → ASSIGNED
Comment 5•10 years ago
|
||
Attachment #8487038 -
Flags: review?(francisco)
Assignee | ||
Comment 6•10 years ago
|
||
Comment on attachment 8487038 [details]
23898.html
Jorge, incredible work here.
I'm not setting the r+ cause I have a couple of suggestions in GH.
Mostly nits, also about the tests, since would like to avoid to expose a public method.
Tell me what you think about the suggestions, but it's pretty much done.
Attachment #8487038 -
Flags: review?(francisco)
Comment 7•10 years ago
|
||
Comment on attachment 8487038 [details]
23898.html
Hello Francisco,
I have included an integration test and I have modified the code. Can you review it?
Thanks!
Attachment #8487038 -
Flags: review?(francisco)
Assignee | ||
Comment 8•10 years ago
|
||
Comment on attachment 8487038 [details]
23898.html
We are pretty close!
I just left a comment, also could you rebase your patch to be able to merge to master?
Please flag me again for final review, but this is looking pretty nice.
Great job Jorge, really good contribution!
Attachment #8487038 -
Flags: review?(francisco)
Comment 9•10 years ago
|
||
Comment on attachment 8487038 [details]
23898.html
Updated!
Attachment #8487038 -
Flags: review?(francisco)
Assignee | ||
Comment 10•10 years ago
|
||
Comment on attachment 8487038 [details]
23898.html
Thanks for adding the suggestions.
Now we wait for 'try' to be green in order to merge \o/
Attachment #8487038 -
Flags: review?(francisco) → review+
Comment 11•10 years ago
|
||
'Try' is green :-)
Assignee | ||
Comment 12•10 years ago
|
||
Jorge, sorry, unfortunately we need to rebase again to merge with master.
Flags: needinfo?(jpruden92)
Assignee | ||
Comment 14•10 years ago
|
||
Landed:
https://github.com/mozilla-b2g/gaia/commit/7f951d62784ea557147b1eef10d21df5bf82f4dd
Great job Jorge
Status: ASSIGNED → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Assignee | ||
Comment 15•10 years ago
|
||
Jorge, one las thing, could you attach a video to show how it works now?
Target Milestone: --- → 2.1 S4 (12sep)
Assignee | ||
Comment 16•10 years ago
|
||
Comment on attachment 8487038 [details]
23898.html
[Approval Request Comment]
[Bug caused by] (feature/regressing bug #):
Cause by new ICE contacts feature
[User impact] if declined:
Wrong information and bad user experience. Specially in a feature that is for users's safety
[Testing completed]:
Added more integration tests to check the good behavior.
[Risk to taking this patch] (and alternatives if risky):
Low risk, we are just applying a tiny filter before setting the value. This patch is 30% code 70% tests.
[String changes made]:
ICERepeatContact = This contact is already an existing ICE contact
Attachment #8487038 -
Flags: approval-gaia-v2.1?(bbajaj)
Assignee | ||
Updated•10 years ago
|
status-b2g-v2.2:
--- → fixed
Assignee | ||
Comment 17•10 years ago
|
||
Unfortunately I had to revert this patch since the integration test that we add is failing in try.
I've passed it locally, but we will need to investigate why is not working on try, meanwhile we cannot stop progress from other teams so, here is the backout commit:
https://github.com/mozilla-b2g/gaia/commit/97e0edce6aac3a5a9db220e4717e81056c97fe96
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Assignee | ||
Comment 18•10 years ago
|
||
Comment on attachment 8487038 [details]
23898.html
Removing the request for approval until we have everything sorted.
Attachment #8487038 -
Flags: approval-gaia-v2.1?(bbajaj)
Comment 19•10 years ago
|
||
Hi Francisco, I think it would be better if, for the time being at least, Jorge focuses on Dialer related apps, mainly to get a deeper knowledge on them. What do you think about assigning this bug to yourself to track the problems with the integration tests in try? It seems they do not only affect the newly created integration test :)
Flags: needinfo?(francisco)
Comment 20•10 years ago
|
||
Hello, I think that the problem is in:
https://github.com/jpruden92/gaia/blob/f1e3a9a8d1e4b6c5066542943e3c043deb0c0aa4/apps/communications/contacts/test/marionette/ice_test.js#L40
This line is used by other integration tests and it fails too. (Ex. form_test.js) The integration test show a timeout error.
Thanks!
Assignee | ||
Comment 21•10 years ago
|
||
(In reply to Germán Toro del Valle from comment #19)
> Hi Francisco, I think it would be better if, for the time being at least,
> Jorge focuses on Dialer related apps, mainly to get a deeper knowledge on
> them. What do you think about assigning this bug to yourself to track the
> problems with the integration tests in try? It seems they do not only affect
> the newly created integration test :)
Sure, no problem, will take this bug
Flags: needinfo?(francisco)
Comment 22•10 years ago
|
||
Thanks! ;)
Updated•10 years ago
|
Assignee: jpruden92 → francisco
Assignee | ||
Comment 23•10 years ago
|
||
Attachment #8487038 -
Attachment is obsolete: true
Attachment #8491385 -
Flags: review?(jmcf)
Comment 24•10 years ago
|
||
Comment on attachment 8491385 [details] [review]
Pointer to PR 24169
thanks Francisco. good work!
Attachment #8491385 -
Flags: review?(jmcf) → review+
Assignee | ||
Comment 25•10 years ago
|
||
Assignee | ||
Comment 26•10 years ago
|
||
Comment on attachment 8491385 [details] [review]
Pointer to PR 24169
[Approval Request Comment]
[Bug caused by] (feature/regressing bug #):
ICE contacts feature
[User impact] if declined:
Bad user experience, you can setup the same contact as ICE
[Testing completed]:
Smoke test passed, also added a new integration test to check this out
[Risk to taking this patch] (and alternatives if risky):
Low
[String changes made]:
ICERepeatedContact = This contact is already an existing ICE contact
ICEUnknownError = There was an error setting the contact as ICE
Attachment #8491385 -
Flags: approval-gaia-v2.1?(bbajaj)
Comment 27•10 years ago
|
||
Comment on attachment 8491385 [details] [review]
Pointer to PR 24169
Too late for l10n changes. Try again if you manage to convince the l10n team!
Attachment #8491385 -
Flags: approval-gaia-v2.1?(bbajaj) → approval-gaia-v2.1-
Assignee | ||
Comment 28•10 years ago
|
||
Hi,
Pike, I've been talking with :flod in IRC and we still don't have clear if should be a release drivers decision or l10n-drivers.
Can we have your input here?
Thanks!
Flags: needinfo?(l10n)
Assignee | ||
Updated•10 years ago
|
Status: REOPENED → RESOLVED
Closed: 10 years ago → 10 years ago
Resolution: --- → FIXED
Comment 29•10 years ago
|
||
This is a release-driver decision. Which you basically got from Fabrice, which was a "no".
Updated•10 years ago
|
Flags: needinfo?(l10n)
Assignee | ||
Comment 30•10 years ago
|
||
(In reply to Axel Hecht [:Pike] from comment #29)
> This is a release-driver decision. Which you basically got from Fabrice,
> which was a "no".
Thanks Alex for the clear comment.
Assignee | ||
Updated•10 years ago
|
Target Milestone: 2.1 S4 (12sep) → 2.1 S5 (26sep)
Assignee | ||
Comment 31•10 years ago
|
||
Hi, I've been talking with several people trying to solve this.
The l10n team won't get more strings, so there is no way to solve this via new strings. We tried to reuse new strings but we don't have some of them (potentially to display the error) in 2.1
As having an alternative string is the only possible solution, so far, I've been talking with product and they agree in showing a message even if it's not completely translated (not the best solution, we all know, but the only way to unblock this situation and not have this error in 2.1).
In this case we could reuse a facebook string: 'error_1':
error1 = Error {{from}}
where we can pass a parameter, I've checked with Wilfred and he is ok displaying this, so the message ({{from}}) can be the error kind. That message will appear just in english, but the 'Error' string will be transalated.
Again, not the perfect solution but bettern than nothing, product is happy to show that there is an error, but the message wasn't transalted.
Flags: needinfo?(jmcf)
Comment 32•10 years ago
|
||
(In reply to Francisco Jordano [:arcturus] [:francisco] from comment #31)
> Hi, I've been talking with several people trying to solve this.
>
> The l10n team won't get more strings, so there is no way to solve this via
> new strings. We tried to reuse new strings but we don't have some of them
> (potentially to display the error) in 2.1
>
> As having an alternative string is the only possible solution, so far, I've
> been talking with product and they agree in showing a message even if it's
> not completely translated (not the best solution, we all know, but the only
> way to unblock this situation and not have this error in 2.1).
>
> In this case we could reuse a facebook string: 'error_1':
> error1 = Error {{from}}
>
> where we can pass a parameter, I've checked with Wilfred and he is ok
> displaying this, so the message ({{from}}) can be the error kind. That
> message will appear just in english, but the 'Error' string will be
> transalated.
>
> Again, not the perfect solution but bettern than nothing, product is happy
> to show that there is an error, but the message wasn't transalted.
Francisco,
in this bug approval for gaia v2.1 was rejected by Fabrice ... please let me know how to proceed
thanks
Flags: needinfo?(jmcf)
Assignee | ||
Comment 33•10 years ago
|
||
> Francisco,
>
> in this bug approval for gaia v2.1 was rejected by Fabrice ... please let me
> know how to proceed
>
> thanks
As we have been talking this morning, let's create a specific patch for 2.1 with the string 'error1' from Facdebook, and ask for approval for that patch that doesnt introduce any new string.
Comment 34•10 years ago
|
||
patch for v2.1, in accordance with the latest solution proposed by product
Attachment #8499612 -
Flags: review?(francisco)
Assignee | ||
Comment 35•10 years ago
|
||
Comment on attachment 8499612 [details]
24757.html
Looking good to me!
Thanks for the job Jose!
Attachment #8499612 -
Flags: review?(francisco) → review+
Assignee | ||
Comment 36•10 years ago
|
||
Comment on attachment 8499612 [details]
24757.html
[Approval Request Comment]
[Bug caused by] (feature/regressing bug #):
Feature ICE contacts
[User impact] if declined:
User can create a weird application state in a feature conceived for user's security.
[Testing completed]:
Smoke test passed in 2.1 branch, original patch in 2.2 working for a while.
[Risk to taking this patch] (and alternatives if risky):
Pretty low, this bug wasn't accepted for 2.1 cause a new string, but with this specific approach we are reusing a string that we already have translated.
[String changes made]:
None :)
Attachment #8499612 -
Flags: approval-gaia-v2.1?(bbajaj)
Updated•10 years ago
|
Attachment #8499612 -
Flags: approval-gaia-v2.1?(bbajaj) → approval-gaia-v2.1+
Comment 37•10 years ago
|
||
Comment 38•10 years ago
|
||
Issue is verified fixed in Flame 2.2, 2.1 (Full Flash, nightly).
Actual Results: ICE Contacts 1 and 2 cannot be assigned to the same contact.
Device: Flame Master
Build ID: 20141015040201
Gaia: 5f1f0960ae9d22acf2a324ad37a48174d6df87f6
Gecko: 62f0b771583c
Version: 36.0a1 (Master)
Firmware Version: v180
User Agent: Mozilla/5.0 (Mobile; rv:36.0) Gecko/36.0 Firefox/36.0
Device: Flame 2.1
Build ID: 20141015001201
Gaia: 379ea4c9dd6d3f8ca2f79ce59c15f6afe6e557c3
Gecko: 4853208cb48a
Version: 34.0 (2.1)
Firmware Version: v180
User Agent: Mozilla/5.0 (Mobile; rv:34.0) Gecko/34.0 Firefox/34.0
Status: RESOLVED → VERIFIED
QA Whiteboard: [COM=Gaia::Contacts] → [COM=Gaia::Contacts] [QAnalyst-Triage?]
Flags: needinfo?(ktucker)
Keywords: verifyme
Updated•10 years ago
|
QA Whiteboard: [COM=Gaia::Contacts] [QAnalyst-Triage?] → [COM=Gaia::Contacts] [QAnalyst-Triage+]
Flags: needinfo?(ktucker)
You need to log in
before you can comment on or make changes to this bug.
Description
•