Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
edx-platform-release
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package Registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Hsin-Yu Chien
edx-platform-release
Commits
630d3056
Commit
630d3056
authored
4 years ago
by
Kyle McCormick
Committed by
Kyle McCormick
4 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Silence DeprecatedEdxPlatformImportWarning by default
parent
090e1068
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
cms/envs/common.py
+10
-0
10 additions, 0 deletions
cms/envs/common.py
lms/envs/common.py
+9
-0
9 additions, 0 deletions
lms/envs/common.py
with
19 additions
and
0 deletions
cms/envs/common.py
+
10
−
0
View file @
630d3056
...
...
@@ -43,6 +43,8 @@ When refering to XBlocks, we use the entry-point name. For example,
import
importlib.util
import
os
import
sys
import
warnings
from
corsheaders.defaults
import
default_headers
as
corsheaders_default_headers
from
datetime
import
timedelta
import
lms.envs.common
...
...
@@ -115,6 +117,7 @@ from lms.envs.common import (
from
path
import
Path
as
path
from
django.urls
import
reverse_lazy
from
import_shims.warn
import
DeprecatedEdxPlatformImportWarning
from
lms.djangoapps.lms_xblock.mixin
import
LmsBlockMixin
from
cms.lib.xblock.authoring_mixin
import
AuthoringMixin
from
xmodule.modulestore.edit_info
import
EditInfoMixin
...
...
@@ -128,6 +131,13 @@ from openedx.core.release import doc_version
# pylint: enable=useless-suppression
# Filter out DeprecatedEdxPlatformImportWarning instances for now.
# We will want these to be generally visible eventually, but while there
# are still a very high number of them, silencing them will be better for
# developer experience.
# See /docs/decisions/0007-sys-path-modification-removal.rst for details.
warnings
.
filterwarnings
(
"
ignore
"
,
category
=
DeprecatedEdxPlatformImportWarning
)
################ Enable credit eligibility feature ####################
ENABLE_CREDIT_ELIGIBILITY
=
True
...
...
This diff is collapsed.
Click to expand it.
lms/envs/common.py
+
9
−
0
View file @
630d3056
...
...
@@ -32,6 +32,7 @@ Longer TODO:
import
importlib.util
import
sys
import
os
import
warnings
from
corsheaders.defaults
import
default_headers
as
corsheaders_default_headers
from
path
import
Path
as
path
...
...
@@ -45,6 +46,7 @@ from enterprise.constants import (
ENTERPRISE_OPERATOR_ROLE
)
from
import_shims.warn
import
DeprecatedEdxPlatformImportWarning
from
openedx.core.constants
import
COURSE_KEY_REGEX
,
COURSE_KEY_PATTERN
,
COURSE_ID_PATTERN
from
openedx.core.djangoapps.theming.helpers_dirs
import
(
get_themes_unchecked
,
...
...
@@ -54,6 +56,13 @@ from openedx.core.lib.derived import derived, derived_collection_entry
from
openedx.core.release
import
doc_version
from
lms.djangoapps.lms_xblock.mixin
import
LmsBlockMixin
# Filter out DeprecatedEdxPlatformImportWarning instances for now.
# We will want these to be generally visible eventually, but while there
# are still a very high number of them, silencing them will be better for
# developer experience.
# See /docs/decisions/0007-sys-path-modification-removal.rst for details.
warnings
.
filterwarnings
(
"
ignore
"
,
category
=
DeprecatedEdxPlatformImportWarning
)
################################### FEATURES ###################################
# .. setting_name: PLATFORM_NAME
# .. setting_default: Your Platform Name Here
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment