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 Modular code for sql query box (page) and codemirror related pages #14493

Merged
merged 16 commits into from
Aug 14, 2018

Conversation

Piyush3079
Copy link
Contributor

@Piyush3079 Piyush3079 commented Jul 20, 2018

This pr contains the files needed for modular code for making sql queries.

This pr is in continuation of the pr Mod_Js_Structuring_1. Before reviewing this pr review and merge Mod_Js_Structuring_1

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.

1 similar comment
@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.

@devenbansod devenbansod changed the base branch from master to gsoc-js-refactoring August 1, 2018 11:31
@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.

@devenbansod devenbansod self-requested a review August 7, 2018 00:41
@devenbansod devenbansod self-assigned this Aug 7, 2018
@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.

1 similar comment
@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.

@devenbansod
Copy link
Member

Please rebase

@Piyush3079
Copy link
Contributor Author

Piyush3079 commented Aug 7, 2018

This pr is not the next one, next pr is #14524, so we need to first complete this pr(#14524). Although I will rebase this also but we need to merge that first.

@devenbansod
Copy link
Member

Please rebase.

@Piyush3079 Piyush3079 force-pushed the Mod_Js_Sql_Js branch 10 times, most recently from 912910f to 7cc998d Compare August 10, 2018 08:04
1). Microhistory added in classes for modular code
2). Code is structured and camel casing of varables is done for removing linter warnings.
3). JQuery plugins are added in some files.
4). jQplot is working for server_status_queries and server_status_monitor.
5). Work started for Dabatase, SQl and Table files.
Some changes are stll left for server_status_monitor and sql.js
Signed-Off-By: Piyush Vijay <piyushvijay.1997@gmail.com>
…nd script for creating production build edited

Signed-Off-By: Piyush Vijay <piyushvijay.1997@gmail.com>
…n js files and removed from php files.

Signed-Off-By: Piyush Vijay <piyushvijay.1997@gmail.com>
… old vendor and plugins folder. These files can be ignored during review.

They are not availabe as npm mpdule right now and their alternative are largerr in size with the same functionality.
So they are being used as it is.
Their size will be reduced in the outpul bundle after using webpack plugins to emove comments from js files.
Signed-Off-By: Piyush Vijay <piyushvijay.1997@gmail.com>
…ine codemirror, saving and getting saved queries and making profiling charts.

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>
…p of the scripts.

Imports changes as per new directory stucture for sql.
Signed-Off-By: Piyush Vijay <piyushvijay.1997@gmail.com>
…or various sql related events, adding function for sql editor and inline sql editor in functions.js

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

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

Signed-Off-By: Piyush Vijay <piyushvijay.1997@gmail.com>
@Piyush3079 Piyush3079 force-pushed the Mod_Js_Sql_Js branch 5 times, most recently from 57d7f2f to 3b11fca Compare August 11, 2018 08:39
@codecov
Copy link

codecov bot commented Aug 11, 2018

Codecov Report

Merging #14493 into gsoc-js-refactoring will increase coverage by 0.03%.
The diff coverage is 68.96%.

@@                    Coverage Diff                    @@
##             gsoc-js-refactoring   #14493      +/-   ##
=========================================================
+ Coverage                  50.53%   50.56%   +0.03%     
- Complexity                 14434    14439       +5     
=========================================================
  Files                        501      501              
  Lines                      68012    68002      -10     
=========================================================
+ Hits                       34372    34388      +16     
+ Misses                     33640    33614      -26

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.

LGTM, just a few minor comments.

Great job on this, I acknowledge these files were indeed tricky to manage given their dependencies strewn throughout.

db_search.php Outdated
$scripts->addFile('sql.js');
$scripts->addFile('makegrid.js');
// $scripts->addFile('makegrid.js');
Copy link
Member

Choose a reason for hiding this comment

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

Please remove if not needed

js/functions.js Outdated
if (codemirror_editor) {
$(codemirror_editor.getWrapperElement()).off('keydown');
}
// $(document).off('click', 'a.inline_edit_sql');
Copy link
Member

Choose a reason for hiding this comment

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

Please remove if not needed

@@ -24,7 +25,7 @@
"js-cookie": "2.2.0",
"sprintf-js": "^1.1.1",
"tracekit": "0.4.5",
"updated-jqplot": "1.0.9",
"updated-jqplot": "1.0.9-2",
Copy link
Member

Choose a reason for hiding this comment

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

Is such a specific version required?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

The previous version was not working with webpack. It was giving some errors related to global scoping. so I have added this updated package.

server_sql.php Outdated
$scripts->addFile('makegrid.js');
$scripts->addFile('vendor/jquery/jquery.uitablefilter.js');
$scripts->addFile('sql.js');
// $scripts->addFile('makegrid.js');
Copy link
Member

Choose a reason for hiding this comment

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

Remove if not required

…oading from js/functions.js

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 sql js Add Modular code for sql query box (page) and codemirror related pages Aug 14, 2018
@devenbansod devenbansod merged commit fc72f0d into phpmyadmin:gsoc-js-refactoring Aug 14, 2018
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