-
-
Notifications
You must be signed in to change notification settings - Fork 3.5k
Insufficient space export exception #20017
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
base: master
Are you sure you want to change the base?
Insufficient space export exception #20017
Conversation
Signed-off-by: Kamil Tekiela <tekiela246@gmail.com>
Signed-off-by: Kamil Tekiela <tekiela246@gmail.com>
Signed-off-by: Kamil Tekiela <tekiela246@gmail.com>
|
|
||
| $this->outputHandler->addLine( | ||
| '/**' . "\n" | ||
| . ' * Database ' . $this->commentString(Util::backquote($dbAlias)) |
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.
This should be translatable?
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.
Maybe, but it's not really part of this PR.
| } | ||
| $this->outputHandler->addLine( | ||
| $tableAlias !== '' | ||
| ? '== ' . __('Dumping data for table') . ' ' . $tableAlias . "\n\n" |
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.
Qustion: Here and in a few other places, shouldn't sprintf be used instead?
| ? '== ' . __('Dumping data for table') . ' ' . $tableAlias . "\n\n" | |
| ? '== ' . sprintf(__('Dumping data for table %s'), $tableAlias) . "\n\n" |
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.
Yeah, sounds good, but this PR is already huge, so maybe let's do it in the next PR.
This refactors all Export plugins. All methods now return void instead of bool. There were only two reasons when any of these methods would return false:
json_encodethe outputExportExceptionexception was reused to handle these two cases. In the next PR,json_encodehandling can be improved.