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
b56d4a02
Commit
b56d4a02
authored
Sep 17, 2015
by
Gabe Mulley
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Revert "Fix order of tracking backends"
parent
034570b3
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
9 additions
and
17 deletions
+9
-17
cms/envs/aws.py
+2
-2
cms/envs/common.py
+2
-6
lms/envs/acceptance.py
+1
-1
lms/envs/aws.py
+2
-2
lms/envs/common.py
+2
-6
No files found.
cms/envs/aws.py
View file @
b56d4a02
...
...
@@ -293,8 +293,8 @@ BROKER_URL = "{0}://{1}:{2}@{3}/{4}".format(CELERY_BROKER_TRANSPORT,
# Event tracking
TRACKING_BACKENDS
.
update
(
AUTH_TOKENS
.
get
(
"TRACKING_BACKENDS"
,
{}))
EVENT_TRACKING_BACKENDS
[
'
0_
tracking_logs'
][
'OPTIONS'
][
'backends'
]
.
update
(
AUTH_TOKENS
.
get
(
"EVENT_TRACKING_BACKENDS"
,
{}))
EVENT_TRACKING_BACKENDS
[
'
1_
segmentio'
][
'OPTIONS'
][
'processors'
][
0
][
'OPTIONS'
][
'whitelist'
]
.
extend
(
EVENT_TRACKING_BACKENDS
[
'tracking_logs'
][
'OPTIONS'
][
'backends'
]
.
update
(
AUTH_TOKENS
.
get
(
"EVENT_TRACKING_BACKENDS"
,
{}))
EVENT_TRACKING_BACKENDS
[
'segmentio'
][
'OPTIONS'
][
'processors'
][
0
][
'OPTIONS'
][
'whitelist'
]
.
extend
(
AUTH_TOKENS
.
get
(
"EVENT_TRACKING_SEGMENTIO_EMIT_WHITELIST"
,
[]))
SUBDOMAIN_BRANDING
=
ENV_TOKENS
.
get
(
'SUBDOMAIN_BRANDING'
,
{})
...
...
cms/envs/common.py
View file @
b56d4a02
...
...
@@ -828,12 +828,8 @@ TRACKING_BACKENDS = {
TRACKING_IGNORE_URL_PATTERNS
=
[
r'^/event'
,
r'^/login'
,
r'^/heartbeat'
]
EVENT_TRACKING_ENABLED
=
True
# NOTE: the sort order of the backend names is important here, the events will be sent to the backends in sorted
# order. In this case a processor modifies the event in a way that is only intended to be seen by segment.io, so
# we want to make sure that backend and processor is run *after* the event has been sent to the tracking logs.
EVENT_TRACKING_BACKENDS
=
{
'
0_
tracking_logs'
:
{
'tracking_logs'
:
{
'ENGINE'
:
'eventtracking.backends.routing.RoutingBackend'
,
'OPTIONS'
:
{
'backends'
:
{
...
...
@@ -851,7 +847,7 @@ EVENT_TRACKING_BACKENDS = {
]
}
},
'
1_
segmentio'
:
{
'segmentio'
:
{
'ENGINE'
:
'eventtracking.backends.routing.RoutingBackend'
,
'OPTIONS'
:
{
'backends'
:
{
...
...
lms/envs/acceptance.py
View file @
b56d4a02
...
...
@@ -80,7 +80,7 @@ TRACKING_BACKENDS.update({
}
})
EVENT_TRACKING_BACKENDS
[
'
0_
tracking_logs'
][
'OPTIONS'
][
'backends'
]
.
update
({
EVENT_TRACKING_BACKENDS
[
'tracking_logs'
][
'OPTIONS'
][
'backends'
]
.
update
({
'mongo'
:
{
'ENGINE'
:
'eventtracking.backends.mongodb.MongoBackend'
,
'OPTIONS'
:
{
...
...
lms/envs/aws.py
View file @
b56d4a02
...
...
@@ -492,8 +492,8 @@ STUDENT_FILEUPLOAD_MAX_SIZE = ENV_TOKENS.get("STUDENT_FILEUPLOAD_MAX_SIZE", STUD
# Event tracking
TRACKING_BACKENDS
.
update
(
AUTH_TOKENS
.
get
(
"TRACKING_BACKENDS"
,
{}))
EVENT_TRACKING_BACKENDS
[
'
0_
tracking_logs'
][
'OPTIONS'
][
'backends'
]
.
update
(
AUTH_TOKENS
.
get
(
"EVENT_TRACKING_BACKENDS"
,
{}))
EVENT_TRACKING_BACKENDS
[
'
1_
segmentio'
][
'OPTIONS'
][
'processors'
][
0
][
'OPTIONS'
][
'whitelist'
]
.
extend
(
EVENT_TRACKING_BACKENDS
[
'tracking_logs'
][
'OPTIONS'
][
'backends'
]
.
update
(
AUTH_TOKENS
.
get
(
"EVENT_TRACKING_BACKENDS"
,
{}))
EVENT_TRACKING_BACKENDS
[
'segmentio'
][
'OPTIONS'
][
'processors'
][
0
][
'OPTIONS'
][
'whitelist'
]
.
extend
(
AUTH_TOKENS
.
get
(
"EVENT_TRACKING_SEGMENTIO_EMIT_WHITELIST"
,
[]))
TRACKING_SEGMENTIO_WEBHOOK_SECRET
=
AUTH_TOKENS
.
get
(
"TRACKING_SEGMENTIO_WEBHOOK_SECRET"
,
...
...
lms/envs/common.py
View file @
b56d4a02
...
...
@@ -629,12 +629,8 @@ TRACKING_BACKENDS = {
TRACKING_IGNORE_URL_PATTERNS
=
[
r'^/event'
,
r'^/login'
,
r'^/heartbeat'
,
r'^/segmentio/event'
,
r'^/performance'
]
EVENT_TRACKING_ENABLED
=
True
# NOTE: the sort order of the backend names is important here, the events will be sent to the backends in sorted
# order. In this case a processor modifies the event in a way that is only intended to be seen by segment.io, so
# we want to make sure that backend and processor is run *after* the event has been sent to the tracking logs.
EVENT_TRACKING_BACKENDS
=
{
'
0_
tracking_logs'
:
{
'tracking_logs'
:
{
'ENGINE'
:
'eventtracking.backends.routing.RoutingBackend'
,
'OPTIONS'
:
{
'backends'
:
{
...
...
@@ -652,7 +648,7 @@ EVENT_TRACKING_BACKENDS = {
]
}
},
'
1_
segmentio'
:
{
'segmentio'
:
{
'ENGINE'
:
'eventtracking.backends.routing.RoutingBackend'
,
'OPTIONS'
:
{
'backends'
:
{
...
...
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