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

Make new native queries default to using the last-selected database #8780

Closed
mazameli opened this issue Oct 25, 2018 · 4 comments · Fixed by #38986
Closed

Make new native queries default to using the last-selected database #8780

mazameli opened this issue Oct 25, 2018 · 4 comments · Fixed by #38986
Assignees
Milestone

Comments

@mazameli
Copy link
Contributor

mazameli commented Oct 25, 2018

Opening this on behalf of a user who proposed this. I think the behavior would simply be that when you click on new question -> native/sql, that it would default to whichever database you last selected in that database dropdown. This would remove a click if you tend to query the same database most of the time.

⬇️ Please click the 👍 reaction instead of leaving a +1 or update? comment

@mazameli mazameli added Type:UX Proposal Querying/Native The SQL/native query editor labels Oct 25, 2018
@tlrobinson
Copy link
Contributor

It would probably easiest to just use the browser's localStorage for things like this, unless we want to add some sort of user preferences JSON object that gets persisted on the users table. The only downside of localStorage is it wouldn't persist for the user across multiple browsers/devices, but that seems like a pretty minor inconvenience.

@mazameli
Copy link
Contributor Author

I totally agree. I think this is mostly about reducing friction within the context of a browser session.

@kdoh
Copy link
Member

kdoh commented Oct 25, 2018

If we're trying to reduce friction we could also just add a user setting for "Default ask a question to SQL" so if you hit the new question button you go right to the sql editor. I'd imagine if you're writing a lot of SQL both the "SQL" choice and which DB selection are both frequent friction points.

@cshort-easyagile

This comment has been minimized.

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

Successfully merging a pull request may close this issue.

6 participants