gazer 0.3.7 → 0.3.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (35) hide show
  1. checksums.yaml +4 -4
  2. data/.github/workflows/p3-issue-label.yml +21 -0
  3. data/.github/workflows/ruby-ci.yml +145 -2
  4. data/.github/workflows/triage-issue-label.yml +20 -0
  5. data/CHANGELOG.md +17 -0
  6. data/Gemfile.lock +1 -1
  7. data/examples/Dashboard_17_FAA_KPIs.json +687 -0
  8. data/examples/add_project.sh +151 -0
  9. data/lib/gzr/cli.rb +4 -3
  10. data/lib/gzr/commands/model/import.rb +18 -5
  11. data/lib/gzr/commands/model/set/cat.rb +60 -0
  12. data/lib/gzr/commands/model/set/import.rb +73 -0
  13. data/lib/gzr/commands/model/set/ls.rb +74 -0
  14. data/lib/gzr/commands/model/set/rm.rb +49 -0
  15. data/lib/gzr/commands/model/set.rb +97 -0
  16. data/lib/gzr/commands/model.rb +5 -0
  17. data/lib/gzr/commands/{permissions → permission}/ls.rb +3 -3
  18. data/lib/gzr/commands/permission/set/cat.rb +60 -0
  19. data/lib/gzr/commands/permission/set/import.rb +73 -0
  20. data/lib/gzr/commands/permission/set/ls.rb +78 -0
  21. data/lib/gzr/commands/permission/set/rm.rb +49 -0
  22. data/lib/gzr/commands/permission/set.rb +98 -0
  23. data/lib/gzr/commands/permission/tree.rb +71 -0
  24. data/lib/gzr/commands/{permissions.rb → permission.rb} +22 -6
  25. data/lib/gzr/commands/role/cat.rb +4 -3
  26. data/lib/gzr/commands/role/create.rb +51 -0
  27. data/lib/gzr/commands/role.rb +19 -1
  28. data/lib/gzr/commands/subcommandbase.rb +2 -2
  29. data/lib/gzr/modules/model/set.rb +123 -0
  30. data/lib/gzr/modules/model.rb +10 -0
  31. data/lib/gzr/modules/permission/set.rb +123 -0
  32. data/lib/gzr/modules/{permissions.rb → permission.rb} +1 -1
  33. data/lib/gzr/modules/role.rb +23 -0
  34. data/lib/gzr/version.rb +1 -1
  35. metadata +23 -5
@@ -0,0 +1,687 @@
1
+ {
2
+ "description": "",
3
+ "hidden": false,
4
+ "query_timezone": null,
5
+ "refresh_interval": null,
6
+ "title": "FAA KPIs",
7
+ "slug": "DdT8Pnsg6kAB63KqoqgCza",
8
+ "preferred_viewer": null,
9
+ "alert_sync_with_dashboard_filter_enabled": false,
10
+ "background_color": null,
11
+ "crossfilter_enabled": false,
12
+ "dashboard_elements": [
13
+ {
14
+ "body_text": null,
15
+ "dashboard_id": "17",
16
+ "id": "58",
17
+ "look": null,
18
+ "look_id": null,
19
+ "merge_result_id": null,
20
+ "note_display": null,
21
+ "note_state": null,
22
+ "note_text": null,
23
+ "query": {
24
+ "id": "138",
25
+ "view": "airports",
26
+ "fields": [
27
+ "airports.count"
28
+ ],
29
+ "pivots": null,
30
+ "fill_fields": null,
31
+ "filters": null,
32
+ "filter_expression": null,
33
+ "sorts": [
34
+
35
+ ],
36
+ "limit": "500",
37
+ "column_limit": "50",
38
+ "total": null,
39
+ "row_total": null,
40
+ "subtotals": null,
41
+ "vis_config": {
42
+ "custom_color_enabled": true,
43
+ "custom_color": "#239f23",
44
+ "show_single_value_title": true,
45
+ "show_comparison": false,
46
+ "comparison_type": "value",
47
+ "comparison_reverse_colors": false,
48
+ "show_comparison_label": true,
49
+ "show_view_names": true,
50
+ "show_row_numbers": true,
51
+ "truncate_column_names": false,
52
+ "hide_totals": false,
53
+ "hide_row_totals": false,
54
+ "table_theme": "editable",
55
+ "limit_displayed_rows": false,
56
+ "enable_conditional_formatting": false,
57
+ "conditional_formatting_include_totals": false,
58
+ "conditional_formatting_include_nulls": false,
59
+ "type": "single_value",
60
+ "series_types": {
61
+ },
62
+ "hidden_fields": [
63
+
64
+ ],
65
+ "y_axes": [
66
+
67
+ ]
68
+ },
69
+ "filter_config": null,
70
+ "visible_ui_sections": null,
71
+ "client_id": "TCBsruUX7essTBavT7aRXD",
72
+ "model": "aviation",
73
+ "dynamic_fields": null,
74
+ "query_timezone": null
75
+ },
76
+ "query_id": "138",
77
+ "refresh_interval": null,
78
+ "result_maker_id": "54",
79
+ "subtitle_text": null,
80
+ "title": "Total number of airport facilities in US",
81
+ "title_hidden": false,
82
+ "title_text": null,
83
+ "type": "vis",
84
+ "rich_content_json": null,
85
+ "extension_id": null,
86
+ "alerts": [
87
+
88
+ ]
89
+ },
90
+ {
91
+ "body_text": null,
92
+ "dashboard_id": "17",
93
+ "id": "59",
94
+ "look": null,
95
+ "look_id": null,
96
+ "merge_result_id": null,
97
+ "note_display": null,
98
+ "note_state": null,
99
+ "note_text": null,
100
+ "query": {
101
+ "id": "139",
102
+ "view": "airports",
103
+ "fields": [
104
+ "airports.average_elevation"
105
+ ],
106
+ "pivots": null,
107
+ "fill_fields": null,
108
+ "filters": null,
109
+ "filter_expression": null,
110
+ "sorts": [
111
+
112
+ ],
113
+ "limit": "500",
114
+ "column_limit": "50",
115
+ "total": null,
116
+ "row_total": null,
117
+ "subtotals": null,
118
+ "vis_config": {
119
+ "type": "single_value",
120
+ "custom_color_enabled": true,
121
+ "custom_color": "#841984",
122
+ "show_single_value_title": true,
123
+ "show_comparison": false,
124
+ "comparison_type": "value",
125
+ "comparison_reverse_colors": false,
126
+ "show_comparison_label": true,
127
+ "single_value_title": "Average Airport Elevation",
128
+ "hidden_fields": [
129
+
130
+ ],
131
+ "y_axes": [
132
+
133
+ ]
134
+ },
135
+ "filter_config": null,
136
+ "visible_ui_sections": null,
137
+ "client_id": "sX3WEVdUqMeRRt4xYIKWZT",
138
+ "model": "aviation",
139
+ "dynamic_fields": null,
140
+ "query_timezone": "America/Los_Angeles"
141
+ },
142
+ "query_id": "139",
143
+ "refresh_interval": null,
144
+ "result_maker_id": "55",
145
+ "subtitle_text": null,
146
+ "title": "Average Airport Elevation",
147
+ "title_hidden": false,
148
+ "title_text": null,
149
+ "type": "vis",
150
+ "rich_content_json": null,
151
+ "extension_id": null,
152
+ "alerts": [
153
+
154
+ ]
155
+ },
156
+ {
157
+ "body_text": null,
158
+ "dashboard_id": "17",
159
+ "id": "60",
160
+ "look": null,
161
+ "look_id": null,
162
+ "merge_result_id": null,
163
+ "note_display": null,
164
+ "note_state": null,
165
+ "note_text": null,
166
+ "query": {
167
+ "id": "140",
168
+ "view": "airports",
169
+ "fields": [
170
+ "airports.count",
171
+ "airports.state"
172
+ ],
173
+ "pivots": null,
174
+ "fill_fields": null,
175
+ "filters": null,
176
+ "filter_expression": null,
177
+ "sorts": [
178
+ "airports.count desc"
179
+ ],
180
+ "limit": "5",
181
+ "column_limit": "50",
182
+ "total": null,
183
+ "row_total": null,
184
+ "subtotals": null,
185
+ "vis_config": {
186
+ "stacking": "",
187
+ "show_value_labels": true,
188
+ "label_density": 25,
189
+ "legend_position": "center",
190
+ "x_axis_gridlines": false,
191
+ "y_axis_gridlines": true,
192
+ "show_view_names": true,
193
+ "limit_displayed_rows": false,
194
+ "y_axis_combined": true,
195
+ "show_y_axis_labels": true,
196
+ "show_y_axis_ticks": true,
197
+ "y_axis_tick_density": "default",
198
+ "y_axis_tick_density_custom": 5,
199
+ "show_x_axis_label": true,
200
+ "show_x_axis_ticks": true,
201
+ "x_axis_scale": "auto",
202
+ "y_axis_scale_mode": "linear",
203
+ "x_axis_reversed": false,
204
+ "y_axis_reversed": false,
205
+ "ordering": "none",
206
+ "show_null_labels": false,
207
+ "show_totals_labels": false,
208
+ "show_silhouette": false,
209
+ "totals_color": "#808080",
210
+ "type": "looker_column",
211
+ "map": "auto",
212
+ "map_projection": "",
213
+ "quantize_colors": false,
214
+ "series_types": {
215
+ },
216
+ "limit_displayed_rows_values": {
217
+ "show_hide": "show",
218
+ "first_last": "first",
219
+ "num_rows": "10"
220
+ },
221
+ "y_axes": [
222
+ {
223
+ "label": "Number of Airports",
224
+ "orientation": "left",
225
+ "series": [
226
+ {
227
+ "id": "airports.count",
228
+ "name": "Airports Count",
229
+ "axisId": "airports.count"
230
+ }
231
+ ],
232
+ "showLabels": true,
233
+ "showValues": true,
234
+ "unpinAxis": false,
235
+ "tickDensity": "default",
236
+ "tickDensityCustom": 8,
237
+ "type": "linear"
238
+ }
239
+ ],
240
+ "x_axis_label": "State",
241
+ "hidden_fields": [
242
+
243
+ ]
244
+ },
245
+ "filter_config": null,
246
+ "visible_ui_sections": null,
247
+ "client_id": "47uUmVNOmKSNiigru7sYv9",
248
+ "model": "aviation",
249
+ "dynamic_fields": null,
250
+ "query_timezone": "America/Los_Angeles"
251
+ },
252
+ "query_id": "140",
253
+ "refresh_interval": null,
254
+ "result_maker_id": "56",
255
+ "subtitle_text": null,
256
+ "title": "Top states with airports",
257
+ "title_hidden": false,
258
+ "title_text": null,
259
+ "type": "vis",
260
+ "rich_content_json": null,
261
+ "extension_id": null,
262
+ "alerts": [
263
+
264
+ ]
265
+ },
266
+ {
267
+ "body_text": null,
268
+ "dashboard_id": "17",
269
+ "id": "61",
270
+ "look": null,
271
+ "look_id": null,
272
+ "merge_result_id": null,
273
+ "note_display": null,
274
+ "note_state": null,
275
+ "note_text": null,
276
+ "query": {
277
+ "id": "141",
278
+ "view": "airports",
279
+ "fields": [
280
+ "airports.facility_type",
281
+ "airports.average_elevation",
282
+ "airports.count"
283
+ ],
284
+ "pivots": null,
285
+ "fill_fields": null,
286
+ "filters": null,
287
+ "filter_expression": null,
288
+ "sorts": [
289
+ "airports.average_elevation desc"
290
+ ],
291
+ "limit": "5",
292
+ "column_limit": "50",
293
+ "total": null,
294
+ "row_total": null,
295
+ "subtotals": null,
296
+ "vis_config": {
297
+ "stacking": "",
298
+ "show_value_labels": true,
299
+ "label_density": 25,
300
+ "legend_position": "center",
301
+ "x_axis_gridlines": false,
302
+ "y_axis_gridlines": true,
303
+ "show_view_names": true,
304
+ "limit_displayed_rows": false,
305
+ "y_axis_combined": true,
306
+ "show_y_axis_labels": true,
307
+ "show_y_axis_ticks": true,
308
+ "y_axis_tick_density": "default",
309
+ "y_axis_tick_density_custom": 5,
310
+ "show_x_axis_label": true,
311
+ "show_x_axis_ticks": true,
312
+ "x_axis_scale": "auto",
313
+ "y_axis_scale_mode": "linear",
314
+ "x_axis_reversed": false,
315
+ "y_axis_reversed": false,
316
+ "ordering": "none",
317
+ "show_null_labels": false,
318
+ "show_totals_labels": false,
319
+ "show_silhouette": false,
320
+ "totals_color": "#808080",
321
+ "type": "looker_bar",
322
+ "series_types": {
323
+ },
324
+ "limit_displayed_rows_values": {
325
+ "show_hide": "show",
326
+ "first_last": "first",
327
+ "num_rows": "10"
328
+ },
329
+ "y_axes": [
330
+ {
331
+ "label": null,
332
+ "orientation": "top",
333
+ "series": [
334
+ {
335
+ "id": "airports.count",
336
+ "name": "Airports Count",
337
+ "axisId": "airports.count"
338
+ }
339
+ ],
340
+ "showLabels": true,
341
+ "showValues": true,
342
+ "unpinAxis": false,
343
+ "tickDensity": "default",
344
+ "tickDensityCustom": 8,
345
+ "type": "linear"
346
+ },
347
+ {
348
+ "label": "Number of airports",
349
+ "orientation": "bottom",
350
+ "series": [
351
+ {
352
+ "id": "airports.average_elevation",
353
+ "name": "Airports Average Elevation",
354
+ "axisId": "airports.average_elevation"
355
+ }
356
+ ],
357
+ "showLabels": true,
358
+ "showValues": true,
359
+ "valueFormat": "",
360
+ "unpinAxis": false,
361
+ "tickDensity": "default",
362
+ "tickDensityCustom": 8,
363
+ "type": "linear"
364
+ }
365
+ ],
366
+ "x_axis_label": "Facility Type",
367
+ "hidden_fields": [
368
+
369
+ ]
370
+ },
371
+ "filter_config": null,
372
+ "visible_ui_sections": null,
373
+ "client_id": "ePYKdWwylnHenjMx3x2tg3",
374
+ "model": "aviation",
375
+ "dynamic_fields": null,
376
+ "query_timezone": null
377
+ },
378
+ "query_id": "141",
379
+ "refresh_interval": null,
380
+ "result_maker_id": "57",
381
+ "subtitle_text": null,
382
+ "title": "Top 5 airport facilities by average elevation",
383
+ "title_hidden": false,
384
+ "title_text": null,
385
+ "type": "vis",
386
+ "rich_content_json": null,
387
+ "extension_id": null,
388
+ "alerts": [
389
+
390
+ ]
391
+ },
392
+ {
393
+ "body_text": null,
394
+ "dashboard_id": "17",
395
+ "id": "68",
396
+ "look": {
397
+ "id": "6",
398
+ "title": "Average Elevation",
399
+ "user_id": "1",
400
+ "description": "Average Airport Elevation",
401
+ "is_run_on_load": true,
402
+ "query_id": "148",
403
+ "query": {
404
+ "id": "148",
405
+ "view": "airports",
406
+ "fields": [
407
+ "airports.average_elevation"
408
+ ],
409
+ "pivots": null,
410
+ "fill_fields": null,
411
+ "filters": null,
412
+ "filter_expression": null,
413
+ "sorts": [
414
+
415
+ ],
416
+ "limit": "500",
417
+ "column_limit": null,
418
+ "total": null,
419
+ "row_total": null,
420
+ "subtotals": null,
421
+ "vis_config": {
422
+ "custom_color_enabled": true,
423
+ "show_single_value_title": true,
424
+ "show_comparison": false,
425
+ "comparison_type": "value",
426
+ "comparison_reverse_colors": false,
427
+ "show_comparison_label": true,
428
+ "enable_conditional_formatting": false,
429
+ "conditional_formatting_include_totals": false,
430
+ "conditional_formatting_include_nulls": false,
431
+ "custom_color": "#e0e629",
432
+ "type": "single_value",
433
+ "defaults_version": 1,
434
+ "hidden_fields": [
435
+
436
+ ],
437
+ "y_axes": [
438
+
439
+ ]
440
+ },
441
+ "filter_config": {
442
+ },
443
+ "visible_ui_sections": null,
444
+ "client_id": "paGrX9Hy3le4Z3neIAxNsg",
445
+ "model": "aviation",
446
+ "dynamic_fields": null,
447
+ "query_timezone": null
448
+ },
449
+ "folder_id": "5",
450
+ "deleted": false,
451
+ "public": false
452
+ },
453
+ "look_id": "6",
454
+ "merge_result_id": null,
455
+ "note_display": null,
456
+ "note_state": null,
457
+ "note_text": null,
458
+ "query": null,
459
+ "query_id": null,
460
+ "refresh_interval": null,
461
+ "result_maker_id": "64",
462
+ "subtitle_text": null,
463
+ "title": null,
464
+ "title_hidden": false,
465
+ "title_text": null,
466
+ "type": "vis",
467
+ "rich_content_json": null,
468
+ "extension_id": null,
469
+ "alerts": [
470
+
471
+ ]
472
+ },
473
+ {
474
+ "body_text": null,
475
+ "dashboard_id": "17",
476
+ "id": "70",
477
+ "look": {
478
+ "id": "8",
479
+ "title": "Airports",
480
+ "user_id": "1",
481
+ "description": "",
482
+ "is_run_on_load": true,
483
+ "query_id": "150",
484
+ "query": {
485
+ "id": "150",
486
+ "view": "airports",
487
+ "fields": [
488
+ "airports.count"
489
+ ],
490
+ "pivots": null,
491
+ "fill_fields": null,
492
+ "filters": null,
493
+ "filter_expression": null,
494
+ "sorts": [
495
+
496
+ ],
497
+ "limit": "500",
498
+ "column_limit": null,
499
+ "total": null,
500
+ "row_total": null,
501
+ "subtotals": null,
502
+ "vis_config": {
503
+ "color_application": {
504
+ "collection_id": "b43731d5-dc87-4a8e-b807-635bef3948e7",
505
+ "palette_id": "fb7bb53e-b77b-4ab6-8274-9d420d3d73f3",
506
+ "collection_default": true,
507
+ "collection_label": "Boardwalk",
508
+ "palette_label": "Mixed categorical",
509
+ "palette_type": "Categorical",
510
+ "palette_colors": [
511
+ "#3EB0D5",
512
+ "#B1399E",
513
+ "#C2DD67",
514
+ "#592EC2",
515
+ "#4276BE",
516
+ "#72D16D",
517
+ "#FFD95F",
518
+ "#B32F37",
519
+ "#9174F0",
520
+ "#E57947",
521
+ "#75E2E2",
522
+ "#FBB555"
523
+ ]
524
+ },
525
+ "custom_color_enabled": true,
526
+ "custom_color": "#B1399E",
527
+ "show_single_value_title": true,
528
+ "show_comparison": false,
529
+ "comparison_type": "value",
530
+ "comparison_reverse_colors": false,
531
+ "show_comparison_label": true,
532
+ "type": "single_value",
533
+ "hidden_fields": [
534
+
535
+ ],
536
+ "y_axes": [
537
+
538
+ ]
539
+ },
540
+ "filter_config": null,
541
+ "visible_ui_sections": null,
542
+ "client_id": "4gUuOieukytTiuWigEBn7C",
543
+ "model": "aviation",
544
+ "dynamic_fields": null,
545
+ "query_timezone": "America/New_York"
546
+ },
547
+ "folder_id": "5",
548
+ "deleted": false,
549
+ "public": false
550
+ },
551
+ "look_id": "8",
552
+ "merge_result_id": null,
553
+ "note_display": null,
554
+ "note_state": null,
555
+ "note_text": null,
556
+ "query": null,
557
+ "query_id": null,
558
+ "refresh_interval": null,
559
+ "result_maker_id": "66",
560
+ "subtitle_text": null,
561
+ "title": null,
562
+ "title_hidden": false,
563
+ "title_text": null,
564
+ "type": "vis",
565
+ "rich_content_json": null,
566
+ "extension_id": null,
567
+ "alerts": [
568
+
569
+ ]
570
+ }
571
+ ],
572
+ "dashboard_filters": [
573
+ {
574
+ "name": "Date",
575
+ "title": "Date",
576
+ "type": "date_filter",
577
+ "explore": "",
578
+ "dimension": "",
579
+ "row": 0,
580
+ "allow_multiple_values": true,
581
+ "required": false,
582
+ "ui_config": null,
583
+ "model": "",
584
+ "listens_to_filters": [
585
+
586
+ ],
587
+ "default_value": "1 years"
588
+ },
589
+ {
590
+ "name": "State",
591
+ "title": "State",
592
+ "type": "field_filter",
593
+ "explore": "flights",
594
+ "dimension": "aircraft.state",
595
+ "row": 1,
596
+ "allow_multiple_values": true,
597
+ "required": false,
598
+ "ui_config": null,
599
+ "model": "aviation",
600
+ "listens_to_filters": [
601
+
602
+ ],
603
+ "default_value": ""
604
+ }
605
+ ],
606
+ "dashboard_layouts": [
607
+ {
608
+ "id": "17",
609
+ "dashboard_id": "17",
610
+ "type": "newspaper",
611
+ "active": true,
612
+ "column_width": null,
613
+ "width": null,
614
+ "dashboard_layout_components": [
615
+ {
616
+ "id": "58",
617
+ "dashboard_layout_id": "17",
618
+ "dashboard_element_id": "58",
619
+ "row": 0,
620
+ "column": 0,
621
+ "width": 8,
622
+ "height": 6
623
+ },
624
+ {
625
+ "id": "59",
626
+ "dashboard_layout_id": "17",
627
+ "dashboard_element_id": "59",
628
+ "row": 0,
629
+ "column": 8,
630
+ "width": 8,
631
+ "height": 6
632
+ },
633
+ {
634
+ "id": "60",
635
+ "dashboard_layout_id": "17",
636
+ "dashboard_element_id": "60",
637
+ "row": 0,
638
+ "column": 16,
639
+ "width": 8,
640
+ "height": 6
641
+ },
642
+ {
643
+ "id": "61",
644
+ "dashboard_layout_id": "17",
645
+ "dashboard_element_id": "61",
646
+ "row": 6,
647
+ "column": 0,
648
+ "width": 24,
649
+ "height": 12
650
+ },
651
+ {
652
+ "id": "68",
653
+ "dashboard_layout_id": "17",
654
+ "dashboard_element_id": "68",
655
+ "row": 18,
656
+ "column": 8,
657
+ "width": 8,
658
+ "height": 6
659
+ },
660
+ {
661
+ "id": "70",
662
+ "dashboard_layout_id": "17",
663
+ "dashboard_element_id": "70",
664
+ "row": 18,
665
+ "column": 0,
666
+ "width": 8,
667
+ "height": 6
668
+ }
669
+ ]
670
+ }
671
+ ],
672
+ "enable_viz_full_screen": true,
673
+ "filters_bar_collapsed": false,
674
+ "filters_location_top": true,
675
+ "load_configuration": "cache_run",
676
+ "lookml_link_id": null,
677
+ "show_filters_bar": null,
678
+ "show_title": null,
679
+ "text_tile_text_color": null,
680
+ "tile_background_color": null,
681
+ "tile_text_color": null,
682
+ "title_color": null,
683
+ "folder_id": "5",
684
+ "id": "17",
685
+ "deleted": false,
686
+ "appearance": null
687
+ }