Skip to content

Commit 3a28e8f

Browse files
authored
Merge pull request #274 from woocommerce/wooplug-4955-coupon-discount-totals-not-aggregated-in-analytics-when-code
Update system_status/tools endpoint
2 parents 820f0dc + 2a7efba commit 3a28e8f

File tree

2 files changed

+298
-10
lines changed

2 files changed

+298
-10
lines changed

source/includes/wp-api-v2/_system-status-tools.md

Lines changed: 149 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -175,6 +175,60 @@ woocommerce.get("system_status/tools").parsed_response
175175
]
176176
}
177177
},
178+
{
179+
"id": "clear_expired_download_permissions",
180+
"name": "Used-up download permissions",
181+
"action": "Clean up download permissions",
182+
"description": "This tool will delete expired download permissions and permissions with 0 remaining downloads.",
183+
"_links": {
184+
"self": [
185+
{
186+
"href": "https://example.com/wp-json/wc/v2/system_status/tools/clear_expired_download_permissions"
187+
}
188+
],
189+
"collection": [
190+
{
191+
"href": "https://example.com/wp-json/wc/v2/system_status/tools"
192+
}
193+
]
194+
}
195+
},
196+
{
197+
"id": "regenerate_product_lookup_tables",
198+
"name": "Product lookup tables",
199+
"action": "Regenerate",
200+
"description": "This tool will regenerate product lookup table data. This process may take a while.",
201+
"_links": {
202+
"self": [
203+
{
204+
"href": "https://example.com/wp-json/wc/v2/system_status/tools/regenerate_product_lookup_tables"
205+
}
206+
],
207+
"collection": [
208+
{
209+
"href": "https://example.com/wp-json/wc/v2/system_status/tools"
210+
}
211+
]
212+
}
213+
},
214+
{
215+
"id": "repair_coupons_lookup_table",
216+
"name": "Coupons lookup table",
217+
"action": "Repair",
218+
"description": "This tool will repair the coupons lookup table data with missing discount amounts. This process may take a while.",
219+
"_links": {
220+
"self": [
221+
{
222+
"href": "https://example.com/wp-json/wc/v2/system_status/tools/repair_coupons_lookup_table"
223+
}
224+
],
225+
"collection": [
226+
{
227+
"href": "https://example.com/wp-json/wc/v2/system_status/tools"
228+
}
229+
]
230+
}
231+
},
178232
{
179233
"id": "recount_terms",
180234
"name": "Term counts",
@@ -229,6 +283,42 @@ woocommerce.get("system_status/tools").parsed_response
229283
]
230284
}
231285
},
286+
{
287+
"id": "clear_template_cache",
288+
"name": "Clear template cache",
289+
"action": "Clear",
290+
"description": "<strong class=\"red\">Note:</strong> This tool will empty the template cache.",
291+
"_links": {
292+
"self": [
293+
{
294+
"href": "https://example.com/wp-json/wc/v2/system_status/tools/clear_template_cache"
295+
}
296+
],
297+
"collection": [
298+
{
299+
"href": "https://example.com/wp-json/wc/v2/system_status/tools"
300+
}
301+
]
302+
}
303+
},
304+
{
305+
"id": "clear_system_status_theme_info_cache",
306+
"name": "Clear system status theme info cache",
307+
"action": "Clear",
308+
"description": "<strong class=\"red\">Note:</strong> This tool will empty the system status theme info cache.",
309+
"_links": {
310+
"self": [
311+
{
312+
"href": "https://example.com/wp-json/wc/v2/system_status/tools/clear_system_status_theme_info_cache"
313+
}
314+
],
315+
"collection": [
316+
{
317+
"href": "https://example.com/wp-json/wc/v2/system_status/tools"
318+
}
319+
]
320+
}
321+
},
232322
{
233323
"id": "install_pages",
234324
"name": "Install WooCommerce pages",
@@ -266,14 +356,68 @@ woocommerce.get("system_status/tools").parsed_response
266356
}
267357
},
268358
{
269-
"id": "reset_tracking",
270-
"name": "Reset usage tracking settings",
271-
"action": "Reset usage tracking settings",
272-
"description": "This will reset your usage tracking settings, causing it to show the opt-in banner again and not sending any data.",
359+
"id": "regenerate_thumbnails",
360+
"name": "Regenerate shop thumbnails",
361+
"action": "Regenerate",
362+
"description": "This will regenerate all shop thumbnails to match your theme and/or image settings.",
363+
"_links": {
364+
"self": [
365+
{
366+
"href": "https://example.com/wp-json/wc/v2/system_status/tools/regenerate_thumbnails"
367+
}
368+
],
369+
"collection": [
370+
{
371+
"href": "https://example.com/wp-json/wc/v2/system_status/tools"
372+
}
373+
]
374+
}
375+
},
376+
{
377+
"id": "db_update_routine",
378+
"name": "Update database",
379+
"action": "Update database",
380+
"description": "<strong class=\"red\">Note:</strong> This tool will update your WooCommerce database to the latest version. Please ensure you make sufficient backups before proceeding.",
381+
"_links": {
382+
"self": [
383+
{
384+
"href": "https://example.com/wp-json/wc/v2/system_status/tools/db_update_routine"
385+
}
386+
],
387+
"collection": [
388+
{
389+
"href": "https://example.com/wp-json/wc/v2/system_status/tools"
390+
}
391+
]
392+
}
393+
},
394+
{
395+
"id": "recreate_order_address_fts_index",
396+
"name": "Re-create Order Address FTS index",
397+
"action": "Recreate index",
398+
"description": "This tool will recreate the full text search index for order addresses. If the index does not exist, it will try to create it.",
399+
"_links": {
400+
"self": [
401+
{
402+
"href": "https://example.com/wp-json/wc/v2/system_status/tools/recreate_order_address_fts_index"
403+
}
404+
],
405+
"collection": [
406+
{
407+
"href": "https://example.com/wp-json/wc/v2/system_status/tools"
408+
}
409+
]
410+
}
411+
},
412+
{
413+
"id": "verify_db_tables",
414+
"name": "Verify base database tables",
415+
"action": "Verify database",
416+
"description": "Verify if all base database tables are present.",
273417
"_links": {
274418
"self": [
275419
{
276-
"href": "https://example.com/wp-json/wc/v2/system_status/tools/reset_tracking"
420+
"href": "https://example.com/wp-json/wc/v2/system_status/tools/verify_db_tables"
277421
}
278422
],
279423
"collection": [

source/includes/wp-api-v3/_system-status-tools.md

Lines changed: 149 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -175,6 +175,60 @@ woocommerce.get("system_status/tools").parsed_response
175175
]
176176
}
177177
},
178+
{
179+
"id": "clear_expired_download_permissions",
180+
"name": "Used-up download permissions",
181+
"action": "Clean up download permissions",
182+
"description": "This tool will delete expired download permissions and permissions with 0 remaining downloads.",
183+
"_links": {
184+
"self": [
185+
{
186+
"href": "https://example.com/wp-json/wc/v3/system_status/tools/clear_expired_download_permissions"
187+
}
188+
],
189+
"collection": [
190+
{
191+
"href": "https://example.com/wp-json/wc/v3/system_status/tools"
192+
}
193+
]
194+
}
195+
},
196+
{
197+
"id": "regenerate_product_lookup_tables",
198+
"name": "Product lookup tables",
199+
"action": "Regenerate",
200+
"description": "This tool will regenerate product lookup table data. This process may take a while.",
201+
"_links": {
202+
"self": [
203+
{
204+
"href": "https://example.com/wp-json/wc/v3/system_status/tools/regenerate_product_lookup_tables"
205+
}
206+
],
207+
"collection": [
208+
{
209+
"href": "https://example.com/wp-json/wc/v3/system_status/tools"
210+
}
211+
]
212+
}
213+
},
214+
{
215+
"id": "repair_coupons_lookup_table",
216+
"name": "Coupons lookup table",
217+
"action": "Repair",
218+
"description": "This tool will repair the coupons lookup table data with missing discount amounts. This process may take a while.",
219+
"_links": {
220+
"self": [
221+
{
222+
"href": "https://example.com/wp-json/wc/v3/system_status/tools/repair_coupons_lookup_table"
223+
}
224+
],
225+
"collection": [
226+
{
227+
"href": "https://example.com/wp-json/wc/v3/system_status/tools"
228+
}
229+
]
230+
}
231+
},
178232
{
179233
"id": "recount_terms",
180234
"name": "Term counts",
@@ -229,6 +283,42 @@ woocommerce.get("system_status/tools").parsed_response
229283
]
230284
}
231285
},
286+
{
287+
"id": "clear_template_cache",
288+
"name": "Clear template cache",
289+
"action": "Clear",
290+
"description": "<strong class=\"red\">Note:</strong> This tool will empty the template cache.",
291+
"_links": {
292+
"self": [
293+
{
294+
"href": "https://example.com/wp-json/wc/v3/system_status/tools/clear_template_cache"
295+
}
296+
],
297+
"collection": [
298+
{
299+
"href": "https://example.com/wp-json/wc/v3/system_status/tools"
300+
}
301+
]
302+
}
303+
},
304+
{
305+
"id": "clear_system_status_theme_info_cache",
306+
"name": "Clear system status theme info cache",
307+
"action": "Clear",
308+
"description": "<strong class=\"red\">Note:</strong> This tool will empty the system status theme info cache.",
309+
"_links": {
310+
"self": [
311+
{
312+
"href": "https://example.com/wp-json/wc/v3/system_status/tools/clear_system_status_theme_info_cache"
313+
}
314+
],
315+
"collection": [
316+
{
317+
"href": "https://example.com/wp-json/wc/v3/system_status/tools"
318+
}
319+
]
320+
}
321+
},
232322
{
233323
"id": "install_pages",
234324
"name": "Install WooCommerce pages",
@@ -266,14 +356,68 @@ woocommerce.get("system_status/tools").parsed_response
266356
}
267357
},
268358
{
269-
"id": "reset_tracking",
270-
"name": "Reset usage tracking settings",
271-
"action": "Reset usage tracking settings",
272-
"description": "This will reset your usage tracking settings, causing it to show the opt-in banner again and not sending any data.",
359+
"id": "regenerate_thumbnails",
360+
"name": "Regenerate shop thumbnails",
361+
"action": "Regenerate",
362+
"description": "This will regenerate all shop thumbnails to match your theme and/or image settings.",
363+
"_links": {
364+
"self": [
365+
{
366+
"href": "https://example.com/wp-json/wc/v3/system_status/tools/regenerate_thumbnails"
367+
}
368+
],
369+
"collection": [
370+
{
371+
"href": "https://example.com/wp-json/wc/v3/system_status/tools"
372+
}
373+
]
374+
}
375+
},
376+
{
377+
"id": "db_update_routine",
378+
"name": "Update database",
379+
"action": "Update database",
380+
"description": "<strong class=\"red\">Note:</strong> This tool will update your WooCommerce database to the latest version. Please ensure you make sufficient backups before proceeding.",
381+
"_links": {
382+
"self": [
383+
{
384+
"href": "https://example.com/wp-json/wc/v3/system_status/tools/db_update_routine"
385+
}
386+
],
387+
"collection": [
388+
{
389+
"href": "https://example.com/wp-json/wc/v3/system_status/tools"
390+
}
391+
]
392+
}
393+
},
394+
{
395+
"id": "recreate_order_address_fts_index",
396+
"name": "Re-create Order Address FTS index",
397+
"action": "Recreate index",
398+
"description": "This tool will recreate the full text search index for order addresses. If the index does not exist, it will try to create it.",
399+
"_links": {
400+
"self": [
401+
{
402+
"href": "https://example.com/wp-json/wc/v3/system_status/tools/recreate_order_address_fts_index"
403+
}
404+
],
405+
"collection": [
406+
{
407+
"href": "https://example.com/wp-json/wc/v3/system_status/tools"
408+
}
409+
]
410+
}
411+
},
412+
{
413+
"id": "verify_db_tables",
414+
"name": "Verify base database tables",
415+
"action": "Verify database",
416+
"description": "Verify if all base database tables are present.",
273417
"_links": {
274418
"self": [
275419
{
276-
"href": "https://example.com/wp-json/wc/v3/system_status/tools/reset_tracking"
420+
"href": "https://example.com/wp-json/wc/v3/system_status/tools/verify_db_tables"
277421
}
278422
],
279423
"collection": [

0 commit comments

Comments
 (0)