Skip to content

Commit 106f22b

Browse files
authored
chore: Enable legacy libraries migration by default (#2561)
1 parent 76d8b2e commit 106f22b

File tree

6 files changed

+1
-18
lines changed

6 files changed

+1
-18
lines changed

.env

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,6 @@ ENABLE_ASSETS_PAGE=false
3636
ENABLE_VIDEO_UPLOAD_PAGE_LINK_IN_CONTENT_DROPDOWN=false
3737
ENABLE_TAGGING_TAXONOMY_PAGES=true
3838
ENABLE_CERTIFICATE_PAGE=true
39-
ENABLE_LEGACY_LIBRARY_MIGRATOR=false
4039
BBB_LEARN_MORE_URL=''
4140
HOTJAR_APP_ID=''
4241
HOTJAR_VERSION=6

.env.development

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,6 @@ ENABLE_VIDEO_UPLOAD_PAGE_LINK_IN_CONTENT_DROPDOWN=true
3939
ENABLE_CERTIFICATE_PAGE=true
4040
ENABLE_NEW_VIDEO_UPLOAD_PAGE=true
4141
ENABLE_TAGGING_TAXONOMY_PAGES=true
42-
ENABLE_LEGACY_LIBRARY_MIGRATOR=true
4342
BBB_LEARN_MORE_URL=''
4443
HOTJAR_APP_ID=''
4544
HOTJAR_VERSION=6

.env.test

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@ ENABLE_ASSETS_PAGE=false
3434
ENABLE_VIDEO_UPLOAD_PAGE_LINK_IN_CONTENT_DROPDOWN=true
3535
ENABLE_CERTIFICATE_PAGE=true
3636
ENABLE_TAGGING_TAXONOMY_PAGES=true
37-
ENABLE_LEGACY_LIBRARY_MIGRATOR=true
3837
BBB_LEARN_MORE_URL=''
3938
INVITE_STUDENTS_EMAIL_TO="[email protected]"
4039
ENABLE_CHECKLIST_QUALITY=true

src/index.jsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,6 @@ initialize({
175175
ENABLE_CERTIFICATE_PAGE: process.env.ENABLE_CERTIFICATE_PAGE || 'false',
176176
ENABLE_TAGGING_TAXONOMY_PAGES: process.env.ENABLE_TAGGING_TAXONOMY_PAGES || 'false',
177177
ENABLE_CHECKLIST_QUALITY: process.env.ENABLE_CHECKLIST_QUALITY || 'true',
178-
ENABLE_LEGACY_LIBRARY_MIGRATOR: process.env.ENABLE_LEGACY_LIBRARY_MIGRATOR || 'false',
179178
ENABLE_GRADING_METHOD_IN_PROBLEMS: process.env.ENABLE_GRADING_METHOD_IN_PROBLEMS === 'true',
180179
LIBRARY_UNSUPPORTED_BLOCKS: (process.env.LIBRARY_UNSUPPORTED_BLOCKS || 'conditional,step-builder,problem-builder').split(','),
181180
COURSE_TEAM_SUPPORT_EMAIL: process.env.COURSE_TEAM_SUPPORT_EMAIL || null,

src/studio-home/tabs-section/TabsSection.test.tsx

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -393,10 +393,6 @@ describe('<TabsSection />', () => {
393393
});
394394

395395
it('should open migration library page from v1 libraries tab', async () => {
396-
setConfig({
397-
...getConfig(),
398-
ENABLE_LEGACY_LIBRARY_MIGRATOR: 'true',
399-
});
400396
await axiosMock.onGet(getStudioHomeApiUrl()).reply(200, generateGetStudioHomeDataApiResponse());
401397
await axiosMock.onGet(libraryApiLink).reply(200, generateGetStudioHomeLibrariesApiResponse());
402398
render({ librariesV2Enabled: false });
@@ -422,10 +418,6 @@ describe('<TabsSection />', () => {
422418
});
423419

424420
it('should open migration library page from v2 libraries tab', async () => {
425-
setConfig({
426-
...getConfig(),
427-
ENABLE_LEGACY_LIBRARY_MIGRATOR: 'true',
428-
});
429421
const libraries = generateGetStudioHomeLibrariesApiResponse().libraries.map(
430422
library => ({
431423
...library,
@@ -542,10 +534,6 @@ describe('<TabsSection />', () => {
542534

543535
[true, false].forEach((isMigrated) => {
544536
it(`should render v2 libraries migration alert when the libraries have isMigrated=${isMigrated}`, async () => {
545-
setConfig({
546-
...getConfig(),
547-
ENABLE_LEGACY_LIBRARY_MIGRATOR: 'true',
548-
});
549537
const libraries = generateGetStudioHomeLibrariesApiResponse().libraries.map(
550538
library => ({
551539
...library,

src/studio-home/tabs-section/libraries-tab/index.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ import {
44
ActionRow, Form, Icon, Menu, MenuItem, Pagination, Row, SearchField,
55
} from '@openedx/paragon';
66
import { Error, FilterList } from '@openedx/paragon/icons';
7-
import { getConfig } from '@edx/frontend-platform';
87

98
import { LoadingSpinner } from '@src/generic/Loading';
109
import AlertMessage from '@src/generic/alert-message';
@@ -227,7 +226,7 @@ export const LibrariesList = ({
227226

228227
return (
229228
<>
230-
{!hideMigationAlert && getConfig().ENABLE_LEGACY_LIBRARY_MIGRATOR === 'true' && (<MigrateLegacyLibrariesAlert />)}
229+
{!hideMigationAlert && (<MigrateLegacyLibrariesAlert />)}
231230
<div className="courses-tab">
232231
<ActionRow className="my-3">
233232
{inSelectMode && (

0 commit comments

Comments
 (0)