Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
ecommerce
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
ecommerce
Commits
1bfb73dc
Commit
1bfb73dc
authored
Aug 29, 2017
by
McKenzie Welter
Committed by
McKenzie Welter
Aug 29, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
updated program title access field for analytics
parent
09551432
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
ecommerce/extensions/checkout/signals.py
+1
-1
ecommerce/extensions/checkout/tests/test_signals.py
+2
-2
No files found.
ecommerce/extensions/checkout/signals.py
View file @
1bfb73dc
...
@@ -73,7 +73,7 @@ def track_completed_order(sender, order=None, **kwargs): # pylint: disable=unus
...
@@ -73,7 +73,7 @@ def track_completed_order(sender, order=None, **kwargs): # pylint: disable=unus
'quantity'
:
str
(
len
(
order
.
lines
.
all
())),
'quantity'
:
str
(
len
(
order
.
lines
.
all
())),
'category'
:
'bundle'
,
'category'
:
'bundle'
,
'variant'
:
variant
,
'variant'
:
variant
,
'name'
:
program
.
get
(
'
nam
e'
)
'name'
:
program
.
get
(
'
titl
e'
)
}
}
properties
[
'products'
]
.
append
(
bundle_product
)
properties
[
'products'
]
.
append
(
bundle_product
)
except
BasketAttribute
.
DoesNotExist
:
except
BasketAttribute
.
DoesNotExist
:
...
...
ecommerce/extensions/checkout/tests/test_signals.py
View file @
1bfb73dc
...
@@ -58,7 +58,7 @@ class SignalTests(ProgramTestMixin, CouponMixin, TestCase):
...
@@ -58,7 +58,7 @@ class SignalTests(ProgramTestMixin, CouponMixin, TestCase):
return
order
return
order
def
mock_get_program_data
(
self
,
isFull
):
def
mock_get_program_data
(
self
,
isFull
):
data
=
{
'
nam
e'
:
'test_program'
,
'courses'
:
[{}]}
data
=
{
'
titl
e'
:
'test_program'
,
'courses'
:
[{}]}
if
isFull
:
if
isFull
:
data
[
'courses'
]
.
append
({})
data
[
'courses'
]
.
append
({})
return
data
return
data
...
@@ -162,7 +162,7 @@ class SignalTests(ProgramTestMixin, CouponMixin, TestCase):
...
@@ -162,7 +162,7 @@ class SignalTests(ProgramTestMixin, CouponMixin, TestCase):
'quantity'
:
str
(
len
(
order
.
lines
.
all
())),
'quantity'
:
str
(
len
(
order
.
lines
.
all
())),
'category'
:
'bundle'
,
'category'
:
'bundle'
,
'variant'
:
variant
,
'variant'
:
variant
,
'name'
:
program
[
'
nam
e'
]
'name'
:
program
[
'
titl
e'
]
}
}
properties
[
'products'
]
.
append
(
bundle_product
)
properties
[
'products'
]
.
append
(
bundle_product
)
...
...
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