-
Notifications
You must be signed in to change notification settings - Fork 849
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
[NETBEANS-189] Updates for Sql autocomplete and [NETBEANS-5831] Create a SQL Standard Quoter for Use with Connectionless Cases #3074
[NETBEANS-189] Updates for Sql autocomplete and [NETBEANS-5831] Create a SQL Standard Quoter for Use with Connectionless Cases #3074
Conversation
ide/db.sql.editor/src/org/netbeans/modules/db/sql/editor/completion/SQLCompletionProvider.java
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please have a look here:
https://github.com/matthiasblaesing/netbeans/tree/pr-3074
I added a second changeset (matthiasblaesing@c517348) on top of yours (matthiasblaesing@5288810).
I still have doubts, that there is enough benefit for the work, but I think it should work.
String message = NbBundle.getMessage(SQLCompletionProvider.class, "MSG_NotConnected"); | ||
StatusDisplayer.getDefault().setStatusText(message); | ||
return 0; | ||
} | ||
SQLExecutionBaseAction.notifyNoDatabaseConnection(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This (and the change in line 88) causes excessive dialogs to popup. In the case of line 92, you even get two dialogs (one telling you there is no connection and the second querying the user credentials).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've not seen the excessive dialogs mentioned but I will look again and try out what is proposed.
In your updates, I noticed the addition of a FallbackQuoter in the SQLIdentifiers.java. This may solve the intent of the child ticket "NETBEANS-5831 Create a SQL Standard Quoter for Use with Connectionless Cases" raised during initial development. Would it be worth linking that up with that or referencing it as well (kill two birds with one stone)? Or maybe NETBEANS-5831 should be rejected and just link the changes back to the original NETBANS-189 ticket. |
Probably need some git/github help regarding integration of @matthiasblaesing suggested changes mentioned here:
I pulled the above code locally (merged/addressed conflicts) and seems to work well locally so far, but what is the proper way to merge/commit/push these in? In previous attempts when I've attempted this some differences/newer upstream changes showed unnecessary (upstream) changes in the PR (i.e. this is why my earlier PR was closed with this "clean PR" instead). I'm trying to avoid this here. Is it possible in github to "merge matthias" pr into this PR in some way? Is a new PR with all the changes needed? Or should I merge in the upstream changes (maybe with a rebase), then bring in changes from matthias PR and commit them (to my local branch) then push to my sql branch which assume will update this pr? Or wIll this result in some unrelevant (i.e. upstream changes) being included in the PR as well (hoping the rebase may reduce this but not sure)? If I merge them in, does that then credit me as the changes in the history? What is the correct way to merge these and ensure proper credit (i.e. Mattias changes) get recorded in the history? |
If you look at the branch I referenced I have squashed your two commits into one (matthiasblaesing@5288810). In that commit you see, that you are referenced as the author and I'm referenced as the committer, which is correct for this case. To get this PR onto the current master state, this is what I would do:
That will result in this (adapt the names for you):
# Checkout the base commit of my branch (this is where my branch an master diverge)
git checkout -b blaesing-sql_autocomplete_clean f6634f96135ccd5aeae12c68e3f17d4bba268419
# Pull the commits from my branch into the freshly created branch
git pull https://github.com/matthiasblaesing/netbeans.git pr-3074
At this point the changes from this PR are on on top of the current state of master and squashed into a single commit.
Now check the result for example using Now you need to do a forced push to update this PR:
|
…without DMD and reduce dialogs
494c327
to
0bcef3f
Compare
Due to other DB changes, the minor version was changed to 84 |
Merged and build successful. Unless otherwise indicated, ready for inclusion. |
Thank you for the rebase. Looks clean and sane to me. Lets get this in. |
This allows autocompletion to be possible when no connection is yet established.
This is a clean PR based on #2820