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

View overview: add an Edit link for each view #14926

Closed
ibennetch opened this issue Feb 1, 2019 · 9 comments
Closed

View overview: add an Edit link for each view #14926

ibennetch opened this issue Feb 1, 2019 · 9 comments
Assignees
Labels
has-pr An issue that has a pull request pending that may fix this issue. The pull request may be incomplete ui Issues relating to the user interface
Milestone

Comments

@ibennetch
Copy link
Member

Is your feature request related to a problem? Please describe.

The list of views should show an edit link for each view. From the navigation pane, there's a "Views" text which can be clicked on to show all the views in the database. There's a list of tabs, "Browse," "Structure," etc — I propose adding an "Edit" link here.

I don't think we can add "Edit" to the dropdown list for working with multiple views, because it wouldn't make sense to edit more than one at once.

  • phpMyAdmin version:

QA_4_8

image

@ibennetch ibennetch added the ui Issues relating to the user interface label Feb 1, 2019
@bahl24
Copy link
Contributor

bahl24 commented Feb 1, 2019

@ibennetch Can I take up this issue?
Also, I think we should create a new php file edit_create.php as the current file calls view_create.php?
We can auto fill the form in edit_view.php.

@bahl24
Copy link
Contributor

bahl24 commented Feb 3, 2019

@ibennetch @williamdes Should I create new view_edit file or try to autofill existing view_create file?

@ibennetch
Copy link
Member Author

ibennetch commented Feb 3, 2019 via email

@bahl24
Copy link
Contributor

bahl24 commented Feb 3, 2019

ok @ibennetch , I will modify the existing file itself

bahl24 referenced this issue in bahl24/phpmyadmin Feb 4, 2019
@bahl24
Copy link
Contributor

bahl24 commented Feb 4, 2019

@ibennetch @williamdes How can I set a global variable such as $_POST['alterview']

@bahl24
Copy link
Contributor

bahl24 commented Feb 5, 2019

@ibennetch @williamdes If we go to structure tab in a view, then click on edit view, what we get is a form to create view and not edit the view. You can test it by trying to modify the view by putting VIEW name as the view which you previously selected and change AS fields.
This will throw the error saying that view already exists.
Thus currently there is no way to edit a view once created either from Structure tab or this enhancement issue.
We might need to create a new file for editing views. What do you think?
screenshot from 2019-02-05 11-22-14
screenshot from 2019-02-05 11-23-19

@ibennetch
Copy link
Member Author

You’re seeing this bug: bug #14916 (comment)

@bahl24
Copy link
Contributor

bahl24 commented Feb 5, 2019

@ibennetch So maybe I should make a pr for the bug fix currently to branch QA. And work on the feature request (creating new file for editing views) off the master branch. The pr for #14916 is mine only and I encountered the error you are mentioning.

bahl24 referenced this issue in bahl24/phpmyadmin Feb 8, 2019
bahl24 referenced this issue in bahl24/phpmyadmin Feb 8, 2019
@williamdes williamdes added the has-pr An issue that has a pull request pending that may fix this issue. The pull request may be incomplete label Feb 8, 2019
bahl24 added a commit to bahl24/phpmyadmin that referenced this issue Feb 8, 2019
Signed-off-by: Nitish Bahl <nitishbahl24@gmail.com>
bahl24 referenced this issue in bahl24/phpmyadmin Mar 25, 2019
@williamdes williamdes self-assigned this Mar 25, 2019
@williamdes williamdes modified the milestones: 4.8.6, 5.0.0 Mar 25, 2019
williamdes added a commit that referenced this issue Mar 25, 2019
Signed-off-by: William Desportes <williamdes@wdes.fr>
williamdes added a commit that referenced this issue Mar 25, 2019
Signed-off-by: William Desportes <williamdes@wdes.fr>
@williamdes
Copy link
Member

Fixed by a7ac037

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jun 21, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
has-pr An issue that has a pull request pending that may fix this issue. The pull request may be incomplete ui Issues relating to the user interface
Projects
None yet
Development

No branches or pull requests

3 participants