Closed
Bug 1032871
Opened 10 years ago
Closed 10 years ago
[Contacts] There is no way to pick a contact with filter 'webcontacts/contact'
Categories
(Firefox OS Graveyard :: Gaia::Contacts, defect)
Tracking
(feature-b2g:2.0, b2g-v2.0 fixed, b2g-v2.1 fixed)
People
(Reporter: borjasalguero, Assigned: borjasalguero)
References
Details
(Whiteboard: ft:loop)
Attachments
(1 file)
46 bytes,
text/x-github-pull-request
|
arcturus
:
review+
bajaj
:
approval-gaia-v2.0+
|
Details | Review |
Contacts App offers 3 ways for picking a Contact:
- webcontacts/tel: Pick a contact with 1 or more phone numbers
- webcontacts/mail: Pick a contact with 1 or more emails
- webcontacts/contact: Pick a contact without a filter, just the contact.
However, last one is not working properly as It was used in the past as main 'pick' activity. However, for third party apps and other privileged apps as Loop, we need a way to pick a raw contact as it is, without considering a pre-filter.
Assignee | ||
Updated•10 years ago
|
Assignee: nobody → borja.bugzilla
Assignee | ||
Comment 1•10 years ago
|
||
Currently, 'webcontacts/contact' returns an Object with just name & phone number, which is previously selected through the activity.
Assignee | ||
Comment 2•10 years ago
|
||
Attachment #8448810 -
Flags: feedback?(francisco)
Updated•10 years ago
|
feature-b2g: --- → 2.0
Whiteboard: ft:loop
Comment 3•10 years ago
|
||
Comment on attachment 8448810 [details] [review]
Pull Request
You are changing the public api here.
I'm sure we have apps expecting just the current data and we will breaking them if we apply this change.
I would suggest to keep the current behaviour, and add an extra parameter, to the web activity to force the return of the whole contact.
Attachment #8448810 -
Flags: feedback?(francisco) → feedback-
Assignee | ||
Comment 4•10 years ago
|
||
Comment on attachment 8448810 [details] [review]
Pull Request
After talking with Francisco, here the final solution. Keeping previous compatibility and adding an extra param in order to retrieve the raw contact. Tests added.
Attachment #8448810 -
Flags: review?(francisco)
Comment 5•10 years ago
|
||
Comment on attachment 8448810 [details] [review]
Pull Request
Nice work!
Attachment #8448810 -
Flags: review?(francisco)
Attachment #8448810 -
Flags: review+
Attachment #8448810 -
Flags: feedback-
Assignee | ||
Comment 6•10 years ago
|
||
Travis Green, so ready to go! Merged!
https://github.com/borjasalguero/gaia/commit/b1f437aee5be888fce1fc716a8930d6791c0db5f
https://github.com/mozilla-b2g/gaia/commit/9e9379765d2bfbe98b9291cea06754773e0848db
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Assignee | ||
Comment 7•10 years ago
|
||
Comment on attachment 8448810 [details] [review]
Pull Request
NOTE: Please see https://wiki.mozilla.org/Release_Management/B2G_Landing to better understand the B2G approval process and landings.
[Approval Request Comment]
[Bug caused by] (feature/regressing bug #): When requesting a 'webcontacts/contact' we were returning a non-mozContact structure.
[User impact] if declined: Loop or any other app which needs the full contact regardless if it has phone numbers or not is not going to work.
[Testing completed]:
[Risk to taking this patch] (and alternatives if risky): There is no risk. After talking with Francisco, we are keeping the compatibility with previous activity requests. If we want to get the whole mozContact, we need to add an extra param called 'fullContact' equal true.
So this patch is keeping the previous behaviour, and we are just adding an optional param for the apps which need this functionality working.
[String changes made]: No
Attachment #8448810 -
Flags: approval-gaia-v2.0?
Updated•10 years ago
|
Attachment #8448810 -
Flags: approval-gaia-v2.0? → approval-gaia-v2.0+
Updated•10 years ago
|
Blocks: loop_gaia_change
Comment 8•10 years ago
|
||
Hi Ryan, sorry for bothering you. If it's possible, could you be so kind of speeding up the uplifting of this patch to 2.0?
QA is starting to test Loop application on 2.0 and we need this patch in this release to continue with the test run.
Thanks a lot!
Flags: needinfo?(ryanvm)
Comment 9•10 years ago
|
||
(In reply to Maria Angeles Oteo (:oteo) from comment #8)
> Hi Ryan, sorry for bothering you. If it's possible, could you be so kind of
> speeding up the uplifting of this patch to 2.0?
> QA is starting to test Loop application on 2.0 and we need this patch in
> this release to continue with the test run.
> Thanks a lot!
The US was on holiday on Friday. I'm working through the backlog today.
Flags: needinfo?(ryanvm)
Comment 10•10 years ago
|
||
You need to log in
before you can comment on or make changes to this bug.
Description
•