[Payments] Dedupe subsets in contact detail suggestions.
Previously suggestions that are a subset of another suggestion are not
deduped.
With this patch, only the most complete version will be suggested to
the user.
A side-effect of this change is that ContactDetails are now sorted by
relevance in regards or the information required from the merchant
instead of completeness.
For example, considering a profile A with only email and a profile B
with email and phone, and a merchant requires email, phone and name.
Previously the order between A and B would have been decided by
frecency since both were incomplete. With this patch, B would be
suggested first since it has more information.
BUG=674647
Review-Url: https://codereview.chromium.org/2583593002
Cr-Commit-Position: refs/heads/master@{#441764}
Committed: https://chromium.googlesource.com/chromium/src/+/90bf8242b2d3f9ffb2bef194f4e065fb81a13ce9
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2583593002/1
Description was changed from
==========
[Payments] Dedupe subsets in contact detail suggestions.
BUG=674647
==========
to
==========
[Payments] Dedupe subsets in contact detail suggestions.
Previously suggestions that are a subset of another suggestion are not deduped.
With this patch, only the most complete version will be suggested to the user.
A side-effect of this change is that ContactDetails are now sorted by relevance
in regards or the information required from the merchant instead of
completeness.
For example, considering a profile A with only email and a profile B with email
and phone, and a merchant requires email, phone and name. Previously the order
between A and B would have been decided by frecency since both were incomplete.
With this patch, B would be suggested first since it has more information.
BUG=674647
==========
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2583593002/60001
Description was changed from
==========
[Payments] Dedupe subsets in contact detail suggestions.
Previously suggestions that are a subset of another suggestion are not deduped.
With this patch, only the most complete version will be suggested to the user.
A side-effect of this change is that ContactDetails are now sorted by relevance
in regards or the information required from the merchant instead of
completeness.
For example, considering a profile A with only email and a profile B with email
and phone, and a merchant requires email, phone and name. Previously the order
between A and B would have been decided by frecency since both were incomplete.
With this patch, B would be suggested first since it has more information.
BUG=674647
==========
to
==========
[Payments] Dedupe subsets in contact detail suggestions.
Previously suggestions that are a subset of another suggestion are not
deduped.
With this patch, only the most complete version will be suggested to
the user.
A side-effect of this change is that ContactDetails are now sorted by
relevance in regards or the information required from the merchant
instead of completeness.
For example, considering a profile A with only email and a profile B
with email and phone, and a merchant requires email, phone and name.
Previously the order between A and B would have been decided by
frecency since both were incomplete. With this patch, B would be
suggested first since it has more information.
BUG=674647
==========
https://codereview.chromium.org/2583593002/diff/160001/chrome/android/java/src/org/chromium/chrome/browser/payments/ContactEditor.java File chrome/android/java/src/org/chromium/chrome/browser/payments/ContactEditor.java (left): https://codereview.chromium.org/2583593002/diff/160001/chrome/android/java/src/org/chromium/chrome/browser/payments/ContactEditor.java#oldcode32 chrome/android/java/src/org/chromium/chrome/browser/payments/ContactEditor.java:32: @Retention(RetentionPolicy.SOURCE) I think you can use @IntDef and @Retension ...
3 years, 12 months ago
(2016-12-27 14:33:58 UTC)
#22
LGTM Some of the best code I've seen this year! https://codereview.chromium.org/2583593002/diff/200001/chrome/android/java/src/org/chromium/chrome/browser/payments/AutofillContact.java File chrome/android/java/src/org/chromium/chrome/browser/payments/AutofillContact.java (right): https://codereview.chromium.org/2583593002/diff/200001/chrome/android/java/src/org/chromium/chrome/browser/payments/AutofillContact.java#newcode109 ...
3 years, 11 months ago
(2017-01-05 18:59:23 UTC)
#24
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2583593002/220001
3 years, 11 months ago
(2017-01-05 19:29:42 UTC)
#28
CQ is committing da patch. Bot data: {"patchset_id": 220001, "attempt_start_ts": 1483644562247810, "parent_rev": "e4fe80178e0f20f1f70be8190f11b97133dfb09b", "commit_rev": "90bf8242b2d3f9ffb2bef194f4e065fb81a13ce9"}
3 years, 11 months ago
(2017-01-05 21:43:02 UTC)
#29
CQ is committing da patch.
Bot data: {"patchset_id": 220001, "attempt_start_ts": 1483644562247810,
"parent_rev": "e4fe80178e0f20f1f70be8190f11b97133dfb09b", "commit_rev":
"90bf8242b2d3f9ffb2bef194f4e065fb81a13ce9"}
commit-bot: I haz the power
Description was changed from ========== [Payments] Dedupe subsets in contact detail suggestions. Previously suggestions that ...
3 years, 11 months ago
(2017-01-05 21:43:33 UTC)
#30
Message was sent while issue was closed.
Description was changed from
==========
[Payments] Dedupe subsets in contact detail suggestions.
Previously suggestions that are a subset of another suggestion are not
deduped.
With this patch, only the most complete version will be suggested to
the user.
A side-effect of this change is that ContactDetails are now sorted by
relevance in regards or the information required from the merchant
instead of completeness.
For example, considering a profile A with only email and a profile B
with email and phone, and a merchant requires email, phone and name.
Previously the order between A and B would have been decided by
frecency since both were incomplete. With this patch, B would be
suggested first since it has more information.
BUG=674647
==========
to
==========
[Payments] Dedupe subsets in contact detail suggestions.
Previously suggestions that are a subset of another suggestion are not
deduped.
With this patch, only the most complete version will be suggested to
the user.
A side-effect of this change is that ContactDetails are now sorted by
relevance in regards or the information required from the merchant
instead of completeness.
For example, considering a profile A with only email and a profile B
with email and phone, and a merchant requires email, phone and name.
Previously the order between A and B would have been decided by
frecency since both were incomplete. With this patch, B would be
suggested first since it has more information.
BUG=674647
Review-Url: https://codereview.chromium.org/2583593002
Cr-Commit-Position: refs/heads/master@{#441764}
Committed:
https://chromium.googlesource.com/chromium/src/+/90bf8242b2d3f9ffb2bef194f4e0...
==========
commit-bot: I haz the power
Committed patchset #7 (id:220001) as https://chromium.googlesource.com/chromium/src/+/90bf8242b2d3f9ffb2bef194f4e065fb81a13ce9
3 years, 11 months ago
(2017-01-05 21:43:35 UTC)
#31
Issue 2583593002: [Payments] Dedupe subsets in contact detail suggestions.
(Closed)
Created 4 years ago by sebsg
Modified 3 years, 11 months ago
Reviewers: please use gerrit instead
Base URL:
Comments: 52