Fix #17404 - Handling and Redirecting to the database list page after dropping the current Database#17886
Fix #17404 - Handling and Redirecting to the database list page after dropping the current Database#17886vimalMK wants to merge 1 commit into
Conversation
Signed-off-by: Vimal K <vimalinfo10@gmail.com>
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #17886 +/- ##
============================================
- Coverage 54.59% 49.78% -4.82%
- Complexity 16602 16741 +139
============================================
Files 617 602 -15
Lines 52448 59823 +7375
============================================
+ Hits 28635 29780 +1145
- Misses 23813 30043 +6230
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
OlafvdSpek
left a comment
There was a problem hiding this comment.
Is this the right place for the redirect?
| Message::error(__('No databases selected.')) | ||
| ); | ||
| //Redirecting to the server page and exiting the AJAX control | ||
| $param = ['ajax_request' => 'false', 'message' => __('No databases selected.')]; |
There was a problem hiding this comment.
after viewing the video it's maybe not the proper message to display 🤔
There was a problem hiding this comment.
can you suggest a message you think might fit well . I can update it.
There was a problem hiding this comment.
something like "Please select a database" instead of "Database not selected"
|
@OlafvdSpek thank you for the review. what page you think might make more sense for redirect ? |
If the query is executed in the context of |
The PR will reflect the behavior of redirecting only when the query is executed from Anything performed via Please let me know what you think about it. :) |
MauricioFauth
left a comment
There was a problem hiding this comment.
I also not sure if this is the right change. But I have no better idea. I'd rather add this to the master branch instead. What do you think @williamdes?
|
@vimalMK Unrelated to this PR. Looks like you are using the wrong video codec for the webm video. That's why it doesn't work on Firefox. |
Thanks for letting me know. I had no idea. :) |
Same
Yes, I agree. It's not fixing any real bug. I updated the labels on the issue |
|
Replaced by #18675. |
Signed-off-by: Vimal K vimalinfo10@gmail.com
Description
Handling and Redirecting to the database list page after dropping the current database.
After dropping the DB and redirecting, a gentle message is shown saying 'No database selected'. No error message pop up.
drop_db_pma.webm
Fixes #17404
Before submitting pull request, please review the following checklist:
Signed-off-byline as described in our DCO. This ensures that the work you're submitting is your own creation.