Re: [tor-bugs] #25264 [Metrics/Website]: Decide what graph to display when there's no data to graph

2018-04-04 Thread Tor Bug Tracker & Wiki
#25264: Decide what graph to display when there's no data to graph
-+
 Reporter:  karsten  |  Owner:  iwakeh
 Type:  enhancement  | Status:  closed
 Priority:  High |  Milestone:
Component:  Metrics/Website  |Version:
 Severity:  Normal   | Resolution:  fixed
 Keywords:   |  Actual Points:
Parent ID:   | Points:
 Reviewer:   |Sponsor:
-+

Comment (by karsten):

 Oops. Done!

--
Ticket URL: 
Tor Bug Tracker & Wiki 
The Tor Project: anonymity online
___
tor-bugs mailing list
tor-bugs@lists.torproject.org
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-bugs

Re: [tor-bugs] #25264 [Metrics/Website]: Decide what graph to display when there's no data to graph

2018-04-04 Thread Tor Bug Tracker & Wiki
#25264: Decide what graph to display when there's no data to graph
-+
 Reporter:  karsten  |  Owner:  iwakeh
 Type:  enhancement  | Status:  closed
 Priority:  High |  Milestone:
Component:  Metrics/Website  |Version:
 Severity:  Normal   | Resolution:  fixed
 Keywords:   |  Actual Points:
Parent ID:   | Points:
 Reviewer:   |Sponsor:
-+

Comment (by iwakeh):

 Could you remove the cached csvs from the server?  metrics.torproject.org
 /userstats-relay-
 country.csv?start=2018-01-04=2018-04-04=all=off is
 still 'no-data'.

--
Ticket URL: 
Tor Bug Tracker & Wiki 
The Tor Project: anonymity online
___
tor-bugs mailing list
tor-bugs@lists.torproject.org
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-bugs

Re: [tor-bugs] #25264 [Metrics/Website]: Decide what graph to display when there's no data to graph

2018-04-04 Thread Tor Bug Tracker & Wiki
#25264: Decide what graph to display when there's no data to graph
-+
 Reporter:  karsten  |  Owner:  iwakeh
 Type:  enhancement  | Status:  closed
 Priority:  High |  Milestone:
Component:  Metrics/Website  |Version:
 Severity:  Normal   | Resolution:  fixed
 Keywords:   |  Actual Points:
Parent ID:   | Points:
 Reviewer:   |Sponsor:
-+
Changes (by karsten):

 * status:  needs_review => closed
 * resolution:   => fixed


Comment:

 Patch commit looks good. Merged and deployed. This solves the issue. Good
 bug hunt! Closing. Thanks!

--
Ticket URL: 
Tor Bug Tracker & Wiki 
The Tor Project: anonymity online
___
tor-bugs mailing list
tor-bugs@lists.torproject.org
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-bugs

Re: [tor-bugs] #25264 [Metrics/Website]: Decide what graph to display when there's no data to graph

2018-04-04 Thread Tor Bug Tracker & Wiki
#25264: Decide what graph to display when there's no data to graph
-+--
 Reporter:  karsten  |  Owner:  iwakeh
 Type:  enhancement  | Status:  needs_review
 Priority:  High |  Milestone:
Component:  Metrics/Website  |Version:
 Severity:  Normal   | Resolution:
 Keywords:   |  Actual Points:
Parent ID:   | Points:
 Reviewer:   |Sponsor:
-+--
Changes (by iwakeh):

 * status:  accepted => needs_review


Comment:

 Please review [https://gitweb.torproject.org/user/iwakeh/metrics-
 web.git/commit/?h=missing-csv-data this patch commit].

 That was a strange error situation.  The call list created in java wasn't
 proper, but worked for graphs and failed for csvs.  That's why there was
 only no-data in csv files, because there was an R error.
 Now, the behavior for graphs is the same as before, but csv files always
 contain there column headers, i.e., the no-data message will not appear.
 It only shows up when there is an error.

--
Ticket URL: 
Tor Bug Tracker & Wiki 
The Tor Project: anonymity online
___
tor-bugs mailing list
tor-bugs@lists.torproject.org
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-bugs

Re: [tor-bugs] #25264 [Metrics/Website]: Decide what graph to display when there's no data to graph

2018-04-04 Thread Tor Bug Tracker & Wiki
#25264: Decide what graph to display when there's no data to graph
-+--
 Reporter:  karsten  |  Owner:  iwakeh
 Type:  enhancement  | Status:  accepted
 Priority:  High |  Milestone:
Component:  Metrics/Website  |Version:
 Severity:  Normal   | Resolution:
 Keywords:   |  Actual Points:
Parent ID:   | Points:
 Reviewer:   |Sponsor:
-+--
Changes (by iwakeh):

 * status:  reopened => accepted


--
Ticket URL: 
Tor Bug Tracker & Wiki 
The Tor Project: anonymity online
___
tor-bugs mailing list
tor-bugs@lists.torproject.org
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-bugs

Re: [tor-bugs] #25264 [Metrics/Website]: Decide what graph to display when there's no data to graph

2018-04-03 Thread Tor Bug Tracker & Wiki
#25264: Decide what graph to display when there's no data to graph
-+--
 Reporter:  karsten  |  Owner:  iwakeh
 Type:  enhancement  | Status:  reopened
 Priority:  High |  Milestone:
Component:  Metrics/Website  |Version:
 Severity:  Normal   | Resolution:
 Keywords:   |  Actual Points:
Parent ID:   | Points:
 Reviewer:   |Sponsor:
-+--

Comment (by karsten):

 I just restarted Rserve. No change, I think. Hmm.

--
Ticket URL: 
Tor Bug Tracker & Wiki 
The Tor Project: anonymity online
___
tor-bugs mailing list
tor-bugs@lists.torproject.org
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-bugs

Re: [tor-bugs] #25264 [Metrics/Website]: Decide what graph to display when there's no data to graph

2018-04-03 Thread Tor Bug Tracker & Wiki
#25264: Decide what graph to display when there's no data to graph
-+--
 Reporter:  karsten  |  Owner:  iwakeh
 Type:  enhancement  | Status:  reopened
 Priority:  High |  Milestone:
Component:  Metrics/Website  |Version:
 Severity:  Normal   | Resolution:
 Keywords:   |  Actual Points:
Parent ID:   | Points:
 Reviewer:   |Sponsor:
-+--

Comment (by iwakeh):

 There are errors in rserve.log, unfortunately w/o timestamp.  It is not
 clear from the log, if R was restarted successfully and when ...
 Maybe, try to restart making sure all R servers are down first?

--
Ticket URL: 
Tor Bug Tracker & Wiki 
The Tor Project: anonymity online
___
tor-bugs mailing list
tor-bugs@lists.torproject.org
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-bugs

Re: [tor-bugs] #25264 [Metrics/Website]: Decide what graph to display when there's no data to graph

2018-04-03 Thread Tor Bug Tracker & Wiki
#25264: Decide what graph to display when there's no data to graph
-+--
 Reporter:  karsten  |  Owner:  iwakeh
 Type:  enhancement  | Status:  reopened
 Priority:  High |  Milestone:
Component:  Metrics/Website  |Version:
 Severity:  Normal   | Resolution:
 Keywords:   |  Actual Points:
Parent ID:   | Points:
 Reviewer:   |Sponsor:
-+--

Comment (by iwakeh):

 Errr, no, they only contain the "No data message".

--
Ticket URL: 
Tor Bug Tracker & Wiki 
The Tor Project: anonymity online
___
tor-bugs mailing list
tor-bugs@lists.torproject.org
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-bugs

Re: [tor-bugs] #25264 [Metrics/Website]: Decide what graph to display when there's no data to graph

2018-04-03 Thread Tor Bug Tracker & Wiki
#25264: Decide what graph to display when there's no data to graph
-+--
 Reporter:  karsten  |  Owner:  iwakeh
 Type:  enhancement  | Status:  reopened
 Priority:  High |  Milestone:
Component:  Metrics/Website  |Version:
 Severity:  Normal   | Resolution:
 Keywords:   |  Actual Points:
Parent ID:   | Points:
 Reviewer:   |Sponsor:
-+--

Comment (by iwakeh):

 These files don't seem to be on the server.  Could there be a reason that
 they don't get written?  Permissions (R runs as metrics) and space seem
 fine.

--
Ticket URL: 
Tor Bug Tracker & Wiki 
The Tor Project: anonymity online
___
tor-bugs mailing list
tor-bugs@lists.torproject.org
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-bugs

Re: [tor-bugs] #25264 [Metrics/Website]: Decide what graph to display when there's no data to graph

2018-04-03 Thread Tor Bug Tracker & Wiki
#25264: Decide what graph to display when there's no data to graph
-+--
 Reporter:  karsten  |  Owner:  iwakeh
 Type:  enhancement  | Status:  reopened
 Priority:  High |  Milestone:
Component:  Metrics/Website  |Version:
 Severity:  Normal   | Resolution:
 Keywords:   |  Actual Points:
Parent ID:   | Points:
 Reviewer:   |Sponsor:
-+--
Changes (by karsten):

 * priority:  Low => High
 * status:  closed => reopened
 * resolution:  fixed =>


Comment:

 Hmm, looks like we broke the CSV links. Any link that I open now says "No
 data available for the given parameters." The code looks right to me. Any
 idea what's wrong?

--
Ticket URL: 
Tor Bug Tracker & Wiki 
The Tor Project: anonymity online
___
tor-bugs mailing list
tor-bugs@lists.torproject.org
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-bugs

Re: [tor-bugs] #25264 [Metrics/Website]: Decide what graph to display when there's no data to graph

2018-03-28 Thread Tor Bug Tracker & Wiki
#25264: Decide what graph to display when there's no data to graph
-+
 Reporter:  karsten  |  Owner:  iwakeh
 Type:  enhancement  | Status:  closed
 Priority:  Low  |  Milestone:
Component:  Metrics/Website  |Version:
 Severity:  Normal   | Resolution:  fixed
 Keywords:   |  Actual Points:
Parent ID:   | Points:
 Reviewer:   |Sponsor:
-+
Changes (by karsten):

 * status:  needs_review => closed
 * resolution:   => fixed


Comment:

 Looks good. Merged and deployed. Closing. Thanks!

--
Ticket URL: 
Tor Bug Tracker & Wiki 
The Tor Project: anonymity online
___
tor-bugs mailing list
tor-bugs@lists.torproject.org
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-bugs

Re: [tor-bugs] #25264 [Metrics/Website]: Decide what graph to display when there's no data to graph

2018-03-28 Thread Tor Bug Tracker & Wiki
#25264: Decide what graph to display when there's no data to graph
-+--
 Reporter:  karsten  |  Owner:  iwakeh
 Type:  enhancement  | Status:  needs_review
 Priority:  Low  |  Milestone:
Component:  Metrics/Website  |Version:
 Severity:  Normal   | Resolution:
 Keywords:   |  Actual Points:
Parent ID:   | Points:
 Reviewer:   |Sponsor:
-+--
Changes (by iwakeh):

 * status:  accepted => needs_review


Comment:

 I used the attached pictures and pdf.

 Please review [https://gitweb.torproject.org/user/iwakeh/metrics-
 web.git/log/?h=task-25264 this patch branch], which contains one commit
 fixing the usage of StringBuilder.append and a second one implementing the
 wanted functionality.
 The implementation actually catches R errors and makes the respective no-
 data file available instead.  Java can only guess if an R problem
 occurred.  Thus, every call for R-graph generation is now wrapped in an R
 function `robust_call` that creates the no-data objects in case of an
 error.  (`String function = ...` was moved down in order to avoid a
 checkstyle complaint).

--
Ticket URL: 
Tor Bug Tracker & Wiki 
The Tor Project: anonymity online
___
tor-bugs mailing list
tor-bugs@lists.torproject.org
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-bugs

Re: [tor-bugs] #25264 [Metrics/Website]: Decide what graph to display when there's no data to graph

2018-03-27 Thread Tor Bug Tracker & Wiki
#25264: Decide what graph to display when there's no data to graph
-+--
 Reporter:  karsten  |  Owner:  iwakeh
 Type:  enhancement  | Status:  accepted
 Priority:  Low  |  Milestone:
Component:  Metrics/Website  |Version:
 Severity:  Normal   | Resolution:
 Keywords:   |  Actual Points:
Parent ID:   | Points:
 Reviewer:   |Sponsor:
-+--
Changes (by iwakeh):

 * status:  assigned => accepted


--
Ticket URL: 
Tor Bug Tracker & Wiki 
The Tor Project: anonymity online
___
tor-bugs mailing list
tor-bugs@lists.torproject.org
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-bugs

Re: [tor-bugs] #25264 [Metrics/Website]: Decide what graph to display when there's no data to graph

2018-03-20 Thread Tor Bug Tracker & Wiki
#25264: Decide what graph to display when there's no data to graph
-+--
 Reporter:  karsten  |  Owner:  iwakeh
 Type:  enhancement  | Status:  assigned
 Priority:  Low  |  Milestone:
Component:  Metrics/Website  |Version:
 Severity:  Normal   | Resolution:
 Keywords:   |  Actual Points:
Parent ID:   | Points:
 Reviewer:   |Sponsor:
-+--
Changes (by karsten):

 * status:  accepted => assigned
 * owner:  karsten => iwakeh


Comment:

 Oh! No, I can give it back. I didn't know you were still planning to write
 this code.

 Please find [https://gitweb.torproject.org/karsten/metrics-
 web.git/commit/?h=task-25264=fe160e2864431685a8d0a2c6e8153b352d99152a
 temp commit fe160e2 in my task-25264 branch] with the code I wrote so far.

--
Ticket URL: 
Tor Bug Tracker & Wiki 
The Tor Project: anonymity online
___
tor-bugs mailing list
tor-bugs@lists.torproject.org
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-bugs

Re: [tor-bugs] #25264 [Metrics/Website]: Decide what graph to display when there's no data to graph

2018-03-20 Thread Tor Bug Tracker & Wiki
#25264: Decide what graph to display when there's no data to graph
-+--
 Reporter:  karsten  |  Owner:  karsten
 Type:  enhancement  | Status:  accepted
 Priority:  Low  |  Milestone:
Component:  Metrics/Website  |Version:
 Severity:  Normal   | Resolution:
 Keywords:   |  Actual Points:
