Skip to content

Conversation

@AishDani
Copy link
Contributor

** UI **
++ select cms will display only a card of cms which user has given in config of upload seervice
++ upload component will display config details(filepath, aws details, validation message)
++if validation is successful then proceed to destination cta will be enable
++if validation unsuccessful then cta will be disabled

** Upload**
++ integrated and refactored latest code
++ added eslint config
++ refactored api response (irrespective of validation success, it will pass config details in response)

// Filter CMS Data
const filterCMSData = (searchText: string) => {
const filterCMSData = async (searchText: string) => {
const { all_cms = [] } = migrationData.legacyCMSData;
Copy link
Contributor

Choose a reason for hiding this comment

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

Add ?.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done

<div className="col-12 mt-2">
</div> */}
<div className="col-12">
{validateArray(cmsData) ? (
Copy link
Contributor

Choose a reason for hiding this comment

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

Add validation for cmsData

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done

<Line type="solid" />
</div>
<div className="col-12 mt-2">
</div> */}
Copy link
Contributor

Choose a reason for hiding this comment

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

Remove this commented code if not required

Copy link
Contributor Author

Choose a reason for hiding this comment

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

kept for future use case ( as per my understanding if we are showing only the card for cms which user has given in config of upload service, then search will not be useful)

};

updateNewMigrationData(newMigrationDataObj);
console.log(newMigrationData);
Copy link
Contributor

Choose a reason for hiding this comment

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

Remove console.log

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done

<p className="summary-title">AWS Region: {fileDetails.awsData.awsRegion}</p>
<p className="summary-title">Bucket Name: {fileDetails.awsData.bucketName}</p>
<p className="summary-title">Bucket Key: {fileDetails.awsData.buketKey}</p>
</div>
Copy link
Contributor

Choose a reason for hiding this comment

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

Add validation

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done

@AishDani AishDani requested a review from sayalijoshi27 April 29, 2024 07:26
@umeshmore45 umeshmore45 merged commit feed9a6 into dev Apr 29, 2024
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.

4 participants