Skip to content

fix: gp bug and Managed identity changes#375

Draft
Shreyas-Microsoft wants to merge 1 commit intomainfrom
psl-fix-gp-bug
Draft

fix: gp bug and Managed identity changes#375
Shreyas-Microsoft wants to merge 1 commit intomainfrom
psl-fix-gp-bug

Conversation

@Shreyas-Microsoft
Copy link
Collaborator

Purpose

This pull request introduces several improvements and fixes across both the backend and frontend. The main changes include enhanced Azure credential handling for different environments, improved logging configuration for debugging, a fix to the script conversion loop logic, and frontend updates for better progress tracking and error handling.

Backend Improvements

  • Azure credential handling is now environment-aware: in development, it uses ClientSecretCredential or AioDefaultAzureCredential, while in production it defaults to AioManagedIdentityCredential, ensuring the correct authentication method is used based on APP_ENV. [1] [2]
  • Logging levels for both basic application logs and Azure package logs are set to DEBUG by default in .env.sample to facilitate easier debugging during development.
  • The script conversion loop in convert_script.py now uses a boolean flag (is_complete) for clearer and more robust completion detection. [1] [2]

Frontend Enhancements

  • Added progressPercentage state and improved the loading timeout logic to show an error only if progress is less than 5% after 30 seconds, providing a better user experience during long operations. [1] [2]
  • Updated .dockerignore to exclude node_modules, dist, and .git from frontend Docker builds, reducing image size and build time.

Other minor changes include importing additional React hooks and minor refactoring of file loading logic in the modernization page. [1] [2]

Does this introduce a breaking change?

  • Yes
  • No

Golden Path Validation

  • I have tested the primary workflows (the "golden path") to ensure they function correctly without errors.

Deployment Validation

  • I have validated the deployment process successfully and all services are running as expected with this change.

What to Check

Verify that the following are valid

  • ...

Other Information


if comms_manager.group_chat.is_complete:
break
is_complete = True
import sql from "react-syntax-highlighter/dist/cjs/languages/hljs/sql"
import { useNavigate, useParams } from "react-router-dom"
import { useState, useEffect, useCallback } from "react"
import { useState, useEffect, useCallback, useRef } from "react"
const [fileId, setFileId] = React.useState<string>("");
const [expandedSections, setExpandedSections] = React.useState<string[]>([]);
const [allFilesCompleted, setAllFilesCompleted] = useState(false);
const [progressPercentage, setProgressPercentage] = useState(0);
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.

1 participant