Skip to content

Commit 4435b2a

Browse files
authored
[CAT-62] create python client for dataset user reporting (#108)
* Create user Metrics Reporting * Add @pastap 's work on pagination. Co-authored-by: @pastap
1 parent 45fa08a commit 4435b2a

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

74 files changed

+3571
-847
lines changed

docs/.buildinfo

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
# Sphinx build info version 1
22
# This file hashes the configuration used when building these files. When it is not found, a full rebuild will be done.
3-
config: d7b739f8a313db4ed3894e3221d4cf10
3+
config: c5cbe4a7624d7549079e7846d28d9da6
44
tags: 645f666f9bcd5a90fca523b33c5a78b7

docs/_sources/docextract_settings.rst.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -122,8 +122,8 @@ Force Render
122122

123123
Setting::
124124

125-
"force_render": True
126-
"force_render": False (default)
125+
"force_render": True (default since IPA 4.7.0)
126+
"force_render": False (default prior to IPA 4.7.0)
127127

128128
Force rendering of the document. Beware of increased computation cost for increased reliability of page rendering.
129129
Only use this setting if you know you’ve got a problem that requires it.

docs/_sources/examples.rst.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,3 +14,4 @@ Examples
1414
image-dataset-ex
1515
image-predictions-ex
1616
submission-ex
17+
user-metrics-ex

docs/_sources/index.rst.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ Reference
4040
exports
4141
filters
4242
graphql_queries
43+
user_metrics
4344

4445
**Types**
4546

@@ -50,3 +51,4 @@ Reference
5051
jobs-type
5152
model-group-type
5253
model-type
54+
user-metrics-types

docs/_sources/user-metrics-ex.rst.txt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
Fetching User Metrics
2+
***********************************************************
3+
4+
An example that illustrates how to fetch user metric data.
5+
6+
.. literalinclude:: ../examples/get-user-metrics.py
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
***********
2+
User Metrics Types
3+
***********
4+
5+
.. automodule:: indico.types.user_metrics
6+
.. autoclass:: indico.types.user_metrics.AppRoles
7+
.. autoclass:: indico.types.user_metrics.UserDatasets
8+
.. autoclass:: indico.types.user_metrics.UserSummaryCounts
9+
.. autoclass:: indico.types.user_metrics.UserSnapshot
10+
.. autoclass:: indico.types.user_metrics.UserSummary
11+
.. autoclass:: indico.types.user_metrics.DatasetRole
12+
.. autoclass:: indico.types.user_metrics.UserChangelog
13+
.. autoclass:: indico.types.user_metrics.UserChangelogReport

docs/_sources/user_metrics.rst.txt

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
*****************
2+
User Metrics
3+
*****************
4+
5+
.. autoclass:: indico.queries.usermetrics.GetUserSnapshots
6+
.. autoclass:: indico.queries.usermetrics.GetUserChangelog
7+
.. autoclass:: indico.queries.usermetrics.GetUserSummary
8+
.. autoclass:: indico.queries.usermetrics.GenerateChangelogReport
9+

docs/_sources/user_metrics_ex.rst.txt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
Fetching User Metrics
2+
***********************************************************
3+
4+
An example that illustrates how to fetch user metric data.
5+
6+
.. literalinclude:: ../examples/get-user-metrics.py
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
***********
2+
User Metrics Types
3+
***********
4+
5+
.. automodule:: indico.types.user_metrics
6+
.. autoclass:: indico.types.user_metrics.AppRoles
7+
.. autoclass:: indico.types.user_metrics.UserDatasets
8+
.. autoclass:: indico.types.user_metrics.UserSummaryCounts
9+
.. autoclass:: indico.types.user_metrics.UserSnapshot
10+
.. autoclass:: indico.types.user_metrics.UserSummary
11+
.. autoclass:: indico.types.user_metrics.DatasetRole
12+
.. autoclass:: indico.types.user_metrics.UserChangelog
13+
.. autoclass:: indico.types.user_metrics.UserChangelogReport

docs/_static/basic.css

Lines changed: 77 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ ul.search li a {
130130
font-weight: bold;
131131
}
132132

133-
ul.search li div.context {
133+
ul.search li p.context {
134134
color: #888;
135135
margin: 2px 0 0 30px;
136136
text-align: left;
@@ -277,25 +277,25 @@ p.rubric {
277277
font-weight: bold;
278278
}
279279

280-
img.align-left, .figure.align-left, object.align-left {
280+
img.align-left, figure.align-left, .figure.align-left, object.align-left {
281281
clear: left;
282282
float: left;
283283
margin-right: 1em;
284284
}
285285

286-
img.align-right, .figure.align-right, object.align-right {
286+
img.align-right, figure.align-right, .figure.align-right, object.align-right {
287287
clear: right;
288288
float: right;
289289
margin-left: 1em;
290290
}
291291

292-
img.align-center, .figure.align-center, object.align-center {
292+
img.align-center, figure.align-center, .figure.align-center, object.align-center {
293293
display: block;
294294
margin-left: auto;
295295
margin-right: auto;
296296
}
297297

298-
img.align-default, .figure.align-default {
298+
img.align-default, figure.align-default, .figure.align-default {
299299
display: block;
300300
margin-left: auto;
301301
margin-right: auto;
@@ -319,7 +319,8 @@ img.align-default, .figure.align-default {
319319

320320
/* -- sidebars -------------------------------------------------------------- */
321321

322-
div.sidebar {
322+
div.sidebar,
323+
aside.sidebar {
323324
margin: 0 0 0.5em 1em;
324325
border: 1px solid #ddb;
325326
padding: 7px;
@@ -377,12 +378,14 @@ div.body p.centered {
377378
/* -- content of sidebars/topics/admonitions -------------------------------- */
378379

379380
div.sidebar > :last-child,
381+
aside.sidebar > :last-child,
380382
div.topic > :last-child,
381383
div.admonition > :last-child {
382384
margin-bottom: 0;
383385
}
384386

385387
div.sidebar::after,
388+
aside.sidebar::after,
386389
div.topic::after,
387390
div.admonition::after,
388391
blockquote::after {
@@ -455,20 +458,22 @@ td > :last-child {
455458

456459
/* -- figures --------------------------------------------------------------- */
457460

458-
div.figure {
461+
div.figure, figure {
459462
margin: 0.5em;
460463
padding: 0.5em;
461464
}
462465

463-
div.figure p.caption {
466+
div.figure p.caption, figcaption {
464467
padding: 0.3em;
465468
}
466469

467-
div.figure p.caption span.caption-number {
470+
div.figure p.caption span.caption-number,
471+
figcaption span.caption-number {
468472
font-style: italic;
469473
}
470474

471-
div.figure p.caption span.caption-text {
475+
div.figure p.caption span.caption-text,
476+
figcaption span.caption-text {
472477
}
473478

474479
/* -- field list styles ----------------------------------------------------- */
@@ -503,6 +508,63 @@ table.hlist td {
503508
vertical-align: top;
504509
}
505510

511+
/* -- object description styles --------------------------------------------- */
512+
513+
.sig {
514+
font-family: 'Consolas', 'Menlo', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', monospace;
515+
}
516+
517+
.sig-name, code.descname {
518+
background-color: transparent;
519+
font-weight: bold;
520+
}
521+
522+
.sig-name {
523+
font-size: 1.1em;
524+
}
525+
526+
code.descname {
527+
font-size: 1.2em;
528+
}
529+
530+
.sig-prename, code.descclassname {
531+
background-color: transparent;
532+
}
533+
534+
.optional {
535+
font-size: 1.3em;
536+
}
537+
538+
.sig-paren {
539+
font-size: larger;
540+
}
541+
542+
.sig-param.n {
543+
font-style: italic;
544+
}
545+
546+
/* C++ specific styling */
547+
548+
.sig-inline.c-texpr,
549+
.sig-inline.cpp-texpr {
550+
font-family: unset;
551+
}
552+
553+
.sig.c .k, .sig.c .kt,
554+
.sig.cpp .k, .sig.cpp .kt {
555+
color: #0033B3;
556+
}
557+
558+
.sig.c .m,
559+
.sig.cpp .m {
560+
color: #1750EB;
561+
}
562+
563+
.sig.c .s, .sig.c .sc,
564+
.sig.cpp .s, .sig.cpp .sc {
565+
color: #067D17;
566+
}
567+
506568

507569
/* -- other body styles ----------------------------------------------------- */
508570

@@ -629,14 +691,6 @@ dl.glossary dt {
629691
font-size: 1.1em;
630692
}
631693

632-
.optional {
633-
font-size: 1.3em;
634-
}
635-
636-
.sig-paren {
637-
font-size: larger;
638-
}
639-
640694
.versionmodified {
641695
font-style: italic;
642696
}
@@ -766,7 +820,11 @@ div.code-block-caption code {
766820
table.highlighttable td.linenos,
767821
span.linenos,
768822
div.doctest > div.highlight span.gp { /* gp: Generic.Prompt */
769-
user-select: none;
823+
user-select: none;
824+
-webkit-user-select: text; /* Safari fallback only */
825+
-webkit-user-select: none; /* Chrome/Safari */
826+
-moz-user-select: none; /* Firefox */
827+
-ms-user-select: none; /* IE10+ */
770828
}
771829

772830
div.code-block-caption span.caption-number {
@@ -781,16 +839,6 @@ div.literal-block-wrapper {
781839
margin: 1em 0;
782840
}
783841

784-
code.descname {
785-
background-color: transparent;
786-
font-weight: bold;
787-
font-size: 1.2em;
788-
}
789-
790-
code.descclassname {
791-
background-color: transparent;
792-
}
793-
794842
code.xref, a code {
795843
background-color: transparent;
796844
font-weight: bold;

docs/_static/pygments.css

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
1+
pre { line-height: 125%; }
2+
td.linenos .normal { color: inherit; background-color: transparent; padding-left: 5px; padding-right: 5px; }
3+
span.linenos { color: inherit; background-color: transparent; padding-left: 5px; padding-right: 5px; }
4+
td.linenos .special { color: #000000; background-color: #ffffc0; padding-left: 5px; padding-right: 5px; }
5+
span.linenos.special { color: #000000; background-color: #ffffc0; padding-left: 5px; padding-right: 5px; }
16
.highlight .hll { background-color: #ffffcc }
2-
.highlight { background: #f8f8f8; }
7+
.highlight { background: #f8f8f8; }
38
.highlight .c { color: #408080; font-style: italic } /* Comment */
49
.highlight .err { border: 1px solid #FF0000 } /* Error */
510
.highlight .k { color: #008000; font-weight: bold } /* Keyword */

docs/_static/searchtools.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -509,7 +509,7 @@ var Search = {
509509
var excerpt = ((start > 0) ? '...' : '') +
510510
$.trim(text.substr(start, 240)) +
511511
((start + 240 - text.length) ? '...' : '');
512-
var rv = $('<div class="context"></div>').text(excerpt);
512+
var rv = $('<p class="context"></p>').text(excerpt);
513513
$.each(hlwords, function() {
514514
rv = rv.highlightText(this, 'highlighted');
515515
});

0 commit comments

Comments
 (0)