-
Notifications
You must be signed in to change notification settings - Fork 198
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
Add a progress table eraser tool #7230
Conversation
Codecov Report
@@ Coverage Diff @@
## trunk #7230 +/- ##
============================================
+ Coverage 50.40% 50.43% +0.03%
- Complexity 10888 10909 +21
============================================
Files 604 605 +1
Lines 45925 45986 +61
Branches 402 402
============================================
+ Hits 23149 23194 +45
- Misses 22449 22465 +16
Partials 327 327
... and 3 files with indirect coverage changes Continue to review full report in Codecov by Sentry.
|
I've disabled the feature and have the tables but the "Visit Tool" is disabled. Any ideas why? I'm starting to think that maybe it would be best to introduce this tool after we have the settings UI. That way we can show the tool if the HPPS feature is enabled (same as the migration tool) and make it available if the tables are not used. WDYT? |
@m1r0 Fixed here: 11e0941
Makes sense. So what we should to do with this PR? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tests well. 👍 I found a few very minor things that are not a blocker.
Makes sense. So what we should to do with this PR?
Let's merge it as is so it doesn't get stale and improve it later. I will make a new card for the improvements.
} | ||
|
||
Sensei_Tools::instance()->add_user_message( $message ); | ||
wp_safe_redirect( $this->get_tool_url() ); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, Miro. Fixed it here: 4299161
I redirect to the Tools page when tables were deleted.
Resolves #5868
Proposed Changes
Testing Instructions
sensei-version
option fromwp_options
table and reload a page (it should run schema update and create tables).Delete student progress tables
, click "Visit Tool".Pre-Merge Checklist