Skip to content

Commit 378f53d

Browse files
Data-Tier Application Feature (#20332)
* proof of concept * small fix to enable button after success export * fix on select database by default * fix on connecting when lunching from database * small fixes in ui * making app and version optional * small text change * loc changes * Update src/reactviews/pages/DataTierApplication/dataTierApplicationForm.tsx Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> * Update src/controllers/dataTierApplicationWebviewController.ts Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> * fix on validation * fixing test failing in pipeline * small improvement in validation * clearing form after succesfully completing the operation * removing messages panel * removing message panel * changes on operation component * missing localization changes * localization after merge * refactor to move logic to controller * fix to clear databases when selected an non-active server * fixes in connection management * updates to localization * unit tests updates * adding telemetry and aria-label to form * updating test * adding extra tests * adding support to suggest names * database name suggestions * adding localization and spinner * style changes to match example from pr * fix on tests * small fixes * renaming the whole functionality to match the service (dacFx) instead of data-tier application * refactor from explicit importing to * per pr request * breaking the form into pieces per PR comment * refactor to simplify the registration calls using a shared method for the common logic * pr comment to combine imports * refactor to a base interface per pr comment * change to expect from assert * moving require to imports for homdir * localization for file dialog label * localization changes * format changes for timestamp in the filename * refactor for getting the name using just one function call as suggested in pr comment * moved the extensions to constants as requested in pr * simplyfing connection to server logic per PR comment * refactor on how to pull saved connections and connecting to allow getting dbs * removing tests not needed after refactoring * refactor method * moving styles to the bottom * changes to use common interface * removing unit tests per PR request * pr changes to have just one function for filename suggestion * rename to use a verb per PR comment * refactor to a shared function database validation * refactored common logic to a helper function per pr comment * changes to centralize the rpc * rename for the entire functionality * reverting lint exclude rule * rename telemetry to match functionality anme and deleting file not needed * rename to dacpac dialog * more renames * more renames * rename comment * adding missing renames * fixing methods passing around connections * removing code not needed * removing test not needed * refactor to use shared function --------- Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent 1a6ba03 commit 378f53d

29 files changed

+4922
-10
lines changed

localization/l10n/bundle.l10n.json

Lines changed: 62 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -799,6 +799,59 @@
799799
"Show Confirm Password": "Show Confirm Password",
800800
"Hide Confirm Password": "Hide Confirm Password",
801801
"Passwords do not match": "Passwords do not match",
802+
"Data-tier Application": "Data-tier Application",
803+
"Deploy, extract, import, or export data-tier applications on the selected database": "Deploy, extract, import, or export data-tier applications on the selected database",
804+
"Loading...": "Loading...",
805+
"Operation": "Operation",
806+
"Select an operation": "Select an operation",
807+
"Select a server": "Select a server",
808+
"No connections available. Please create a connection first.": "No connections available. Please create a connection first.",
809+
"Connecting to server...": "Connecting to server...",
810+
"Failed to connect to server": "Failed to connect to server",
811+
"Deploy DACPAC": "Deploy DACPAC",
812+
"Extract DACPAC": "Extract DACPAC",
813+
"Import BACPAC": "Import BACPAC",
814+
"Export BACPAC": "Export BACPAC",
815+
"Deploy a data-tier application .dacpac file to an instance of SQL Server": "Deploy a data-tier application .dacpac file to an instance of SQL Server",
816+
"Extract a data-tier application .dacpac from an instance of SQL Server to a .dacpac file": "Extract a data-tier application .dacpac from an instance of SQL Server to a .dacpac file",
817+
"Create a database from a .bacpac file": "Create a database from a .bacpac file",
818+
"Export the schema and data from a database to the logical .bacpac file format": "Export the schema and data from a database to the logical .bacpac file format",
819+
"Package file": "Package file",
820+
"Output file": "Output file",
821+
"Select package file": "Select package file",
822+
"Enter the path for the output file": "Enter the path for the output file",
823+
"Browse...": "Browse...",
824+
"Target Database": "Target Database",
825+
"Source Database": "Source Database",
826+
"Database Name": "Database Name",
827+
"New Database": "New Database",
828+
"Existing Database": "Existing Database",
829+
"Select a database": "Select a database",
830+
"Enter database name": "Enter database name",
831+
"Application Name": "Application Name",
832+
"Enter application name": "Enter application name",
833+
"Application Version": "Application Version",
834+
"Execute": "Execute",
835+
"File path is required": "File path is required",
836+
"Invalid file": "Invalid file",
837+
"Database name is required": "Database name is required",
838+
"Invalid database": "Invalid database",
839+
"Validation failed": "Validation failed",
840+
"Deploying DACPAC...": "Deploying DACPAC...",
841+
"Extracting DACPAC...": "Extracting DACPAC...",
842+
"Importing BACPAC...": "Importing BACPAC...",
843+
"Exporting BACPAC...": "Exporting BACPAC...",
844+
"Operation failed": "Operation failed",
845+
"An unexpected error occurred": "An unexpected error occurred",
846+
"Failed to load databases": "Failed to load databases",
847+
"DACPAC deployed successfully": "DACPAC deployed successfully",
848+
"DACPAC extracted successfully": "DACPAC extracted successfully",
849+
"BACPAC imported successfully": "BACPAC imported successfully",
850+
"BACPAC exported successfully": "BACPAC exported successfully",
851+
"Deploy to Existing Database": "Deploy to Existing Database",
852+
"You are about to deploy to an existing database. This operation will make permanent changes to the database schema and may result in data loss. Do you want to continue?": "You are about to deploy to an existing database. This operation will make permanent changes to the database schema and may result in data loss. Do you want to continue?",
853+
"Deploy": "Deploy",
854+
"A database with this name already exists on the server": "A database with this name already exists on the server",
802855
"Save Changes": "Save Changes",
803856
"Add Row": "Add Row",
804857
"Show Script": "Show Script",
@@ -1210,15 +1263,13 @@
12101263
"message": "Are you sure you want to remove {0}?",
12111264
"comment": ["{0} is the node label"]
12121265
},
1213-
"Loading...": "Loading...",
12141266
"Generating script...": "Generating script...",
12151267
"Fetching {0} script.../{0} is the script type": {
12161268
"message": "Fetching {0} script...",
12171269
"comment": ["{0} is the script type"]
12181270
},
12191271
"Insert": "Insert",
12201272
"Update": "Update",
1221-
"Execute": "Execute",
12221273
"Alter": "Alter",
12231274
"Signing in to Azure...": "Signing in to Azure...",
12241275
"Are you sure you want to delete {0}? You can delete its connections as well, or move them to the root folder./{0} is the group name": {
@@ -1362,7 +1413,6 @@
13621413
"comment": ["{0} is the number of invalid accounts that have been removed"]
13631414
},
13641415
"Entra token cache cleared successfully.": "Entra token cache cleared successfully.",
1365-
"Database Name": "Database Name",
13661416
"Enter Database Name": "Enter Database Name",
13671417
"Database Name is required": "Database Name is required",
13681418
"Database Description": "Database Description",
@@ -1558,7 +1608,6 @@
15581608
"Load profile...": "Load profile...",
15591609
"Save As": "Save As",
15601610
"Publish Settings File": "Publish Settings File",
1561-
"Database name is required": "Database name is required",
15621611
"Publish Target": "Publish Target",
15631612
"Existing SQL server": "Existing SQL server",
15641613
"New SQL Server Local development container": "New SQL Server Local development container",
@@ -1928,6 +1977,15 @@
19281977
"message": "Edit Connection Group - {0}",
19291978
"comment": ["{0} is the connection group name"]
19301979
},
1980+
"File not found": "File not found",
1981+
"Invalid file extension. Expected .dacpac or .bacpac": "Invalid file extension. Expected .dacpac or .bacpac",
1982+
"Directory not found": "Directory not found",
1983+
"File already exists. It will be overwritten if you continue": "File already exists. It will be overwritten if you continue",
1984+
"Database name contains invalid characters. Avoid using: < > * ? \" / \\ |": "Database name contains invalid characters. Avoid using: < > * ? \" / \\ |",
1985+
"Database name is too long. Maximum length is 128 characters": "Database name is too long. Maximum length is 128 characters",
1986+
"Database not found on the server": "Database not found on the server",
1987+
"Validation failed. Please check your inputs": "Validation failed. Please check your inputs",
1988+
"Files": "Files",
19311989
"Unable to open Table Explorer: No target node provided.": "Unable to open Table Explorer: No target node provided.",
19321990
"Changes saved successfully.": "Changes saved successfully.",
19331991
"Row created.": "Row created.",

0 commit comments

Comments
 (0)