fixes #966 progression bar for sync metadata

* [Batch Manager] adding progression bar for metadata sync action
* [Batch Manager] display the number of synchronized photos in the success message
This commit is contained in:
Teatek
2019-01-27 17:16:13 +01:00
committed by Pierrick Le Gall
parent beec234478
commit b8d6f01b38
7 changed files with 151 additions and 24 deletions
+25 -11
View File
@@ -510,17 +510,31 @@ function ws_addDefaultMethods( $arr )
array('admin_only'=>true, 'post_only'=>true)
);
$service->addMethod(
'pwg.images.setMd5sum',
'ws_images_setMd5sum',
array(
'block_size' => array('default'=>1000, 'type'=>WS_TYPE_INT|WS_TYPE_POSITIVE),
'pwg_token' => array(),
),
'Set md5sum column, by blocks. Returns how many md5sums were added and how many are remaining.',
$ws_functions_root . 'pwg.images.php',
array('admin_only'=>true, 'post_only'=>true)
);
$service->addMethod(
'pwg.images.setMd5sum',
'ws_images_setMd5sum',
array(
'block_size' => array('default'=>1000, 'type'=>WS_TYPE_INT|WS_TYPE_POSITIVE),
'pwg_token' => array(),
),
'Set md5sum column, by blocks. Returns how many md5sums were added and how many are remaining.',
$ws_functions_root . 'pwg.images.php',
array('admin_only'=>true, 'post_only'=>true)
);
$service->addMethod(
'pwg.images.syncMetadata',
'ws_images_syncMetadata',
array(
'image_id' => array('default'=>null,
'type'=>WS_TYPE_ID|WS_TYPE_POSITIVE,
'flags'=>WS_PARAM_FORCE_ARRAY),
'pwg_token' => array(),
),
'Sync metadatas, by blocks. Returns how many images were synchronized',
$ws_functions_root . 'pwg.images.php',
array('admin_only'=>true, 'post_only'=>true)
);
$service->addMethod(
'pwg.images.deleteOrphans',