Parent ID:   | Points:
 Reviewer:   |Sponsor:
-+--

Comment (by iwakeh):

 Hmm, ok, had this down on the list, b/c of the low prio.
 I can add some of the ideas in comments 5 to 7 when reviewing.

--
Ticket URL: 
Tor Bug Tracker & Wiki 
The Tor Project: anonymity online
___
tor-bugs mailing list
tor-bugs@lists.torproject.org
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-bugs

Re: [tor-bugs] #25264 [Metrics/Website]: Decide what graph to display when there's no data to graph

2018-03-20 Thread Tor Bug Tracker & Wiki
#25264: Decide what graph to display when there's no data to graph
-+--
 Reporter:  karsten  |  Owner:  karsten
 Type:  enhancement  | Status:  accepted
 Priority:  Low  |  Milestone:
Component:  Metrics/Website  |Version:
 Severity:  Normal   | Resolution:
 Keywords:   |  Actual Points:
Parent ID:   | Points:
 Reviewer:   |Sponsor:
-+--
Changes (by karsten):

 * owner:  iwakeh => karsten


Comment:

 I'll write some code.

--
Ticket URL: 
Tor Bug Tracker & Wiki 
The Tor Project: anonymity online
___
tor-bugs mailing list
tor-bugs@lists.torproject.org
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-bugs

Re: [tor-bugs] #25264 [Metrics/Website]: Decide what graph to display when there's no data to graph

2018-03-19 Thread Tor Bug Tracker & Wiki
#25264: Decide what graph to display when there's no data to graph
-+--
 Reporter:  karsten  |  Owner:  iwakeh
 Type:  enhancement  | Status:  accepted
 Priority:  Low  |  Milestone:
Component:  Metrics/Website  |Version:
 Severity:  Normal   | Resolution:
 Keywords:   |  Actual Points:
Parent ID:   | Points:
 Reviewer:   |Sponsor:
-+--

Comment (by karsten):

 New PNG and PDF look good! Thanks!

 Next step: write the code to include these files if no graph can be
 generated.

--
Ticket URL: 
Tor Bug Tracker & Wiki 
The Tor Project: anonymity online
___
tor-bugs mailing list
tor-bugs@lists.torproject.org
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-bugs

Re: [tor-bugs] #25264 [Metrics/Website]: Decide what graph to display when there's no data to graph

2018-03-19 Thread Tor Bug Tracker & Wiki
#25264: Decide what graph to display when there's no data to graph
-+--
 Reporter:  karsten  |  Owner:  iwakeh
 Type:  enhancement  | Status:  accepted
 Priority:  Low  |  Milestone:
Component:  Metrics/Website  |Version:
 Severity:  Normal   | Resolution:
 Keywords:   |  Actual Points:
Parent ID:   | Points:
 Reviewer:   |Sponsor:
-+--
Changes (by irl):

 * Attachment "no-data-available.tar.xz" added.

 XCF, PNG and PDF, resized to the correct dimensions this time

--
Ticket URL: 
Tor Bug Tracker & Wiki 
The Tor Project: anonymity online
___
tor-bugs mailing list
tor-bugs@lists.torproject.org
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-bugs

Re: [tor-bugs] #25264 [Metrics/Website]: Decide what graph to display when there's no data to graph

2018-03-19 Thread Tor Bug Tracker & Wiki
#25264: Decide what graph to display when there's no data to graph
-+--
 Reporter:  karsten  |  Owner:  iwakeh
 Type:  enhancement  | Status:  accepted
 Priority:  Low  |  Milestone:
Component:  Metrics/Website  |Version:
 Severity:  Normal   | Resolution:
 Keywords:   |  Actual Points:
Parent ID:   | Points:
 Reviewer:   |Sponsor:
-+--

Comment (by karsten):

 Yes, I think it looks better in gray.

 Do you mind cutting off a few pixels at the top to make it 728 by ''455''
 (not 728 by 479)? That's the dimensions we're using for all graphs.

 And can you provide a PDF file with the same dimensions?

 If you want to grab this ticket and write the code, feel free to do it.

--
Ticket URL: 
Tor Bug Tracker & Wiki 
The Tor Project: anonymity online
___
tor-bugs mailing list
tor-bugs@lists.torproject.org
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-bugs

Re: [tor-bugs] #25264 [Metrics/Website]: Decide what graph to display when there's no data to graph

2018-03-19 Thread Tor Bug Tracker & Wiki
#25264: Decide what graph to display when there's no data to graph
-+--
 Reporter:  karsten  |  Owner:  iwakeh
 Type:  enhancement  | Status:  accepted
 Priority:  Low  |  Milestone:
Component:  Metrics/Website  |Version:
 Severity:  Normal   | Resolution:
 Keywords:   |  Actual Points:
Parent ID:   | Points:
 Reviewer:   |Sponsor:
