Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
edx-platform
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
edx
edx-platform
Commits
f896d64a
Commit
f896d64a
authored
Sep 15, 2014
by
Renzo Lucioni
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #5195 from edx/renzo/remove-waffle
Remove Django Waffle
parents
0bb4ddef
92392536
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
2 additions
and
25 deletions
+2
-25
common/djangoapps/embargo/tests/test_middleware.py
+2
-2
lms/envs/common.py
+0
-14
lms/templates/courseware/course_navigation.html
+0
-5
lms/templates/courseware/welcome-back.html
+0
-1
lms/urls.py
+0
-2
requirements/edx/github.txt
+0
-1
No files found.
common/djangoapps/embargo/tests/test_middleware.py
View file @
f896d64a
...
...
@@ -260,12 +260,12 @@ class EmbargoMiddlewareTests(ModuleStoreTestCase):
profile
.
save
()
# Warm the cache
with
self
.
assertNumQueries
(
1
8
):
with
self
.
assertNumQueries
(
1
4
):
self
.
client
.
get
(
self
.
embargoed_page
)
# Access the page multiple times, but expect that we hit
# the database to check the user's profile only once
with
self
.
assertNumQueries
(
12
):
with
self
.
assertNumQueries
(
8
):
self
.
client
.
get
(
self
.
embargoed_page
)
def
test_embargo_profile_country_db_null
(
self
):
...
...
lms/envs/common.py
View file @
f896d64a
...
...
@@ -837,14 +837,6 @@ JASMINE_TEST_DIRECTORY = PROJECT_ROOT + '/static/coffee'
# Ignore deprecation warnings (so we don't clutter Jenkins builds/production)
simplefilter
(
'ignore'
)
################################# Waffle ###################################
# Name prepended to cookies set by Waffle
WAFFLE_COOKIE
=
"waffle_flag_
%
s"
# Two weeks (in sec)
WAFFLE_MAX_AGE
=
1209600
################################# Middleware ###################################
# List of finder classes that know how to find static files in
# various locations.
...
...
@@ -910,9 +902,6 @@ MIDDLEWARE_CLASSES = (
# needs to run after locale middleware (or anything that modifies the request context)
'edxmako.middleware.MakoMiddleware'
,
# For A/B testing
'waffle.middleware.WaffleMiddleware'
,
# for expiring inactive sessions
'session_inactivity_timeout.middleware.SessionInactivityTimeout'
,
...
...
@@ -1331,9 +1320,6 @@ INSTALLED_APPS = (
# Foldit integration
'foldit'
,
# For A/B testing
'waffle'
,
# For testing
'django.contrib.admin'
,
# only used in DEBUG mode
'django_nose'
,
...
...
lms/templates/courseware/course_navigation.html
View file @
f896d64a
...
...
@@ -18,7 +18,6 @@ def url_class(is_active):
<
%!
from
django
.
core
.
urlresolvers
import
reverse
%
>
<
%!
from
django
.
utils
.
translation
import
ugettext
as
_
%
>
<
%!
from
courseware
.
views
import
notification_image_for_tab
%
>
<
%
import
waffle
%
>
% if disable_tabs is UNDEFINED or not disable_tabs:
<nav
class=
"${active_page} course-material"
>
...
...
@@ -29,11 +28,7 @@ def url_class(is_active):
tab_is_active =
(tab.tab_id
==
active_page
)
or
(
tab
.
tab_id =
=
default_tab
)
tab_image =
notification_image_for_tab(tab,
user
,
course
)
%
>
% if waffle.flag_is_active(request, 'visual_treatment'):
<li
class=
"${"
prominent
"
if
tab
.
name
in
("
Courseware
",
"
Course
Content
")
else
""}"
>
% else:
<li>
% endif
<a
href=
"${tab.link_func(course, reverse) | h}"
class=
"${url_class(tab_is_active)}"
>
${_(tab.name) | h}
% if tab_is_active:
...
...
lms/templates/courseware/welcome-back.html
View file @
f896d64a
<
%!
from
django
.
utils
.
translation
import
ugettext
as
_
import
waffle
%
>
<h2>
${chapter_module.display_name_with_default}
</h2>
...
...
lms/urls.py
View file @
f896d64a
...
...
@@ -64,8 +64,6 @@ urlpatterns = ('', # nopep8
url
(
r'^lang_pref/'
,
include
(
'lang_pref.urls'
)),
url
(
r'^'
,
include
(
'waffle.urls'
)),
url
(
r'^i18n/'
,
include
(
'django.conf.urls.i18n'
)),
url
(
r'^embargo$'
,
'student.views.embargo'
,
name
=
"embargo"
),
...
...
requirements/edx/github.txt
View file @
f896d64a
...
...
@@ -22,7 +22,6 @@
-e git+https://github.com/edx/codejail.git@71f5c5616e2a73ae8cecd1ff2362774a773d3665#egg=codejail
-e git+https://github.com/edx/diff-cover.git@v0.5.0#egg=diff_cover
-e git+https://github.com/edx/js-test-tool.git@v0.1.5#egg=js_test_tool
-e git+https://github.com/edx/django-waffle.git@823a102e48#egg=django-waffle
-e git+https://github.com/edx/event-tracking.git@0.1.0#egg=event-tracking
-e git+https://github.com/edx/edx-analytics-data-api-client.git@0.1.0#egg=edx-analytics-data-api-client
-e git+https://github.com/edx/bok-choy.git@2e6eab960a97fe41778292fe8e1b2f0b69a1be2d#egg=bok_choy
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment