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

Extract HTML from view_operations.php to a Twig template #14836

Conversation

thicolares
Copy link
Contributor

@thicolares thicolares commented Jan 9, 2019

Description

  • Extract HTML from view_operations.php to a Twig template
  • Performed some local smoke tests
    • Rename a view
    • Delete a view

Related to #14801

Before submitting pull request, please review the following checklist:

  • Make sure you have read our CONTRIBUTING.md document.
  • Make sure you are making a pull request against the correct branch. For example, for bug fixes in a released version use the corresponding QA branch and for new features use the master branch. If you have a doubt, you can ask as a comment in the bug report or on the mailing list.
  • Every commit has proper Signed-off-by line as described in our DCO. This ensures that the work you're submitting is your own creation.
  • Every commit has a descriptive commit message.
  • Every commit is needed on its own, if you have just minor fixes to previous commits, you can squash them.
  • Any new functionality is covered by tests.

@thicolares
Copy link
Contributor Author

thicolares commented Jan 9, 2019

The Travis CI build failed. I'm going to check this out in a few minutes

Signed-off-by: Thiago Colares <thicolares@gmail.com>

Signed-off-by: Thiago Colares <thicolares@gmail.com>
@thicolares thicolares force-pushed the extract-html-in-view-operations-to-twig branch from 1808108 to 742f87e Compare January 9, 2019 00:53
Copy link
Member

@williamdes williamdes left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Thank you @thicolares

Copy link
Member

@MauricioFauth MauricioFauth left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi, @thicolares. Thanks for your contribution.

Could you rename the template to templates/table/operations/view.twig?

templates/view_operations.twig Outdated Show resolved Hide resolved
templates/view_operations.twig Outdated Show resolved Hide resolved
templates/view_operations.twig Outdated Show resolved Hide resolved
view_operations.php Outdated Show resolved Hide resolved
Signed-off-by: Thiago Colares <thicolares@gmail.com>
Signed-off-by: Thiago Colares <thicolares@gmail.com>
Signed-off-by: Thiago Colares <thicolares@gmail.com>
Signed-off-by: Thiago Colares <thicolares@gmail.com>
Signed-off-by: Thiago Colares <thicolares@gmail.com>
…thicolares/phpmyadmin into extract-html-in-view-operations-to-twig

Signed-off-by: Thiago Colares <thicolares@gmail.com>
@thicolares thicolares force-pushed the extract-html-in-view-operations-to-twig branch from 213e826 to dbd674b Compare January 11, 2019 00:01
@codecov
Copy link

codecov bot commented Jan 11, 2019

Codecov Report

Merging #14836 into master will increase coverage by 0.01%.
The diff coverage is 0%.

@@             Coverage Diff              @@
##             master   #14836      +/-   ##
============================================
+ Coverage     50.87%   50.89%   +0.01%     
  Complexity    14033    14033              
============================================
  Files           473      473              
  Lines         65898    65877      -21     
============================================
  Hits          33525    33525              
+ Misses        32373    32352      -21

1 similar comment
@codecov
Copy link

codecov bot commented Jan 11, 2019

Codecov Report

Merging #14836 into master will increase coverage by 0.01%.
The diff coverage is 0%.

@@             Coverage Diff              @@
##             master   #14836      +/-   ##
============================================
+ Coverage     50.87%   50.89%   +0.01%     
  Complexity    14033    14033              
============================================
  Files           473      473              
  Lines         65898    65877      -21     
============================================
  Hits          33525    33525              
+ Misses        32373    32352      -21

@MauricioFauth MauricioFauth merged commit 377ce92 into phpmyadmin:master Jan 11, 2019
@MauricioFauth MauricioFauth self-assigned this Jan 11, 2019
@MauricioFauth MauricioFauth added this to the 5.0.0 milestone Jan 11, 2019
@MauricioFauth
Copy link
Member

Merged, thanks for your contribution!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants