mirror of https://github.com/perkeep/perkeep.git
ui: reduce describe depth, using recursive describe instead
Updates issue https://code.google.com/p/camlistore/issues/detail?id=319 Change-Id: Ie02b0f565c6ff4c9582cecc78914392a60bf9502
This commit is contained in:
parent
bf39d55941
commit
384b627b5e
|
@ -62,11 +62,27 @@ cam.SearchSession.DESCRIBE_REQUEST = {
|
|||
// TODO(aa): This needs to die: https://code.google.com/p/camlistore/issues/detail?id=321
|
||||
thumbnailSize: 1000,
|
||||
|
||||
// TODO(aa): This is not great. The describe request will return tons of data we don't care about:
|
||||
// - Children of folders
|
||||
// TODO(aa): This is not perfect. The describe request will return some data we don't care about:
|
||||
// - Properties we don't use
|
||||
// See: https://code.google.com/p/camlistore/issues/detail?id=319
|
||||
depth: 4
|
||||
|
||||
depth: 1,
|
||||
rules: [
|
||||
{
|
||||
attrs: ['camliContent', 'camliContentImage']
|
||||
},
|
||||
{
|
||||
ifCamliNodeType: 'foursquare.com:checkin',
|
||||
attrs: ['foursquareVenuePermanode']
|
||||
},
|
||||
{
|
||||
ifCamliNodeType: 'foursquare.com:venue',
|
||||
attrs: ['camliPath:photos'],
|
||||
rules: [
|
||||
{ attrs: ['camliPath:*'] }
|
||||
]
|
||||
}
|
||||
]
|
||||
};
|
||||
|
||||
cam.SearchSession.instanceCount_ = 0;
|
||||
|
|
Loading…
Reference in New Issue