Skip to content

refactor: update MySQL details structure in LoadUploadFile and Migrat…#1021

Closed
AishDani wants to merge 1 commit intodevfrom
feature/cmg-852
Closed

refactor: update MySQL details structure in LoadUploadFile and Migrat…#1021
AishDani wants to merge 1 commit intodevfrom
feature/cmg-852

Conversation

@AishDani
Copy link
Copy Markdown
Contributor

…ion components

  • Changed property name from mySQLDetails to mysql for consistency across components.
  • Updated references in LoadUploadFile and Migration to align with the new property structure.
  • Removed unnecessary useEffect hooks to streamline component logic.

…ion components

- Changed property name from mySQLDetails to mysql for consistency across components.
- Updated references in LoadUploadFile and Migration to align with the new property structure.
- Removed unnecessary useEffect hooks to streamline component logic.
@AishDani AishDani requested a review from a team as a code owner March 30, 2026 17:38
}
},
mysql: {
host: uploadObj?.file_details?.mysql?.host || newMigrationDataRef?.current?.legacy_cms?.uploadedFile?.file_details?.mysql?.host,
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you can optimized this code
const fromUpload = uploadObj?.file_details;
const fromLegacy =
newMigrationDataRef?.current?.legacy_cms?.uploadedFile?.file_details;

mysql: {
host: fromUpload?.mysql?.host || fromLegacy?.mysql?.host,
user: fromUpload?.mysql?.user || fromLegacy?.mysql?.user,
database: fromUpload?.mysql?.database || fromLegacy?.mysql?.database,
port: fromUpload?.mysql?.port || fromLegacy?.mysql?.port,
},
assetsConfig: {
base_url: fromUpload?.assetsConfig?.base_url || fromLegacy?.assetsConfig?.base_url,
public_path:
fromUpload?.assetsConfig?.public_path || fromLegacy?.assetsConfig?.public_path,
},

@AishDani AishDani closed this Mar 31, 2026
@AishDani
Copy link
Copy Markdown
Contributor Author

not needed

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.

3 participants