-+--

Comment (by irl):

 https://styleguide.torproject.org/visuals/#colors has the approved colors.
 I could also make SVG, PDF, etc. versions if that is useful. If we do
 include a new image to be used, we should also update Relay Search at the
 same time, I can make a patch for that quite easily and then both could be
 deployed together.

 The white version of the Tor logo comes from
 https://github.com/TheTorProject/tor-media/tree/master/Tor%20Logo if you'd
 like to have a go at making your own version.

--
Ticket URL: 
Tor Bug Tracker & Wiki 
The Tor Project: anonymity online
___
tor-bugs mailing list
tor-bugs@lists.torproject.org
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-bugs

Re: [tor-bugs] #25264 [Metrics/Website]: Decide what graph to display when there's no data to graph

2018-03-19 Thread Tor Bug Tracker & Wiki
#25264: Decide what graph to display when there's no data to graph
-+--
 Reporter:  karsten  |  Owner:  iwakeh
 Type:  enhancement  | Status:  accepted
 Priority:  Low  |  Milestone:
Component:  Metrics/Website  |Version:
 Severity:  Normal   | Resolution:
 Keywords:   |  Actual Points:
Parent ID:   | Points:
 Reviewer:   |Sponsor:
-+--
Changes (by irl):

 * Attachment "nodata.2.png" added.

 Style guide compliant no data available image - grey and resized

--
Ticket URL: 
Tor Bug Tracker & Wiki 
The Tor Project: anonymity online
___
tor-bugs mailing list
tor-bugs@lists.torproject.org
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-bugs

Re: [tor-bugs] #25264 [Metrics/Website]: Decide what graph to display when there's no data to graph

2018-03-19 Thread Tor Bug Tracker & Wiki
#25264: Decide what graph to display when there's no data to graph
-+--
 Reporter:  karsten  |  Owner:  iwakeh
 Type:  enhancement  | Status:  accepted
 Priority:  Low  |  Milestone:
Component:  Metrics/Website  |Version:
 Severity:  Normal   | Resolution:
 Keywords:   |  Actual Points:
Parent ID:   | Points:
 Reviewer:   |Sponsor:
-+--

Comment (by karsten):

 Ah, you mean the image should be consistent across Tor Metrics pages? Good
 point.

 But does it have to be purple? Or can we use the same image in some style-
 guide-compatible gray? And can we have it in 728 x 455?

--
Ticket URL: 
Tor Bug Tracker & Wiki 
The Tor Project: anonymity online
___
tor-bugs mailing list
tor-bugs@lists.torproject.org
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-bugs

Re: [tor-bugs] #25264 [Metrics/Website]: Decide what graph to display when there's no data to graph

2018-03-18 Thread Tor Bug Tracker & Wiki
#25264: Decide what graph to display when there's no data to graph
-+--
 Reporter:  karsten  |  Owner:  iwakeh
 Type:  enhancement  | Status:  accepted
 Priority:  Low  |  Milestone:
Component:  Metrics/Website  |Version:
 Severity:  Normal   | Resolution:
 Keywords:   |  Actual Points:
Parent ID:   | Points:
 Reviewer:   |Sponsor:
-+--
Changes (by irl):

 * Attachment "nodata.png" added.

 Style guide compliant no data available image

--
Ticket URL: 
Tor Bug Tracker & Wiki 
The Tor Project: anonymity online
___
tor-bugs mailing list
tor-bugs@lists.torproject.org
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-bugs

Re: [tor-bugs] #25264 [Metrics/Website]: Decide what graph to display when there's no data to graph

2018-03-18 Thread Tor Bug Tracker & Wiki
#25264: Decide what graph to display when there's no data to graph
-+--
 Reporter:  karsten  |  Owner:  iwakeh
 Type:  enhancement  | Status:  accepted
 Priority:  Low  |  Milestone:
Component:  Metrics/Website  |Version:
 Severity:  Normal   | Resolution:
 Keywords:   |  Actual Points:
Parent ID:   | Points:
 Reviewer:   |Sponsor:
-+--

Comment (by irl):

 "No Data Available" should be consistent. This should follow the Style
 Guide too.

 Relay Search currently does not follow the Style Guide:
 https://metrics.torproject.org/rs/img/no-data-available.png

--
Ticket URL: 
Tor Bug Tracker & Wiki 
The Tor Project: anonymity online
___
tor-bugs mailing list
tor-bugs@lists.torproject.org
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-bugs

Re: [tor-bugs] #25264 [Metrics/Website]: Decide what graph to display when there's no data to graph

2018-03-12 Thread Tor Bug Tracker & Wiki
#25264: Decide what graph to display when there's no data to graph
-+--
 Reporter:  karsten  |  Owner:  iwakeh
 Type:  enhancement  | Status:  accepted
 Priority:  Low  |  Milestone:
