-
-
Notifications
You must be signed in to change notification settings - Fork 3.4k
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
Partitions editor: Allow to edit partition names; Add 'COLUMNS Partitioning' support. #12430
Conversation
Current coverage is 50.07% (diff: 22.22%)
|
Possible TODO/future improvement: Add columns hint/selectbox for 'COLUMNS Partitioning'. |
I think this is something what is out of scope for maintenance branch (4.6), please target such changes to master branch. |
Are you speaking about whole PR or about 'hint/selectbox'? If about whole PR, when what do you think about this part:
? |
As for me, I have put this to our production server. |
b1336dc
to
f8fb703
Compare
<?= htmlspecialchars($partition['name']); ?> | ||
</th> | ||
<td rowspan="<?= $rowspan; ?>"> | ||
<input type="text" name="<?= $partition['prefix']; ?>[name]" |
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.
htmlspecialchars probably missing here.
I don't think this qualifies as bug fix, which is only thing which should be going into 4.6 branches. |
How I found this issue: We have some table with partitions named 'year_2015', 'year_2016', 'year_max' and so on. After editing partitions all these names which are referenced in queries was lost. Is this not a bug? |
You are likely to be right. I will continue the work on this patch on this week. Thanks for code review. |
With @rpv-tomsk's explanation, I tend to think this qualifies as a bug fix. |
4ed1d53
to
4f7b205
Compare
As per While digging, found missing htmlspecialchars() on Also, please look into templates/columns_definitions/partitions.phtml:111, there is unescaped
I'm unsure if this variable requires htmlspecialchars(). |
…ioning' support. + Add 'COLUMNS Partitioning' support + Allow to edit partition names * Do not show duplicate partition names in 'Partition maintenance' snippet on 'Operations' tab. Caused by subpartitions presence. * Optimize Partition::getPartitionMethod() - need only one row, so use 'LIMIT 1' in query to avoid much data transfer from database. * Change HTML-code of partition comment textarea to avoid extra spaces added to value. * Added missing htmlspecialchars() on subpartitions comment. Signed-off-by: Pavel Rochnyack <pavel2000@ngs.ru>
4f7b205
to
5a5ae58
Compare
Okay, merged now. Thanks! |
Impove partitioning support Signed-off-by: Michal Čihař <michal@cihar.com>
Fixed issues:
Optimization: