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

Get view information for a single piece of content. #181

Open
tdstein opened this issue Apr 24, 2024 · 2 comments
Open

Get view information for a single piece of content. #181

tdstein opened this issue Apr 24, 2024 · 2 comments
Labels
enhancement New feature or request question Further information is requested
Milestone

Comments

@tdstein
Copy link
Collaborator

tdstein commented Apr 24, 2024

Add a @Property to the ContentItem class that retrieves the view metrics for that piece of content. This can be accomplished by modifying the Views resource to optionally accepts a content identifier, and hooking that in as the property.

This could be content.views or content.metrics.views. Curently undecided on which makes the most sense for users.

@nealrichardson
Copy link
Collaborator

IMO:

class ContentItem(Resource):
    ...
    @property
    def views(self):
        ...

@tdstein
Copy link
Collaborator Author

tdstein commented Apr 26, 2024

I noticed the WebApp makes various calls to an undocumented __metrics__ API endpoint. We should do some digging to determine if those APIs logically go together with the views API. That might help determine if Views are at the "admin" level or the "user" level information.

@tdstein tdstein added enhancement New feature or request question Further information is requested labels Apr 26, 2024
@tdstein tdstein added this to the 0.4.0 milestone Apr 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants