Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 1 addition & 14 deletions infra/main.bicep
Original file line number Diff line number Diff line change
Expand Up @@ -548,14 +548,7 @@ module storageAccount 'br/public:avm/res/storage/storage-account:0.20.0' = {
blobServices: {
corsRules: []
deleteRetentionPolicyEnabled: false
containers: [
{
name: 'data'
publicAccess: 'None'
denyEncryptionScopeOverride: false
defaultEncryptionScope: '$account-encryption-key'
}
]
containers: []
Comment thread
Tejasri-Microsoft marked this conversation as resolved.
}
Comment thread
Tejasri-Microsoft marked this conversation as resolved.
queueServices: {
deleteRetentionPolicyEnabled: true
Expand Down Expand Up @@ -626,12 +619,6 @@ module cosmosDb 'br/public:avm/res/document-db/database-account:0.15.0' = {
'/_partitionKey'
]
}
{
name: 'process_statuses'
paths: [
'/_partitionKey'
]
}
]
Comment thread
Tejasri-Microsoft marked this conversation as resolved.
}
]
Expand Down
15 changes: 1 addition & 14 deletions infra/main_custom.bicep
Original file line number Diff line number Diff line change
Expand Up @@ -515,14 +515,7 @@ module storageAccount 'br/public:avm/res/storage/storage-account:0.20.0' = {
blobServices: {
corsRules: []
deleteRetentionPolicyEnabled: false
containers: [
{
name: 'data'
publicAccess: 'None'
denyEncryptionScopeOverride: false
defaultEncryptionScope: '$account-encryption-key'
}
]
containers: []
Comment thread
Tejasri-Microsoft marked this conversation as resolved.
}
queueServices: {
deleteRetentionPolicyEnabled: true
Expand Down Expand Up @@ -585,12 +578,6 @@ module cosmosDb 'br/public:avm/res/document-db/database-account:0.15.0' = {
'/_partitionKey'
]
}
{
name: 'process_statuses'
paths: [
'/_partitionKey'
]
}
]
Comment thread
Tejasri-Microsoft marked this conversation as resolved.
}
]
Expand Down
3 changes: 1 addition & 2 deletions src/backend-api/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ dependencies = [
"azure-appconfiguration==1.7.1",
"azure-identity==1.25.0",
"azure-monitor-opentelemetry==1.7.0",
"azure-search-documents==11.6.0b12",
"azure-storage-blob==12.26.0",
"azure-storage-queue==12.13.0",
"fastapi[standard]==0.116.1",
Comment thread
Tejasri-Microsoft marked this conversation as resolved.
Expand All @@ -20,7 +19,7 @@ dependencies = [
"python-multipart==0.0.26",
"protobuf==7.34.0",
"sas-cosmosdb==0.1.4",
"semantic-kernel[azure]==1.40.0",
"semantic-kernel==1.40.0",
"uvicorn==0.35.0",
Comment thread
Tejasri-Microsoft marked this conversation as resolved.
]

Expand Down
2,135 changes: 1,149 additions & 986 deletions src/backend-api/uv.lock

Large diffs are not rendered by default.

82 changes: 0 additions & 82 deletions src/frontend/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion src/frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@
"react-syntax-highlighter": "^15.6.1",
"rehype-raw": "^7.0.0",
"remark-gfm": "^4.0.1",
"sql-formatter": "^15.4.11",
"tailwind-merge": "^2.6.0",
"tailwindcss": "^3.4.17",
"uuid": "^14.0.0"
Expand Down
17 changes: 2 additions & 15 deletions src/frontend/src/pages/batchView.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@ import BatchHistoryPanel from "../components/batchHistoryPanel";
import ConfirmationDialog from "../commonComponents/ConfirmationDialog/confirmationDialogue";
import { determineFileStatus, filesLogsBuilder, renderErrorSection, useStyles, renderFileError, filesErrorCounter, completedFiles, hasFiles, fileErrorCounter, BatchSummary, fileWarningCounter } from "../api/utils";
export const History = bundleIcon(HistoryFilled, HistoryRegular);
import { format } from "sql-formatter";


SyntaxHighlighter.registerLanguage("sql", sql)
Expand Down Expand Up @@ -205,20 +204,8 @@ const BatchStoryPage = () => {
};

// Helper function to format content based on file type
const formatContent = (content: string, fileName: string) => {
const { language } = getFileLanguageAndType(fileName);

// Only apply SQL formatting for SQL files
if (language === 'sql') {
try {
return format(content, { language: "tsql" });
} catch (error) {
console.warn("SQL formatting failed, returning original content:", error);
return content;
}
}

// Return content as-is for YAML and Markdown files
const formatContent = (content: string, _fileName: string) => {
// Return content as-is for all file types.
return content;
};

Expand Down
3 changes: 1 addition & 2 deletions src/frontend/src/pages/modernizationPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ import PanelRight from "../components/Panels/PanelRight";
import PanelRightToolbar from "../components/Panels/PanelRightToolbar";
import PanelRightToggles from "../components/Header/PanelRightToggles";
import { filesLogsBuilder, BatchSummary, completedFiles, filesErrorCounter, hasFiles, renderFileError, fileErrorCounter, renderErrorContent, filesFinalErrorCounter, fileWarningCounter } from "../api/utils";
import { format } from "sql-formatter";

export const History = bundleIcon(HistoryFilled, HistoryRegular);

Expand Down Expand Up @@ -977,7 +976,7 @@ useEffect(() => {
backgroundColor: tokens.colorNeutralBackground1,
}}
>
{format(selectedFile.translatedCode, { language: "tsql" })}
{selectedFile.translatedCode}
</SyntaxHighlighter>
) : selectedFile.status === "completed" && !selectedFile.translatedCode && !selectedFile.errorCount ? (
<div style={{ padding: "20px", textAlign: "center" }}>
Expand Down
Loading