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

Modular code for table structure and table related files #14564

Merged

Conversation

Piyush3079
Copy link
Contributor

This pr contains the modular code for table-related files.

This pr is in continuation with the pr Mod_Js_Db_Structure. Before reviewing this pr, review and merge Mod_Js_Db_Structure and then start reviewing this.

Before submitting pull request, please check that every commit:

  • Has proper Signed-Off-By
  • Has commit message which describes it
  • Is needed on it's own, if you have just minor fixes to previous commits, you can squash them
  • Any new functionality is covered by tests

@phpmyadmin-bot
Copy link
Contributor

This pull requests contains too many commits, in most cases it is caused by wrong merge target. In case you have forked master branch you should also ask merging to master branch. See GitHub documentation for more details.

@Piyush3079 Piyush3079 force-pushed the Mod_Js_Tbl_Structure branch 2 times, most recently from 91a5fd2 to d657991 Compare August 15, 2018 04:34
@phpmyadmin-bot
Copy link
Contributor

This pull requests contains too many commits, in most cases it is caused by wrong merge target. In case you have forked master branch you should also ask merging to master branch. See GitHub documentation for more details.

@Piyush3079 Piyush3079 force-pushed the Mod_Js_Tbl_Structure branch 2 times, most recently from 91a5fd2 to 7daada9 Compare August 17, 2018 08:50
@phpmyadmin-bot
Copy link
Contributor

This pull requests contains too many commits, in most cases it is caused by wrong merge target. In case you have forked master branch you should also ask merging to master branch. See GitHub documentation for more details.

@codecov
Copy link

codecov bot commented Aug 17, 2018

Codecov Report

Merging #14564 into gsoc-js-refactoring will increase coverage by 0.01%.
The diff coverage is 10.52%.

@@                    Coverage Diff                    @@
##             gsoc-js-refactoring   #14564      +/-   ##
=========================================================
+ Coverage                  50.57%   50.58%   +0.01%     
  Complexity                 14442    14442              
=========================================================
  Files                        501      501              
  Lines                      67999    67983      -16     
=========================================================
  Hits                       34388    34388              
+ Misses                     33611    33595      -16

@Piyush3079 Piyush3079 force-pushed the Mod_Js_Tbl_Structure branch 2 times, most recently from 91a5fd2 to 7daada9 Compare August 17, 2018 08:53
@phpmyadmin-bot
Copy link
Contributor

This pull requests contains too many commits, in most cases it is caused by wrong merge target. In case you have forked master branch you should also ask merging to master branch. See GitHub documentation for more details.

@Piyush3079 Piyush3079 changed the base branch from master to gsoc-js-refactoring August 17, 2018 08:54
@devenbansod
Copy link
Member

@Piyush3079 please rebase

…nd PMA_initSlider in Slider.js.

Signed-Off-By: Piyush Vijay <piyushvijay.1997@gmail.com>
@Piyush3079 Piyush3079 force-pushed the Mod_Js_Tbl_Structure branch 2 times, most recently from 0a43e91 to 0ce9714 Compare August 19, 2018 08:13
Signed-Off-By: Piyush Vijay <piyushvijay.1997@gmail.com>
…port.

Signed-Off-By: Piyush Vijay <piyushvijay.1997@gmail.com>
Signed-Off-By: Piyush Vijay <piyushvijay.1997@gmail.com>
…namic imports.

Signed-Off-By: Piyush Vijay <piyushvijay.1997@gmail.com>
Signed-Off-By: Piyush Vijay <piyushvijay.1997@gmail.com>
…loading.

Signed-Off-By: Piyush Vijay <piyushvijay.1997@gmail.com>
Signed-Off-By: Piyush Vijay <piyushvijay.1997@gmail.com>
…ot deened to be loaded in head of page.

Signed-Off-By: Piyush Vijay <piyushvijay.1997@gmail.com>
Signed-Off-By: Piyush Vijay <piyushvijay.1997@gmail.com>
…port.

Signed-Off-By: Piyush Vijay <piyushvijay.1997@gmail.com>
Signed-Off-By: Piyush Vijay <piyushvijay.1997@gmail.com>
Signed-Off-By: Piyush Vijay <piyushvijay.1997@gmail.com>
Signed-Off-By: Piyush Vijay <piyushvijay.1997@gmail.com>
Signed-Off-By: Piyush Vijay <piyushvijay.1997@gmail.com>
Signed-Off-By: Piyush Vijay <piyushvijay.1997@gmail.com>
@Piyush3079 Piyush3079 changed the title Mod js tbl structure Modular code for table structure and table related files Aug 19, 2018
Copy link
Member

@devenbansod devenbansod left a comment

Choose a reason for hiding this comment

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

Tested locally. LGTM.

A few minor comments.

js/functions.js Outdated
});
}
}
// /*
Copy link
Member

Choose a reason for hiding this comment

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

/minor remove if not needed?

js/functions.js Outdated
}
});
// /**
// * Unbind all event handlers before tearing down a page
Copy link
Member

Choose a reason for hiding this comment

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

same as above

@@ -772,6 +772,40 @@ export let AJAX = {
$(document).on('click', 'a', AJAX.requestHandler);
$(document).on('submit', 'form', AJAX.requestHandler);

/**
* @todo this is to be removed when complete code is modularised * Gracefully handle fatal server errors
Copy link
Member

Choose a reason for hiding this comment

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

👍

@@ -244,16 +243,15 @@ public function indexAction()
->getScripts()
->addFiles(
[
'makegrid.js',
'sql.js',
'sql',
'vendor/jqplot/jquery.jqplot.js',
Copy link
Member

Choose a reason for hiding this comment

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

Are these still needed to be added explicitly?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yeah they were sending the scripts list in ajax response but scripts were loaded by dynamic imports only.

@Piyush3079 Piyush3079 force-pushed the Mod_Js_Tbl_Structure branch 2 times, most recently from 37ac9a3 to 5f4db91 Compare August 19, 2018 09:59
Signed-Off-By: Piyush Vijay <piyushvijay.1997@gmail.com>
@devenbansod devenbansod merged commit d031dec into phpmyadmin:gsoc-js-refactoring Aug 19, 2018
@Piyush3079 Piyush3079 deleted the Mod_Js_Tbl_Structure branch August 28, 2018 11:17
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

3 participants