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
Use a full list of functions on insert/edit page "Function" select #13557
Comments
|
The functions are grouped by types, first list showing functions which apply to current type. |
|
We can improve this by adding additional group labels to the list, that should make it clear why the list is split. |
|
Optgroup labels like "Suggested" and "All" or something similar. |
|
The trouble with split lists is that one has to figure out in what list a function is. |
|
Indeed, but my solution to that would be to put all functions below the separation, so some are in the list twice (once as a suggested function and again further below) |
|
Then you're in the same situation as I'm now: we've got U, we've got V, but no unix_timestamp.. and then: oh, wait, it's in the second part of the list. |
|
That's true. On the other side, it probably doesn't make sense to show functions returning string when working with numeric fields. The current solution was chosen probably to allow using functions even in case the categorization would be bad. So are there any particular functions you were missing in the first list for some fields? |
|
I think it was unix_timestamp(), it's not in the screenshot but it's in the list now. |
|
@williamdes I would like to work on this. |
|
I am not sure about what to do :) |
|
@williamdes ping. |
|
phpmyadmin/libraries/classes/Util.php Lines 3921 to 3935 in 6729c89
The criteria is to list functions for the column type Maybe we can add a configuration option, or remove the first group of entries |
|
@williamdes I've already made the changes. I'll open up a PR? |
|
@williamdes I found another set of code here as well. phpmyadmin/libraries/classes/Html/Generator.php Lines 550 to 568 in f4c7796
|
|
Waiting for approvers on #15935 |
Signed-off-by: William Desportes <williamdes@wdes.fr>
Signed-off-by: Maximilian Krög <maxi_kroeg@web.de>
The list appears to be split into two, not sure on what criteria..
I think it'd be easier if it was a single list.
The text was updated successfully, but these errors were encountered: