Skip to content
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

Add index has no Preview SQL #13519

Closed
OlafvdSpek opened this issue Jul 24, 2017 · 19 comments · Fixed by #15881
Closed

Add index has no Preview SQL #13519

OlafvdSpek opened this issue Jul 24, 2017 · 19 comments · Fixed by #15881
Assignees
Labels
enhancement A feature request for improving phpMyAdmin good first issue ui Issues relating to the user interface
Milestone

Comments

@OlafvdSpek
Copy link

The Add Index popup has no Preview SQL button.

@nijel nijel added the enhancement A feature request for improving phpMyAdmin label Aug 1, 2017
@KeerthanaRatna
Copy link
Contributor

Hi ,
There is a Preview SQL button in the Add Index popup when adding a index to a already existing column.
image
But there is no Preview SQL button when adding a index during table creation and column addition.

@aroralakshya
Copy link
Contributor

What is the need for a separate previewsql to view the index when there is one to view the whole query??

@williamdes williamdes added this to Triage zone in Enhancements Jan 23, 2020
@williamdes
Copy link
Member

@OlafvdSpek For me this is already implemented

@williamdes williamdes added question Used when we need feedback from the submitter or when the issue is a question about PMA undecided labels Jan 24, 2020
@williamdes williamdes moved this from Triage zone to Done in Enhancements Jan 24, 2020
@OlafvdSpek
Copy link
Author

pma

@williamdes
Copy link
Member

williamdes commented Jan 24, 2020

Okay, on a new table.
That was a missing detail !

@williamdes williamdes moved this from Done to Nice to have soon in Enhancements Jan 24, 2020
@williamdes williamdes added good first issue ui Issues relating to the user interface and removed question Used when we need feedback from the submitter or when the issue is a question about PMA undecided labels Jan 24, 2020
@OlafvdSpek
Copy link
Author

Was mentioned in #13519 (comment) two years ago.

@williamdes
Copy link
Member

Right, reading the message stops the eye to the picture.
I hope somebody will pick this one and solve it.

@thesmallstar
Copy link
Contributor

Can I work on this?

@williamdes
Copy link
Member

williamdes commented Jan 24, 2020

@thesmallstar yes, go ahead

please use master branch

@thesmallstar
Copy link
Contributor

@williamdes I tried searching for the solution, The previewSql is present(in code) but it doesn't appear in the frontend. Probably the innerHTML is being replaced. Can you help me with how to proceed?

@williamdes
Copy link
Member

@thesmallstar are you looking for Functions.highlightSql($('#page_content')); ?

@thesmallstar
Copy link
Contributor

no, I have found the line that is causing this problem.
line 409, indexes.js
// We dont need the slider at this moment. $(this).find('fieldset.tblFooters').remove();

If I remove this,
image
something like this would appear.

I could remove the duplicate Go button, and it looks like this.
image

I guess this was hidden since the dialogue box came with its own footer and go and cancel button, should I try to add previewSql button for this particular one?
I think it is hidden for some reason, but not sure why,

@williamdes
Copy link
Member

I could remove the duplicate Go button, and it looks like this.

Okay, I agree to remove it
If you search in the history I am quite sure to have merged a PR to remove duplicate Go buttons

I guess this was hidden since the dialogue box came with its own footer and go and cancel button, should I try to add previewSql button for this particular one?
I think it is hidden for some reason, but not sure why,

We can add it back and see what happens, anyways it is the development version :)

@OlafvdSpek
Copy link
Author

We can add it back and see what happens, anyways it is the development version :)

What is that supposed to mean? ;)

@williamdes
Copy link
Member

We can add it back and see what happens, anyways it is the development version :)

What is that supposed to mean? ;)

That we have a very long review time before a release is done
So if something is not perfect or has side effects a solution can be found ;)

@MauricioFauth
Copy link
Member

We can add it back and see what happens, anyways it is the development version :)

What is that supposed to mean? ;)

That we have a very long review time before a release is done
So if something is not perfect or has side effects a solution can be found ;)

Makes sense, however we should pay attention to this because it's very easy to something temporary become permanent.

@OlafvdSpek
Copy link
Author

IMO the goal should be for the main dev branch to be production quality / release ready at all times.
Ensure an update is correct before merging it, rather then fixing it after merging.

@williamdes
Copy link
Member

Makes sense, however we should pay attention to this because it's very easy to something temporary become permanent.

True

IMO the goal should be for the main dev branch to be production quality / release ready at all times.
Ensure an update is correct before merging it, rather then fixing it after merging.

I agree, I try to have everything right and clean before merging.
But I would needs more reviewers to be 100% sure nothing escaped my attention

@thesmallstar
Copy link
Contributor

Quite a few things to learn from this discussion :P
@williamdes I will proceed with the proposed solution.

@williamdes williamdes self-assigned this Mar 10, 2020
@williamdes williamdes added this to the 5.1.0 milestone Mar 10, 2020
williamdes added a commit that referenced this issue Mar 10, 2020
Pull-request: #15881
Fixes: #13519

Signed-off-by: William Desportes <williamdes@wdes.fr>
williamdes added a commit that referenced this issue Mar 10, 2020
Signed-off-by: William Desportes <williamdes@wdes.fr>
Enhancements automation moved this from Nice to have soon to Done Mar 10, 2020
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 11, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement A feature request for improving phpMyAdmin good first issue ui Issues relating to the user interface
Projects
Enhancements
  
Done
Development

Successfully merging a pull request may close this issue.

7 participants