Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve the [bwtrace] shortcode #69

Open
bobbingwide opened this issue Apr 27, 2018 · 1 comment
Open

Improve the [bwtrace] shortcode #69

bobbingwide opened this issue Apr 27, 2018 · 1 comment
Assignees

Comments

@bobbingwide
Copy link
Owner

bobbingwide commented Apr 27, 2018

The output from the [bwtrace] shortcode, which is displayed in the oik trace options admin page is no longer much use.

option= Processing
none Displays an image link to the oik trace options admin page plus reset button
view Displays a link to the most recent browser trace file
reset Creates the Trace reset button which is used to reset the browser trace file

The link to the trace options page is a rather old image.
oik-trace_48

Requirement

  • Change the bwtrace shortcode
option= Change? Processing
none Yes Display a button link to the oik trace options admin page. No reset button
view No Displays a link to the most recent browser trace file
reset No Creates the Trace reset button which is used to reset the browser trace file
logs Added Display a summary of the different trace logs

option=logs

Sample output ( from qw/oikcom )

Type Path Files Size From To
daily bwtrace.vt 161 3,956,420 2017-05-17 2018-04-27
browser bwtraces.loh 1095 1,908,844,717 2018-03-12 2018-04-27
ajax bwtrace.ajax 969 228,329,472 2018-03-13 2018-04-16
rest bwtraces.rest 1141 1,544,215,267 2018-03-27 2018-04-16
cli bwtraces.cli 112 100,209,273 2018-03-11 2018-04-03
  • Add a WP-CLI trace logs command- to display the same information as above
  • Add a WP-CLI trace delete type --retain=count command to support deletion of files

Proposed solution

Pre-requisite is to move the shortcodes from oik to oik-bwtrace. See bobbingwide/oik#105

@bobbingwide
Copy link
Owner Author

bobbingwide commented Apr 11, 2019

Requirements update

  • Eliminate trace reset and view options. These dealt with a single trace file. Nowadays there are potentially multiple trace file types and many trace output files
  • Do not display the trace logs summary on the front end
  • Delete deprecated functions from deprecated.php
  • Deprecate a new set of functions: bw_trace_reset_form()... etc
  • Disable the [bwtron] and [bwtroff] shortcodes

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant