Skip to content

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.

@kaedroho kaedroho force-pushed the feature/74-visit-api branch from 56cdd0d to 9f4a015 Compare May 31, 2017 12:01
'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.
@kaedroho kaedroho force-pushed the feature/74-visit-api branch from 03f18d4 to 2ae115c Compare May 31, 2017 14:48
@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.

3 participants