feat: bulk update legacy library references (#2764)
Shows an alert in course outline and review tab of course libraries page when the course contains legacy library content blocks that depend on libraries that are already migrated to library v2, i.e. the blocks are ready to be converted into item banks that can make use of these new v2 libraries. Authors can click on a single button to convert all references in a single go. The button launches a background task which is then polled by the frontend and the status is presented to the Author.
This commit is contained in:
@@ -61,3 +61,12 @@ export const VisibilityTypes = {
|
||||
export const TOTAL_LENGTH_KEY = 'total-length';
|
||||
|
||||
export const MAX_TOTAL_LENGTH = 65;
|
||||
|
||||
export enum UserTaskStatus {
|
||||
Pending = 'Pending',
|
||||
Succeeded = 'Succeeded',
|
||||
Failed = 'Failed',
|
||||
InProgress = 'In Progress',
|
||||
Cancelled = 'Cancelled',
|
||||
Retrying = 'Retrying',
|
||||
}
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
import { UserTaskStatus } from './constants';
|
||||
|
||||
export interface GroupTypes {
|
||||
id: number;
|
||||
name: string;
|
||||
@@ -135,3 +137,19 @@ export interface OutlinePageErrors {
|
||||
sectionLoadingApi?: OutlineError | null,
|
||||
courseLaunchApi?: OutlineError | null,
|
||||
}
|
||||
|
||||
export interface UsageKeyBlock {
|
||||
usageKey: string;
|
||||
}
|
||||
|
||||
export interface UserTaskStatusWithUuid {
|
||||
name: string;
|
||||
state: UserTaskStatus;
|
||||
stateText: string;
|
||||
completedSteps: number;
|
||||
totalSteps: number;
|
||||
attempts: number;
|
||||
created: string;
|
||||
modified: string;
|
||||
uuid: string;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user