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

Create hasUserSeen() for tracking comparison #5

Closed
doublejosh opened this issue Oct 22, 2014 · 5 comments
Closed

Create hasUserSeen() for tracking comparison #5

doublejosh opened this issue Oct 22, 2014 · 5 comments

Comments

@doublejosh
Copy link
Contributor

Would be lovely to provide a way to ask has this user seen something. This will invariably we used for different types of things: taxonomy, nodes, urls, so it should accept a type param.

Easy

hasUserSeen('node', nid)
hasUserSeen('term', tid)

Maybe?

thing = { entity: { 'type': 'node', 'bundle': 'article' } };
hasUserSeen(thing, id);
@doublejosh
Copy link
Contributor Author

#13

Function...
groucho.addons.previously.getPrevious(property, values, activityType)

Examples...
groucho.addons.previously.getPrevious('pageId', '555')
groucho.addons.previously.getPrevious('pageType', 'video')
groucho.addons.previously.getPrevious('videoType', 'training', 'watch')

@doublejosh
Copy link
Contributor Author

Maybe just extend groucho.getActivity() to allow deeper constraints.

@doublejosh
Copy link
Contributor Author

Rabbit hole-- "local storage query language"
http://nadh.in/code/localstoragedb
https://code.google.com/p/dom-storage-query-language

@doublejosh
Copy link
Contributor Author

#15

@pvanoverbeek
Copy link

@doublejosh what is the status of this item? Are you still working on this or can it be closed?

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

No branches or pull requests

2 participants