Custom Query (2152 matches)

Filters
 
Or
 
  
 
Columns

Show under each result:


Results (610 - 612 of 2152)

Ticket Resolution Summary Owner Reporter
#937 fixed Record download stats for resources (extension) sebbacon rgrp

Reported by rgrp, 3 years ago.

Description

As a User (especially as a Package Owner/Maintainer?) I want to know how many times a resource has been downloaded (and when).

So let's record download stats (as in clicks on the link for a resource).

Implementation

Old Spec (do it in CKAN)

  • Record info of form: resource id (or url?), timestamp
  • Do this via javascript capturing of onclick event talking to an api
  • API: /api/resource/{id}/download
    • POST to increment (how do we stop spamming -- could use a nonce setup with a random string set on each page load for the js)
    • GET to get data back { total: X, day_count: [ [yyyy-mm-dd, count], ... ] }

Questions

  • Do we record ip addresses (to handle de-botting etc)?
  • Do we count preview clicks as well?
#971 duplicate Support middleware as a plugin sebbacon sebbacon

Reported by sebbacon, 3 years ago.

Description

I need to completely munge the rendered data coming from the app. There's not currently a plugin hook for this, where I get access to the entire environment. The most generic form of plugin would be WSGI Middleware. I propose adding an IMiddleware plugin hook for inserting abritrary middleware via our plugin system.

#972 wontfix Merge 'extras' into main package dict rather than having separate key sebbacon rgrp

Reported by rgrp, 3 years ago.

Description

Rather than have a separate 'extras' key all the extras fields should be consolidated into the main package dict when presenting the package internally or e.g. via the API.

Why? Extras are really just an artefact of our internal storage model. Clients of the system (both internal and external) should just see a set of key/values with no distinction between extras and non-extras.

Issues

  • Possible breaking change to the API (could enforce backwards compatibility by keepings extras for the time being)

Possible subticket of forms refactoring: #961

Note: See TracQuery for help on using queries.