Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added visit page view #117

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Added visit page view #117

wants to merge 1 commit into from

Conversation

kaedroho
Copy link

@kaedroho kaedroho commented May 31, 2017

Fixes #74

Allows frontend users to submit page views and retrieve segment info while behind a cache or CDN.

@@ -137,7 +137,7 @@ def add_page_visit(self, page):
visit_count.append({
'slug': page.slug,
'id': page.pk,
'path': self.request.path,
'path': path or self.request.path,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm now actually wondering if using self.request.path for fallback here is the correct idea. Perhaps we should always use the full path based on the passed page ?

@kaedroho kaedroho force-pushed the feature/74-visit-api branch 2 times, most recently from 096e18d to 03f18d4 Compare May 31, 2017 14:02
@kaedroho kaedroho changed the title [WIP] Added visit page view Added visit page view May 31, 2017
Fixes #74

Allows frontend users to submit page views and retrieve segments while
behind a cache or CDN.
@codecov
Copy link

codecov bot commented May 31, 2017

Codecov Report

❗ No coverage uploaded for pull request base (master@4deaaa9). Click here to learn what that means.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff            @@
##             master     #117   +/-   ##
=========================================
  Coverage          ?   62.04%           
=========================================
  Files             ?       38           
  Lines             ?     3183           
  Branches          ?        0           
=========================================
  Hits              ?     1975           
  Misses            ?     1208           
  Partials          ?        0
Impacted Files Coverage Δ
src/wagtail_personalisation/adapters.py 41.48% <100%> (ø)
tests/unit/test_visit_page_view.py 100% <100%> (ø)
tests/sandbox/urls.py 100% <100%> (ø)
src/wagtail_personalisation/views.py 55.17% <100%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 4deaaa9...2ae115c. Read the comment docs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants