[pmg-devel] [PATCH pmg-api/pmg-gui ] fix 1976

Stoiko Ivanov s.ivanov at proxmox.com
Thu May 28 10:04:57 CEST 2020


This patchset addresses sorting of the deferred queue output in
GUI->Administration->Queues.

Simply enabling sorting does not work, due to the BufferedStore used for the
API result (on a loaded system or in case of a misconfiguration the queue
can easily grow to contain many entries).

Huge Thanks to Dominik for walking me through to the point that sometimes it's
best to simply check the ExtJS sourcecode and not rely on the documentation!

I used simpleSortMode [0], since it should be enough for this use-case and
I did not find a way to (sensibly) pass an array to an API call.

[0] providing the sortfield and direction as two parameters instead of
an array of objects with 'field' and 'direction' properties

pmg-api:
Stoiko Ivanov (1):
  fix #1976: optionally sort postfix queue result

 src/PMG/API2/Postfix.pm | 28 ++++++++++++++++++++++++++++
 1 file changed, 28 insertions(+)

pmg-gui:
Stoiko Ivanov (1):
  fix #1976: enable remoteSort for PostfixMailQueue

 js/PostfixMailQueue.js | 4 ++++
 1 file changed, 4 insertions(+)

-- 
2.20.1




More information about the pmg-devel mailing list