Fix table list while wildcard is added#4606
Fix table list while wildcard is added#4606BhargavBhandari90 wants to merge 5 commits intowp-cli:masterfrom BhargavBhandari90:issue/GH-73
Conversation
|
Thanks @BhargavBhandari90, could you add tests, for both the single and multisite scenarios in and check STDOUT does/doesn't contain |
|
Hmm, I think the wildcard case needs to be put through the same filtering as the non-wildcard case. This is what I'm using locally (testing single site only and default options only for the moment): |
|
Hey @gitlost. I just saw your feedback now. I added test without checking your feedback. I'll make changes according to that. |
|
@gitlost if we are checking default prefix, then And in this case, it should display using |
|
Hmmm. My understanding - this is all without the A real-world example is the woocommerce plugin, which creates quite a few tables (eg My expectation would be that @schlessera have I got this right?!? One could argue that this breaks BC though, which may be an issue... |
|
@gitlost I got your point. But in the current solution, it's not showing proper output while we add wildcard. Let's say we have added a new table named So if we do So this solution needs to improve. |
|
Yes, I think the code needs to be refactored to put the filtering done based on the passed-in !!! For BC there might be a case to add an option |
|
All right @gitlost Will try by this weekend. Thank you. |
|
@gitlost Made some changes. Please check. |
|
As discussed with @BhargavBhandari90 in slack (and thanks for all your work so far!), I'm closing this is favor of #4624 |
For wp-cli/db-command#73