Component:  Metrics/Website  |Version:
 Severity:  Normal   | Resolution:
 Keywords:   |  Actual Points:
Parent ID:   | Points:
 Reviewer:   |Sponsor:
-+--

Comment (by karsten):

 I see. It's a possible use case. But I'd say let's focus on our main use
 case first, which is users looking at the website. And if somebody links
 to our PDF/PNG/CSV directly, and these return "No Data Available", it
 should be up to them to also provide details to find out why that is the
 case.

--
Ticket URL: 
Tor Bug Tracker & Wiki 
The Tor Project: anonymity online
___
tor-bugs mailing list
tor-bugs@lists.torproject.org
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-bugs

Re: [tor-bugs] #25264 [Metrics/Website]: Decide what graph to display when there's no data to graph

2018-03-12 Thread Tor Bug Tracker & Wiki
#25264: Decide what graph to display when there's no data to graph
-+--
 Reporter:  karsten  |  Owner:  iwakeh
 Type:  enhancement  | Status:  accepted
 Priority:  Low  |  Milestone:
Component:  Metrics/Website  |Version:
 Severity:  Normal   | Resolution:
 Keywords:   |  Actual Points:
Parent ID:   | Points:
 Reviewer:   |Sponsor:
-+--
Changes (by iwakeh):

 * owner:  metrics-team => iwakeh
 * status:  new => accepted


Comment:

 The use case I'm thinking of:
 Some people retrieve only the pdf/png/csv using the links provided.  If
 such a file is downloaded a URL in there with all parameters and the no-
 data-info makes clear what happened.
 On the web page we wouldn't need to display a graph w/o dots just the
 text, b/c the parameters are visible still.

 Other than that code might be easier to discuss.  I'll provide a patch.

--
Ticket URL: 
Tor Bug Tracker & Wiki 
The Tor Project: anonymity online
___
tor-bugs mailing list
tor-bugs@lists.torproject.org
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-bugs

Re: [tor-bugs] #25264 [Metrics/Website]: Decide what graph to display when there's no data to graph

2018-03-12 Thread Tor Bug Tracker & Wiki
#25264: Decide what graph to display when there's no data to graph
-+--
 Reporter:  karsten  |  Owner:  metrics-team
 Type:  enhancement  | Status:  new
 Priority:  Low  |  Milestone:
Component:  Metrics/Website  |Version:
 Severity:  Normal   | Resolution:
 Keywords:   |  Actual Points:
Parent ID:   | Points:
 Reviewer:   |Sponsor:
-+--

Comment (by karsten):

 Huh, I'm afraid I don't follow. Do you mind writing this patch?

 I'm also not clear where you'd want to include parameters in the pnd or
 pdf. Do you mean we should generate a custom "No Data Available" graph
 that displays the chosen parameters? If so, why? (Maybe this will be
 clearer with a patch, too.)

--
Ticket URL: 
Tor Bug Tracker & Wiki 
The Tor Project: anonymity online
___
tor-bugs mailing list
tor-bugs@lists.torproject.org
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-bugs

Re: [tor-bugs] #25264 [Metrics/Website]: Decide what graph to display when there's no data to graph

2018-03-12 Thread Tor Bug Tracker & Wiki
#25264: Decide what graph to display when there's no data to graph
-+--
 Reporter:  karsten  |  Owner:  metrics-team
 Type:  enhancement  | Status:  new
 Priority:  Low  |  Milestone:
Component:  Metrics/Website  |Version:
 Severity:  Normal   | Resolution:
 Keywords:   |  Actual Points:
Parent ID:   | Points:
 Reviewer:   |Sponsor:
-+--

