openrightsgroup / blocked-org-uk

Template front-end code, markup, style-sheets, images and other assets for the Censorship Monitoring Project (blocked.org.uk)
https://www.blocked.org.uk/
GNU General Public License v3.0
13 stars 5 forks source link

Stats page reworking #388

Closed dantheta closed 5 years ago

dantheta commented 5 years ago
dantheta commented 5 years ago

The new stats page is up now. I've added a couple of notes to the google doc with minor suggestions/queries, and I've left placeholders in the task list above for the still pending tasks.

The frontend doesn't have a generic "list URLs that match this filter" page at the moment. We could add a tabular one as a new page under /stats/, or we could use the same layout and target page as site search results (with unblock links, etc).

dantheta commented 5 years ago

I'll leave this issue labelled "in progress", since there are still some items to complete, but it's also ready for review.

JimKillock commented 5 years ago

Thanks Dan, in general this looks very good to me. The links would be very helpful, if they can be prioritised, as people will be curious as to what the ISPs have failed to unblock, or where they made other mistakes.

I will raise a separate ticket about displaying information about reports to ISPs and responses from ISPs; we had intended to get to a point where we are publishing ISP reponse emails (where not private) as part of the report project.

JimKillock commented 5 years ago

For me, the link counts in this ticket are the most urgent item prior to launch, other than any missing explanatory text fields.

dantheta commented 5 years ago

Link counts in progress. We should be able to extend /reported-sites to accept a category and status filter.

dantheta commented 5 years ago

Phew, that took some doing.

The cached figures on the stats page have already started to drift from the live results a bit. We should probably look at regenerating those weekly.

JimKillock commented 5 years ago

Thanks Dan!

There seems a few inconsistencies between the list figures and things that are blocked or not; this may be caching but it may also be categorisation issues. We'll want to hunt down what's happening there. (note to @edjw and @alexhaydock )

JimKillock commented 5 years ago

Checking this: https://www.blocked.org.uk/reported-sites/BT?policy=false&state=sent&year=2018

which is the link for BT's still blocked mistakes last year, it seems to be listing sites that are blocked and unblocked, and many more than the 18 sites claimed on our stats page.

https://www.blocked.org.uk/stats

So I think a bug?

dantheta commented 5 years ago

Yep, a bit of a weird one though.

I've improved the row selection; paging still has some problems. If you prefer, I can remove the links from the stats page ISP responses table until I've got it working better against the test database.

dantheta commented 5 years ago

The paging issues are fixed now.