Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion .env
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ ENABLE_ASSETS_PAGE=false
ENABLE_VIDEO_UPLOAD_PAGE_LINK_IN_CONTENT_DROPDOWN=false
ENABLE_TAGGING_TAXONOMY_PAGES=true
ENABLE_CERTIFICATE_PAGE=true
ENABLE_LEGACY_LIBRARY_MIGRATOR=false
BBB_LEARN_MORE_URL=''
HOTJAR_APP_ID=''
HOTJAR_VERSION=6
Expand Down
1 change: 0 additions & 1 deletion .env.development
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@ ENABLE_VIDEO_UPLOAD_PAGE_LINK_IN_CONTENT_DROPDOWN=true
ENABLE_CERTIFICATE_PAGE=true
ENABLE_NEW_VIDEO_UPLOAD_PAGE=true
ENABLE_TAGGING_TAXONOMY_PAGES=true
ENABLE_LEGACY_LIBRARY_MIGRATOR=true
BBB_LEARN_MORE_URL=''
HOTJAR_APP_ID=''
HOTJAR_VERSION=6
Expand Down
1 change: 0 additions & 1 deletion .env.test
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ ENABLE_ASSETS_PAGE=false
ENABLE_VIDEO_UPLOAD_PAGE_LINK_IN_CONTENT_DROPDOWN=true
ENABLE_CERTIFICATE_PAGE=true
ENABLE_TAGGING_TAXONOMY_PAGES=true
ENABLE_LEGACY_LIBRARY_MIGRATOR=true
BBB_LEARN_MORE_URL=''
INVITE_STUDENTS_EMAIL_TO="[email protected]"
ENABLE_CHECKLIST_QUALITY=true
Expand Down
1 change: 0 additions & 1 deletion src/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,6 @@ initialize({
ENABLE_CERTIFICATE_PAGE: process.env.ENABLE_CERTIFICATE_PAGE || 'false',
ENABLE_TAGGING_TAXONOMY_PAGES: process.env.ENABLE_TAGGING_TAXONOMY_PAGES || 'false',
ENABLE_CHECKLIST_QUALITY: process.env.ENABLE_CHECKLIST_QUALITY || 'true',
ENABLE_LEGACY_LIBRARY_MIGRATOR: process.env.ENABLE_LEGACY_LIBRARY_MIGRATOR || 'false',
ENABLE_GRADING_METHOD_IN_PROBLEMS: process.env.ENABLE_GRADING_METHOD_IN_PROBLEMS === 'true',
LIBRARY_UNSUPPORTED_BLOCKS: (process.env.LIBRARY_UNSUPPORTED_BLOCKS || 'conditional,step-builder,problem-builder').split(','),
COURSE_TEAM_SUPPORT_EMAIL: process.env.COURSE_TEAM_SUPPORT_EMAIL || null,
Expand Down
12 changes: 0 additions & 12 deletions src/studio-home/tabs-section/TabsSection.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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 });
Expand All @@ -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,
Expand Down Expand Up @@ -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,
Expand Down
3 changes: 1 addition & 2 deletions src/studio-home/tabs-section/libraries-tab/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down Expand Up @@ -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 && (
Expand Down