Comment (by iwakeh):

 Replying to [comment:3 karsten]:
 > Replying to [comment:2 iwakeh]:
 > > For avoiding the 500 server error when trying to access the png (as
 reported in detail in #25468) an empty graph/png stating 'no data
 available for this parameter choice' should be generated.
 >
 > Sounds good. We'll also need such a static file in the PDF format. I'll
 create placeholders using R/ggplot2 in a bit. We just need to write the
 code to put them in.
 >
 > > Currently, the corresponding csv only contains the header.  Maybe,
 also add a comment here too in case no data is available.
 >
 > Sounds good, too. Want to suggest a text? I can put it in then.
 >
 > > It should be avoided to call R if there is no data available.
 >
 > Well, we need to call R to find out whether there's data available for
 the requested period of time. Or what did you mean?

 The java code currently returns the `SC_INTERNAL_SERVER_ERROR`.  This is
 decided by the properties of the RObject received.  As RObject is our code
 it should always be available in order to avoid the null check.
 In case, the R code doesn't give a result or fails the RObject should
 'know', i.e., a method needs to be added, e.g., `boolean error()` for any
 unforeseeable error w/o any file returned (triggers error message)
 otherwise (in case of error()==false) it returns the wanted file or the
 'no-data' version.

 Regarding the text:

Unfortunately there is no data available for the chosen parameters.

 Is fine for all and we should include the parameters chosen into the
 response, e.g., in the pdf, csv, png.

--
Ticket URL: 
Tor Bug Tracker & Wiki 
The Tor Project: anonymity online
___
tor-bugs mailing list
tor-bugs@lists.torproject.org
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-bugs

Re: [tor-bugs] #25264 [Metrics/Website]: Decide what graph to display when there's no data to graph

2018-03-12 Thread Tor Bug Tracker & Wiki
#25264: Decide what graph to display when there's no data to graph
-+--
 Reporter:  karsten  |  Owner:  metrics-team
 Type:  enhancement  | Status:  new
 Priority:  Low  |  Milestone:
Component:  Metrics/Website  |Version:
 Severity:  Normal   | Resolution:
 Keywords:   |  Actual Points:
Parent ID:   | Points:
 Reviewer:   |Sponsor:
-+--

Comment (by karsten):

 Replying to [comment:3 karsten]:
 > Replying to [comment:2 iwakeh]:
 > > For avoiding the 500 server error when trying to access the png (as
 reported in detail in #25468) an empty graph/png stating 'no data
 available for this parameter choice' should be generated.
 >
 > Sounds good. We'll also need such a static file in the PDF format. I'll
 create placeholders using R/ggplot2 in a bit. We just need to write the
 code to put them in.

 Attached. I generated these two files with the following code:

 {{{
 library(ggplot2)
 library(dplyr)
 library(tidyr)

 data.frame(x = c(0, NA), y = c(0, NA)) %>%
   filter(x != 0) %>%
   ggplot(aes(x = x, y = y)) +
   scale_x_continuous("") +
   scale_y_continuous("") +
   labs(caption = "The Tor Project - https://metrics.torproject.org/;) +
   theme(plot.margin = margin(5.5, 11, 5.5, 5.5),
 plot.title = element_text(hjust = 0.5, margin = margin(b = 11), size =
 36),
 panel.background = element_rect(fill = NA)) +
   ggtitle("\n\n\n\nNo Data Available")
 ggsave(filename = "no-data-available.png", width = 8, height = 5, dpi =
 150)
 ggsave(filename = "no-data-available.pdf", width = 8, height = 5, dpi =
 150)
 }}}

 I can also write the code that returns these files, unless you'd like to
 do that.

--
Ticket URL: 
Tor Bug Tracker & Wiki 
The Tor Project: anonymity online
___
tor-bugs mailing list
tor-bugs@lists.torproject.org
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-bugs

Re: [tor-bugs] #25264 [Metrics/Website]: Decide what graph to display when there's no data to graph

2018-03-12 Thread Tor Bug Tracker & Wiki
#25264: Decide what graph to display when there's no data to graph
-+--
 Reporter:  karsten  |  Owner:  metrics-team
 Type:  enhancement  | Status:  new
 Priority:  Low  |  Milestone:
Component:  Metrics/Website  |Version:
 Severity:  Normal   | Resolution:
 Keywords:   |  Actual Points:
Parent ID:   | Points:
 Reviewer:   |Sponsor:
-+--
Changes (by karsten):

 * Attachment "no-data-available.png" added.


--
Ticket URL: 
Tor Bug Tracker & Wiki 
The Tor Project: anonymity online
___
tor-bugs mailing list
tor-bugs@lists.torproject.org
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-bugs

Re: [tor-bugs] #25264 [Metrics/Website]: Decide what graph to display when there's no data to graph

2018-03-12 Thread Tor Bug Tracker & Wiki
#25264: Decide what graph to display when there's no data to graph
-+--
 Reporter:  karsten  |  Owner:  metrics-team
 Type:  enhancement  | Status:  new
 Priority:  Low  |  Milestone:
Component:  Metrics/Website  |Version:
 Severity:  Normal   | Resolution:
 Keywords:   |  Actual Points:
Parent ID:   | Points:
 Reviewer:   |Sponsor:
-+--
Changes (by karsten):

 * Attachment "no-data-available.pdf" added.


--
Ticket URL: 
Tor Bug Tracker & Wiki 
The Tor Project: anonymity online
___
tor-bugs mailing list
tor-bugs@lists.torproject.org
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-bugs

Re: [tor-bugs] #25264 [Metrics/Website]: Decide what graph to display when there's no data to graph

2018-03-12 Thread Tor Bug Tracker & Wiki
#25264: Decide what graph to display when there's no data to graph
-+--
 Reporter:  karsten  |  Owner:  metrics-team
 Type:  enhancement  | Status:  new
 Priority:  Low  |  Milestone:
Component:  Metrics/Website  |Version:
 Severity:  Normal   | Resolution:
 Keywords:   |  Actual Points:
Parent ID:   | Points:
 Reviewer:   |Sponsor:
-+--

Comment (by karsten):

 Replying to [comment:2 iwakeh]:
 > For avoiding the 500 server error when trying to access the png (as
 reported in detail in #25468) an empty graph/png stating 'no data
 available for this parameter choice' should be generated.

 Sounds good. We'll also need such a static file in the PDF format. I'll
 create placeholders using R/ggplot2 in a bit. We just need to write the
 code to put them in.

 > Currently, the corresponding csv only contains the header.  Maybe, also
 add a comment here too in case no data is available.

 Sounds good, too. Want to suggest a text? I can put it in then.

 > It should be avoided to call R if there is no data available.

 Well, we need to call R to find out whether there's data available for the
 requested period of time. Or what did you mean?

--
Ticket URL: 
Tor Bug Tracker & Wiki 
The Tor Project: anonymity online
___
tor-bugs mailing list
tor-bugs@lists.torproject.org
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-bugs

Re: [tor-bugs] #25264 [Metrics/Website]: Decide what graph to display when there's no data to graph

2018-03-12 Thread Tor Bug Tracker & Wiki
#25264: Decide what graph to display when there's no data to graph
-+--
 Reporter:  karsten  |  Owner:  metrics-team
 Type:  enhancement  | Status:  new
 Priority:  Low  |  Milestone:
Component:  Metrics/Website  |Version:
 Severity:  Normal   | Resolution:
 Keywords:   |  Actual Points:
Parent ID:   | Points:
 Reviewer:   |Sponsor:
-+--

Comment (by iwakeh):

 For avoiding the 500 server error when trying to access the png (as
 reported in detail in #25468) an empty graph/png stating 'no data
 available for this parameter choice' should be generated.  Currently, the
 corresponding csv only contains the header.  Maybe, also add a comment
 here too in case no data is available.  It should be avoided to call R if
 there is no data available.

--
Ticket URL: 
Tor Bug Tracker & Wiki 
The Tor Project: anonymity online
___
tor-bugs mailing list
tor-bugs@lists.torproject.org
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-bugs

Re: [tor-bugs] #25264 [Metrics/Website]: Decide what graph to display when there's no data to graph

2018-02-15 Thread Tor Bug Tracker & Wiki
#25264: Decide what graph to display when there's no data to graph
-+--
 Reporter:  karsten  |  Owner:  metrics-team
 Type:  enhancement  | Status:  new
 Priority:  Low  |  Milestone:
Component:  Metrics/Website  |Version:
 Severity:  Normal   | Resolution:
 Keywords:   |  Actual Points:
Parent ID:   | Points:
 Reviewer:   |Sponsor:
-+--
Changes (by karsten):

 * priority:  Medium => Low


Comment:

 This issue isn't new, and the current situation is not as bad. Setting
 priority to low.

--
Ticket URL: 
Tor Bug Tracker & Wiki 
The Tor Project: anonymity online
___
tor-bugs mailing list
tor-bugs@lists.torproject.org
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-bugs

[tor-bugs] #25264 [Metrics/Website]: Decide what graph to display when there's no data to graph

2018-02-15 Thread Tor Bug Tracker & Wiki
#25264: Decide what graph to display when there's no data to graph
-+--
 Reporter:  karsten  |  Owner:  metrics-team
 Type:  enhancement  | Status:  new
 Priority:  Medium   |  Milestone:
Component:  Metrics/Website  |Version:
 Severity:  Normal   |   Keywords:
Actual Points:   |  Parent ID:
   Points:   |   Reviewer:
  Sponsor:   |
-+--
 While looking through the Rserve logs, I found that we sometimes attempt
 to graph data that cannot be graphed in a reasonable way. Examples:
  - Data from the CSV file ends on 2018-02-13. We try to graph 2018-02-13
 to 2018-02-14. A line needs at least 2 points, so we're showing an almost
 empty graph.
  - Data from the CSV file ends on 2018-02-13. We try to graph 2018-02-14
 to 2018-02-15. We don't have a single data point to graph, so we're not
 showing anything at all.

 I could imagine we do the following things, if we can't display a single
 data point or line segment:
  - Display a "No Data Available" placeholder like Relay Search.
- Note that we might need this for other cases, too, when users pass
 parameters that we cannot process.
- We might as well not display anything, which is what we do right now.
 Might be less usable, though.
  - Display an empty graph with all requested dates on the x axis and no
 data points.
- Note that if we want to do this, we need to decide when to "trim" the
 graph to the available dates and when to show all requested dates from
 start to end. Example: Try to draw a graph from 2000-01-01 to 2001-01-01,
 and then try to draw another graph from 2000-01-01 to 2018-01-01. Should
 both graphs display the full requested time period, or should just the
 second graph be trimmed to available data?

 Thoughts?

--
Ticket URL: 
Tor Bug Tracker & Wiki 
The Tor Project: anonymity online
___
tor-bugs mailing list
tor-bugs@lists.torproject.org
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-bugs