hemal0105 / google-api-php-client

Automatically exported from code.google.com/p/google-api-php-client
Apache License 2.0
0 stars 0 forks source link

Datastore and sorting batch lookup query #442

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
The result returned by the batch lookup query is not sorted as it is expected.

What steps will reproduce the problem?
1. Execute query to obtain a set of keys ($keys) of a given entity, sorted by a 
given field.
2. Use $keys as input of the batch lookup query to retrieve a set of entities.
3. The query returns the entities in a different order than the initial one.

What is the expected output? What do you see instead?

The expected output is the set of entities following the same order as the set 
of keys retrieved in the first step. 

What version of the product are you using? On what operating system?

Version 0.6.7, on Windows 7

Please provide any additional information below.

This functionality was working properly but the 7th or 8th of january, it 
started to return the results in this 'random' order.

I have not applied any change to the Google API client, and I have checked all 
the steps until the execution of this lookup query.

$request = new Google_LookupRequest();
// $keys is sorted
$request->setKeys($keys);
$response = $this->datastore->datasets->lookup($this->appId, $request);
// $response->getFound() returns the set of entities

There is more info about this issue in this post:
http://stackoverflow.com/questions/21026816/sorting-when-performing-batch-lookup
-operation

If you need more info, please let me know

Original issue reported on code.google.com by fjore...@gmail.com on 10 Jan 2014 at 9:48

GoogleCodeExporter commented 8 years ago
This issue tracker is now closing. Development on the Google PHP client library 
moved to GitHub with the release of the 1.0.0-alpha, and now the 1.0 branch has 
reached beta status there will be no further releases of the 0.6 branch of the 
library. 

Please take a look at the latest version on 
https://github.com/google/google-api-php-client

For information on migrating, please take a look at this guide: 
https://developers.google.com/api-client-library/php/guide/migration

For general library support please ask a question on StackOverflow: 
http://stackoverflow.com/questions/tagged/google-api-php-client

If you are looking for support with a specific API, please contact the team 
working with that API via StackOverflow or their preferred support mechanism. 

If your issue still exists with the new version of the library, please raise a 
bug in the GitHub issue tracker with a minimal code sample. 

Thanks!

Original comment by ianbar...@google.com on 22 Jan 2014 at 4:56

GoogleCodeExporter commented 8 years ago

Original comment by ianbar...@google.com on 22 Jan 2014 at 4:56