Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-23390] TIAPI: Cannot paginate Ti.Contacts.getAllPeople()

GitHub Issuen/a
TypeImprovement
PriorityCritical
StatusClosed
ResolutionWon't Do
Resolution Date2016-07-21T03:22:49.000+0000
Affected Version/sn/a
Fix Version/sn/a
ComponentsTiAPI
Labelsn/a
ReporterKiley Williams
AssigneeAshraf Abu
Created2016-05-14T18:55:06.000+0000
Updated2016-07-26T06:55:58.000+0000

Description

Comments

  1. Kiley Williams 2016-05-14

    AC-3628 is a potential temporary workaround for TIMOB-20279
  2. Nazmus Salahin 2016-05-15

    Hello, Thanks for creating the ticket. Our engineering team will look into it. This need to be cleared by our selection committee. Please understand that the processes is time-consuming and lots of variables in play. We will let you know if and when we will be including this feature in our platform. Regards
  3. Kiley Williams 2016-06-13

    Any update on this? The Ti.Contacts.getAllPeople() functionality is 100% blocked if a device has more than 512 contacts. Pagination would be a viable workaround, but this ticket indicates that it is not currently possible, even though the documentation states that it is. Please advice what needs to be done on our end to avoid continued blockage. Thanks.
  4. Kiley Williams 2016-07-05

    Any movement here? We either need this to be resolved, or TIMOB-20279 to be resolved so that we can be unblocked when retrieving more than 512 contacts...
  5. Ashraf Abu 2016-07-07

    PR: https://github.com/appcelerator/titanium_mobile/pull/8112
  6. Ashraf Abu 2016-07-21

    Closing this issue as won't do as this was initially thought as a remedy for the getAllPeople method. There's a proper fix for this now in TIMOB-15765.
  7. Kiley Williams 2016-07-26

    Thanks @ashraf. Should this be removed from the documentation as well, for uniformity?
  8. Ashraf Abu 2016-07-26

    This was not merged. Which docs are you referring to?
  9. Kiley Williams 2016-07-26

    It's marked as "Won't Do", but the documentation still says that it is possible to set a limit on the number of people retrieved by the getAllPeople() method. You can see it here: http://docs.appcelerator.com/platform/latest/#!/api/Titanium.Contacts-method-getAllPeople Currently, that is not possible (I believe), or I must be mistaken, but I opened this ticket originally because it was not possible as a workaround for the other (now fixed) issue. So I just figured it would eliminate confusion down the line to remove the "limit" parameter if it was not going to actually be properly implementer. @ashraf, I thought you had implemented a fix for it already in one of your PRs anyway... but maybe not. Either way, if it's going to be a "Won't Do" resolution, then that means the documentation is describing functionality that does not exist, which might confuse some people down the line.

JSON Source