File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -225,7 +225,8 @@ const LibraryAuthoringPage = ({
225225 if ( migrationId ) {
226226 let deleteMigrationIdParam = false ;
227227 if ( migrationStatusData ?. state === 'Succeeded' ) {
228- // Verify if there is some failed libraries
228+ // Check if any library migrations failed.
229+ // A `Succeeded` state means that the bulk migration ended, but some libraries might have failed.
229230 const failedMigrations = migrationStatusData . parameters . filter ( item => item . isFailed ) ;
230231 if ( failedMigrations . length > 1 ) {
231232 showToast ( intl . formatMessage ( migrationMessages . migrationFailedMultiple ) ) ;
@@ -242,6 +243,7 @@ const LibraryAuthoringPage = ({
242243 queryClient . invalidateQueries ( { predicate : ( query ) => libraryQueryPredicate ( query , libraryId ) } ) ;
243244 deleteMigrationIdParam = true ;
244245 } else if ( migrationStatusData ?. state === 'Failed' ) {
246+ // A `Failed` state means that the entire bulk migration has failed.
245247 showToast ( intl . formatMessage ( migrationMessages . migrationFailed ) ) ;
246248 deleteMigrationIdParam = true ;
247249 } else if ( migrationStatusData ?. state === 'Canceled' ) {
You can’t perform that action at this time.
0 commit comments