]> git.proxmox.com Git - pmg-gui.git/commit
fix #1976: enable remoteSort for PostfixMailQueue
authorStoiko Ivanov <s.ivanov@proxmox.com>
Thu, 28 May 2020 08:04:59 +0000 (10:04 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Thu, 4 Jun 2020 06:34:55 +0000 (08:34 +0200)
commit6cde982f6afb0229c007a4316c78046633b52b78
treead1d70cefa99056364eff10e514f1219dd480c2f
parent22b6f5db7780ab8332a0ed8dbde15398d1300627
fix #1976: enable remoteSort for PostfixMailQueue

The mailq results are potentially very large, why a BufferedStore is used.

BufferedStores only support [0] remote filtering (which is already done) and
remote sorting (which this patch enables).

simpleSortMode (getting sortfield and sortdirection as two parameters instead
of an array with multiple objects containing those fields), is enabled to
work with our API.

[0] quite naturally, since you'd need to have the complete result to sort it,
 however only documented in the source code (and not the reference docs)

Signed-off-by: Stoiko Ivanov <s.ivanov@proxmox.com>
js/PostfixMailQueue.js