## Description: In this PR I have fixed the GitConfig route `dev.appsmtih.com/profile` with the help of `fetchGlobalGitConfigInit` method. Now If an unauthorized user try to access this URL , it will redirects to the login page. ## Issue video [Screencast from 11-07-24 02:37:08 PM IST.webm](https://github.com/appsmithorg/appsmith/assets/127818049/1c851c90-c0d0-47d7-8b1e-8c5df74b6f28) ## Solution video [Screencast from 11-07-24 02:36:02 PM IST.webm](https://github.com/appsmithorg/appsmith/assets/127818049/7f7840e7-d00c-4deb-93f0-ad7c3bc74bf5) > [!TIP] > _Add a TL;DR when the description is longer than 500 words or extremely technical (helps the content, marketing, and DevRel team)._ > > _Please also include relevant motivation and context. List any dependencies that are required for this change. Add links to Notion, Figma or any other documents that might be relevant to the PR._ Fixes #34603 > [!WARNING] > _If no issue exists, please create an issue first, and check with the maintainers if the issue is valid._ ## Automation /ok-to-test tags="" ### 🔍 Cypress test results <!-- This is an auto-generated comment: Cypress test results --> > [!CAUTION] > If you modify the content in this section, you are likely to disrupt the CI result for your PR. <!-- end of auto-generated comment: Cypress test results --> ## Communication Should the DevRel and Marketing teams inform users about this change? - [ ] Yes - [x] No <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - **New Features** - Added automatic fetching of global Git configuration when visiting the UserProfile page. - **Refactor** - Simplified imports and component logic in the UserProfile and GitConfig components for better maintainability. - **Bug Fixes** - Improved initialization behavior of the GitConfig component by removing redundant fetch operations. - **Tests** - Introduced unit tests for the UserProfile component to verify rendering behavior based on user authentication states. <!-- end of auto-generated comment: release notes by coderabbit.ai --> |
||
|---|---|---|
| .. | ||
| General.tsx | ||
| GitConfig.tsx | ||
| index.test.tsx | ||
| index.tsx | ||
| StyledComponents.tsx | ||
| UserProfileImagePicker.tsx | ||