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

use listdatabases for sqlondemand #10398

Merged
merged 3 commits into from
May 14, 2020
Merged

Conversation

alanrenmsft
Copy link
Contributor

fix for #10397

root cause: SQL on demand servers do not have the views that we need to get the database size and the request will fail

fix: ideally the fix should be made in SQL tools service, i just checked that the STS version in master branch is already higher than the one in release 1.18 branch, to reduce the risk, i am implementing the changes in ADS as a workaround for now and will make proper fix in STS and remove this workaround.

connection service's listdatabases() and the method we use to get databases in this widget are both calling the same request with different parameters, so for now i am using the listdatabases which will only return the database names for sql on demand edition.

Screen Shot 2020-05-14 at 11 32 25 AM

@coveralls
Copy link

coveralls commented May 14, 2020

Coverage Status

Coverage increased (+0.04%) to 33.84% when pulling f0bb9f7 on alanren/fix-sql-on-demand into d3e1675 on master.

@alanrenmsft alanrenmsft merged commit f934dea into master May 14, 2020
@alanrenmsft alanrenmsft deleted the alanren/fix-sql-on-demand branch May 14, 2020 21:25
alanrenmsft added a commit that referenced this pull request May 14, 2020
* use listdatabases for sqlondemand

* comments

* use enum
udeeshagautam pushed a commit that referenced this pull request May 14, 2020
* use listdatabases for sqlondemand

* comments

* use enum
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.

5 participants