chore: Enable legacy libraries migration by default (#2561)
This commit is contained in:
@@ -393,10 +393,6 @@ describe('<TabsSection />', () => {
|
||||
});
|
||||
|
||||
it('should open migration library page from v1 libraries tab', async () => {
|
||||
setConfig({
|
||||
...getConfig(),
|
||||
ENABLE_LEGACY_LIBRARY_MIGRATOR: 'true',
|
||||
});
|
||||
await axiosMock.onGet(getStudioHomeApiUrl()).reply(200, generateGetStudioHomeDataApiResponse());
|
||||
await axiosMock.onGet(libraryApiLink).reply(200, generateGetStudioHomeLibrariesApiResponse());
|
||||
render({ librariesV2Enabled: false });
|
||||
@@ -422,10 +418,6 @@ describe('<TabsSection />', () => {
|
||||
});
|
||||
|
||||
it('should open migration library page from v2 libraries tab', async () => {
|
||||
setConfig({
|
||||
...getConfig(),
|
||||
ENABLE_LEGACY_LIBRARY_MIGRATOR: 'true',
|
||||
});
|
||||
const libraries = generateGetStudioHomeLibrariesApiResponse().libraries.map(
|
||||
library => ({
|
||||
...library,
|
||||
@@ -542,10 +534,6 @@ describe('<TabsSection />', () => {
|
||||
|
||||
[true, false].forEach((isMigrated) => {
|
||||
it(`should render v2 libraries migration alert when the libraries have isMigrated=${isMigrated}`, async () => {
|
||||
setConfig({
|
||||
...getConfig(),
|
||||
ENABLE_LEGACY_LIBRARY_MIGRATOR: 'true',
|
||||
});
|
||||
const libraries = generateGetStudioHomeLibrariesApiResponse().libraries.map(
|
||||
library => ({
|
||||
...library,
|
||||
|
||||
@@ -4,7 +4,6 @@ import {
|
||||
ActionRow, Form, Icon, Menu, MenuItem, Pagination, Row, SearchField,
|
||||
} from '@openedx/paragon';
|
||||
import { Error, FilterList } from '@openedx/paragon/icons';
|
||||
import { getConfig } from '@edx/frontend-platform';
|
||||
|
||||
import { LoadingSpinner } from '@src/generic/Loading';
|
||||
import AlertMessage from '@src/generic/alert-message';
|
||||
@@ -227,7 +226,7 @@ export const LibrariesList = ({
|
||||
|
||||
return (
|
||||
<>
|
||||
{!hideMigationAlert && getConfig().ENABLE_LEGACY_LIBRARY_MIGRATOR === 'true' && (<MigrateLegacyLibrariesAlert />)}
|
||||
{!hideMigationAlert && (<MigrateLegacyLibrariesAlert />)}
|
||||
<div className="courses-tab">
|
||||
<ActionRow className="my-3">
|
||||
{inSelectMode && (
|
||||
|
||||
Reference in New Issue
Block a user