Commit Graph

654 Commits

Author SHA1 Message Date
dependabot[bot]
5f7a1829a4 Bump semver from 7.3.5 to 7.5.2 in /extensions/sql-database-projects (#23465)
Bumps [semver](https://github.com/npm/node-semver) from 7.3.5 to 7.5.2.
- [Release notes](https://github.com/npm/node-semver/releases)
- [Changelog](https://github.com/npm/node-semver/blob/main/CHANGELOG.md)
- [Commits](https://github.com/npm/node-semver/compare/v7.3.5...v7.5.2)

---
updated-dependencies:
- dependency-name: semver
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-06-26 10:53:11 -10:00
Charles Gagnon
cdece24123 Enable no-unsafe-assignments for MSSQL (#23407)
* Enable no-unsafe-assignments for MSSQL

* Remove toString
2023-06-18 10:01:41 -07:00
Kim Santiago
42a0622d93 Add vscode support for System database package references for SDK-style sql projects (#23383)
* changes for supporting system db package references in vscode

* cleanup

* address comments
2023-06-14 16:30:03 -07:00
Kim Santiago
1ff0a07217 Add support for System database package references for SDK-style sql projects (#23309)
* add package reference type for system db references

* Add radio buttons

* hookup

* add test

* handle changing reference type radio buttons

* cleanup

* update strings

* change style to type

* change more places with style to type

* blank lines
2023-06-13 16:06:12 -07:00
Kim Santiago
9c72e562cd Change ReferenceType to ReferencedDatabaseType (#23347)
* change ReferenceType to ReferencedDatabaseType

* update string
2023-06-07 14:32:27 -10:00
Benjin Dubishar
bfbc7bb9dc Fixing and enabling some Projects tests (#23261)
* unskipping tests

* timeout

* bumping STS

* adding in exclude nested projectEntry test

* cleanup
2023-06-05 14:18:46 -07:00
Benjin Dubishar
4eac26de15 making conditions for "delete" exact match for database references (#23317) 2023-06-05 11:18:14 -07:00
Charles Gagnon
50e08e11df Add back common extension linting rules (#23271)
* Add back common extension linting rules

* Fix lint issues
2023-05-31 14:31:00 -07:00
Kim Santiago
82f5ef7ea3 Download ScriptDom separately when building legacy sql projects (#23201)
* update sql projects build code to retrieve script dom nuget separately from dacfx nuget

* update readme

* cleanup shared code

* update scriptdom nuget version

* refactor
2023-05-26 16:51:42 -07:00
Kim Santiago
5560b52df1 Allow adding new sqlcmd variables to sql project without DefaultValue (#23229) 2023-05-26 11:01:20 -07:00
Sakshi Sharma
6f5741a162 Update product pipelines to add back tests (#23203)
* Update product pipelines to add back core integration tests to Darwin and extension unit tests to Linux

* Update whitespace

* Update indentation

* Skip failing tests for now
2023-05-24 15:43:00 -07:00
Kim Santiago
9f3ce333af fix sql project move folder tests (#23191) 2023-05-24 10:01:25 -07:00
Sakshi Sharma
a82519ca0f Fix a failing test in publishDatabaseDialog (#23190) 2023-05-23 15:55:17 -07:00
Benjin Dubishar
676f419ddd Adding option to open referenced project from SQL Project reference item (#23178)
* Adding hook to open a referenced SQL project

* cleanup

* adding docstring
2023-05-22 17:51:23 -07:00
Sakshi Sharma
dca1a467f3 Populate Project in Update project from db UI (#23169)
* Populate Project in Update Project from db UI

* Add tests

* Fix test

* Address comment
2023-05-22 15:23:04 -07:00
Benjin Dubishar
4c579ca12b Validating connectionProfile for missing server before attempting to connect (#23159)
* Validating connectionProfile for missing server before attempting to connect

* rewriting the logic to be more clear

* adding error log
2023-05-18 15:23:31 -07:00
Benjin Dubishar
1efe948abe Finding index is correct array (#23162) 2023-05-18 10:30:58 -07:00
Sakshi Sharma
244d56eb12 Add option to save Publish profile in VScode (#23067)
* Publish profile save changes for VSCode

* Fix publish settings

* Fix publish settings

* Address comments

* Address comments

* Address comments

* Address comment
2023-05-16 10:47:58 -07:00
Sakshi Sharma
b260edcec3 Add ability to create publish profile from project context (#23110)
* Ability to add publish profile from project context

* Add/update test + fix Build vs None addition to sqlproj file
2023-05-15 16:14:07 -07:00
Benjin Dubishar
9116f66ca4 Fixing issue where sqlcmdvars wouldn't load from publish profile in ADS (#23116)
* fixing issue where sqlcmdvars wouldn't load from publish profile in ADS

* in -> of
2023-05-11 22:03:41 -07:00
Kim Santiago
1d3b74e83b fix sqlcmd variables not getting loaded correctly in vscode (#23103) 2023-05-11 13:52:43 -07:00
Kim Santiago
9c22620032 vbump sql projects to 1.1.1 (#23029) 2023-05-08 10:49:53 -07:00
Benjin Dubishar
1620b3b374 Fixing deleteDatabaseReference test for vscode-mssql (#23008) 2023-05-07 13:08:04 -07:00
Sakshi Sharma
feed449d97 Update default folder structure option in VSCode (#23002) 2023-05-05 16:50:32 -07:00
Benjin Dubishar
127a2d2e2f Updating SqlProjects readme to have absolute github link for image (#23001) 2023-05-05 15:53:02 -07:00
Benjin Dubishar
8a56e0c0cd Bumping azdata dependency (#22961) 2023-05-04 11:33:43 -07:00
Kim Santiago
844ed758a5 Fix .publish.xml file extension not being used on mac (#22939) 2023-05-03 13:18:42 -07:00
Kim Santiago
8f37ea8746 fix macros not getting replaced in sql project item scripts (#22945) 2023-05-03 13:18:02 -07:00
Sakshi Sharma
55d652198c Fix schema comparison failure for Azure synapse (#22938) 2023-05-03 13:03:40 -07:00
Kim Santiago
ab44d205d0 add telemetry for saving publish profiles (#22933) 2023-05-02 16:09:18 -07:00
Kim Santiago
e57fc9f202 shorten 'Save Profile as...' button text to 'Save as...' (#22932)
* shorten 'Save Profile as...' button text to 'Save as...'

* uppercase
2023-05-02 15:37:16 -07:00
Benjin Dubishar
6b1dd0e468 Changing "files" to "sqlObjectScripts" to be more accurate (#22899)
* Changing "files" to "sqlObjectScripts" to be more accurate

* fixing func call
2023-05-01 08:31:13 -07:00
Benjin Dubishar
29ff6ca16c Adding Move, Exclude, and Rename support for folders (#22867)
* Adding exclude folder and base for move folder

* checkpoint

* rename

* Fixing up tests

* Adding exclude test to projController

* Adding tests

* fixing order of service.moveX() calls

* Updating move() order in sqlproj service

* PR feedback

* unskipping

* reskipping test

* Fixing folder move conditional

* updating comments
2023-04-28 16:05:38 -07:00
Kim Santiago
934d8ff8fa Add nupkg database reference option for sql projects in vscode (#22882)
* add nupkg db ref option in vscode

* add telemetry for nupkg db ref

* update comment
2023-04-28 14:57:22 -07:00
Kim Santiago
ba09248483 fix build errors from sql projects test file (#22894) 2023-04-28 11:57:54 -07:00
Sakshi Sharma
757067b132 Required changes to make sql projects extension work with vscode (#22847)
* Update CreateProject api

* More updates

* Fix a few comments

* Address comments

* Remove package.json changes

* Fix error

* Fix testUtil
2023-04-28 10:27:59 -07:00
Benjin Dubishar
62255fe4dd no longer filtering to well-known database sources (#22864) 2023-04-26 13:31:15 -07:00
Kim Santiago
d551f5170d add telemetry for add database reference quickpick (#22848) 2023-04-25 13:52:48 -07:00
Kim Santiago
8616c5948b Update vscode-mssql.d.ts to match what's in the vscode-mssql repo (#22830)
* update vscode-mssql.d.ts

* update extensions that need updates because of the vscode-mssql.d.ts changes

* remove skip

* fix sql projects tests failing because vscode-mssql couldn't be found
2023-04-24 13:40:05 -07:00
Kim Santiago
b98ac1d211 change value to default value in sqlcmd variable prompt (#22787) 2023-04-20 10:18:48 -07:00
Kim Santiago
39a28c5f51 Add nupkg option to add database reference dialog (#22772)
* add nupkg option to add database reference dialog

* Add required indicator

* only show nupkg radio button for SDK-style projects

* fix enable ok button

* hookup

* fix typo
2023-04-19 10:09:15 -07:00
Kim Santiago
c29bb27d9e fix sqlcmd table var table in publish dialog (#22770)
* fix sqlcmd var table in publish dialog

* const

* remove unused _value
2023-04-19 09:17:34 -07:00
Kim Santiago
4709eab293 make UserDatabaseReferenceProjectEntry class (#22768) 2023-04-18 13:23:09 -07:00
Kim Santiago
2dcbdc9c63 Handle nukpg database references in project.ts (#22762)
* changes in project.ts for adding nupkg database references

* Add tests

* more tests

* fix comment

* remove it.only
2023-04-18 11:11:42 -07:00
Benjin Dubishar
02e61d1598 Swapping Record usage to Map in SQL Projects (#22758)
* Changing SqlCmdVars from Record to Map

* Converting the rest

* Updating tests

* more cleanup

* Updating test to use new test creation API
2023-04-17 12:56:39 -07:00
Sakshi Sharma
d69e5b97df Update SC dialog to save/read file structure to/from schema compare file (#22727)
* Read/Send ExtractTarget information from/to STS

* Remove comment

* Cleanup comment and update azdata dependency
2023-04-14 11:47:59 -07:00
Kim Santiago
18a541b0a6 removed unused data sources code from publish dialog (#22722) 2023-04-14 11:44:46 -07:00
Sakshi Sharma
91ea2b43d6 Save publish profile in Publish UI workflow (#22700)
* Add profile section in Publish project UI

* Move publish profile row below Publish Target

* Add contract for savePublishProfie and SaveProfileAs button functionality

* Make the DacFx contract functional

* Send values from UI to DacFx service call

* Fix build error

* Address comment, remove print statements

* Address comments

* Set correct connection string

* Fix functionality for rename, exclude, delete publish profiles. Add new profile to the tree and sqlproj.

* Address comment to update alignement of button

* Address comments

* Update button to use title casing
2023-04-13 17:08:24 -07:00
Kim Santiago
3deb163210 replace deprecated onDidClick() handler in sql projects (#22721) 2023-04-13 16:27:59 -07:00
Kim Santiago
c78cc6e534 vbump sql database projects to 1.1.0 (#22707)
vbump after the April release
2023-04-12 20:27:23 -07:00