qa_server 7.2.0 → 7.5.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/.rubocop_fixme.yml +6 -0
- data/.travis.yml +4 -5
- data/CHANGELOG.md +38 -0
- data/Rakefile +1 -1
- data/app/assets/stylesheets/qa_server/_check-status.scss +36 -0
- data/app/cache_processors/concerns/qa_server/cache_keys.rb +0 -5
- data/app/cache_processors/qa_server/cache_expiry_service.rb +13 -8
- data/app/cache_processors/qa_server/job_id_cache.rb +29 -0
- data/app/cache_processors/qa_server/performance_cache.rb +34 -34
- data/app/cache_processors/qa_server/performance_day_graph_cache.rb +27 -0
- data/app/cache_processors/qa_server/performance_month_graph_cache.rb +27 -0
- data/app/cache_processors/qa_server/performance_year_graph_cache.rb +27 -0
- data/app/cache_processors/qa_server/scenario_history_cache.rb +7 -7
- data/app/cache_processors/qa_server/scenario_history_graph_cache.rb +12 -17
- data/app/cache_processors/qa_server/scenario_run_cache.rb +8 -8
- data/app/cache_processors/qa_server/scenario_run_failures_cache.rb +7 -7
- data/app/cache_processors/qa_server/scenario_run_summary_cache.rb +7 -7
- data/app/controllers/concerns/qa_server/authority_validation_behavior.rb +49 -44
- data/app/controllers/qa_server/check_status_controller.rb +92 -22
- data/app/controllers/qa_server/fetch_controller.rb +36 -36
- data/app/controllers/qa_server/monitor_status_controller.rb +105 -105
- data/app/jobs/qa_server/history_graph_job.rb +28 -0
- data/app/jobs/qa_server/monitor_tests_job.rb +19 -39
- data/app/jobs/qa_server/performance_day_graph_job.rb +45 -0
- data/app/jobs/qa_server/performance_month_graph_job.rb +45 -0
- data/app/jobs/qa_server/performance_per_byte_job.rb +85 -0
- data/app/jobs/qa_server/performance_year_graph_job.rb +45 -0
- data/app/loggers/qa_server/scenario_logger.rb +74 -4
- data/app/models/concerns/qa_server/performance_history_data_keys.rb +8 -0
- data/app/models/qa_server/authority_scenario.rb +4 -4
- data/app/models/qa_server/authority_status.rb +2 -2
- data/app/models/qa_server/authority_status_failure.rb +1 -1
- data/app/models/qa_server/performance_history.rb +2 -2
- data/app/models/qa_server/scenario_run_history.rb +52 -52
- data/app/models/qa_server/scenario_run_registry.rb +2 -2
- data/app/models/qa_server/scenarios.rb +26 -26
- data/app/models/qa_server/search_scenario.rb +18 -13
- data/app/models/qa_server/term_scenario.rb +29 -29
- data/app/prepends/prepended_linked_data/find_term.rb +40 -40
- data/app/prepends/prepended_linked_data/search_query.rb +36 -36
- data/app/prepends/prepended_rdf/rdf_graph.rb +7 -7
- data/app/presenters/concerns/qa_server/monitor_status/performance_datatable_behavior.rb +32 -32
- data/app/presenters/concerns/qa_server/monitor_status/performance_graph_behavior.rb +64 -64
- data/app/presenters/qa_server/check_status_presenter.rb +63 -7
- data/app/services/concerns/qa_server/gruff_graph.rb +16 -16
- data/app/services/qa_server/authority_loader_service.rb +14 -14
- data/app/services/qa_server/authority_validator_service.rb +1 -0
- data/app/services/qa_server/database_migrator.rb +14 -14
- data/app/services/qa_server/history_graphing_service.rb +30 -30
- data/app/services/qa_server/performance_calculator_service.rb +80 -80
- data/app/services/qa_server/performance_datatable_service.rb +35 -35
- data/app/services/qa_server/performance_graph_data_service.rb +28 -28
- data/app/services/qa_server/performance_graphing_service.rb +58 -58
- data/app/services/qa_server/performance_per_byte_calculator_service.rb +88 -0
- data/app/services/qa_server/performance_per_byte_data_service.rb +41 -0
- data/app/services/qa_server/scenarios_loader_service.rb +1 -1
- data/app/services/qa_server/time_period_service.rb +21 -21
- data/app/validators/qa_server/scenario_validator.rb +99 -87
- data/app/validators/qa_server/search_scenario_validator.rb +67 -61
- data/app/validators/qa_server/term_scenario_validator.rb +20 -15
- data/app/views/qa_server/check_status/index.html.erb +120 -24
- data/config/i18n-tasks.yml +133 -0
- data/config/locales/qa_server.en.yml +15 -0
- data/lib/generators/qa_server/assets_generator.rb +4 -4
- data/lib/generators/qa_server/templates/config/authorities/linked_data/cerl_ld4l_cache.json +2 -2
- data/lib/generators/qa_server/templates/config/authorities/linked_data/getty_aat_ld4l_cache.json +62 -1
- data/lib/generators/qa_server/templates/config/authorities/linked_data/getty_tgn_ld4l_cache.json +28 -4
- data/lib/generators/qa_server/templates/config/authorities/linked_data/isni_ld4l_cache.json +90 -0
- data/lib/generators/qa_server/templates/config/authorities/linked_data/ligatus_ld4l_cache.json +133 -0
- data/lib/generators/qa_server/templates/config/authorities/linked_data/locnames_rwo2_ld4l_cache.json +248 -0
- data/lib/generators/qa_server/templates/config/authorities/linked_data/locnames_rwo3_ld4l_cache.json +248 -0
- data/lib/generators/qa_server/templates/config/authorities/linked_data/locvocabs_ld4l_cache.json +117 -0
- data/lib/generators/qa_server/templates/config/authorities/linked_data/mesh_nlm_ld4l_cache.json +135 -3
- data/lib/generators/qa_server/templates/config/authorities/linked_data/oclcfast_direct.json +1 -0
- data/lib/generators/qa_server/templates/config/authorities/linked_data/oclcfast_ld4l_cache.json +1 -4
- data/lib/generators/qa_server/templates/config/authorities/linked_data/scenarios/agrovoc_direct_validation.yml +31 -0
- data/lib/generators/qa_server/templates/config/authorities/linked_data/scenarios/agrovoc_ld4l_cache_validation.yml +31 -0
- data/lib/generators/qa_server/templates/config/authorities/linked_data/scenarios/cerl_ld4l_cache_validation.yml +23 -11
- data/lib/generators/qa_server/templates/config/authorities/linked_data/scenarios/dbpedia_ld4l_cache_validation.yml +33 -0
- data/lib/generators/qa_server/templates/config/authorities/linked_data/scenarios/geonames_direct_validation.yml +35 -0
- data/lib/generators/qa_server/templates/config/authorities/linked_data/scenarios/geonames_ld4l_cache_validation.yml +58 -5
- data/lib/generators/qa_server/templates/config/authorities/linked_data/scenarios/getty_aat_ld4l_cache_validation.yml +256 -0
- data/lib/generators/qa_server/templates/config/authorities/linked_data/scenarios/getty_tgn_ld4l_cache_validation.yml +35 -1
- data/lib/generators/qa_server/templates/config/authorities/linked_data/scenarios/getty_ulan_ld4l_cache_validation.yml +37 -0
- data/lib/generators/qa_server/templates/config/authorities/linked_data/scenarios/isni_ld4l_cache_validation.yml +10 -0
- data/lib/generators/qa_server/templates/config/authorities/linked_data/scenarios/ligatus_ld4l_cache_validation.yml +36 -0
- data/lib/generators/qa_server/templates/config/authorities/linked_data/scenarios/locdemographics_ld4l_cache_validation.yml +73 -44
- data/lib/generators/qa_server/templates/config/authorities/linked_data/scenarios/locgenres_ld4l_cache_validation.yml +31 -0
- data/lib/generators/qa_server/templates/config/authorities/linked_data/scenarios/locnames_ld4l_cache_validation.yml +71 -0
- data/lib/generators/qa_server/templates/config/authorities/linked_data/scenarios/locnames_rwo_ld4l_cache_validation.yml +70 -2
- data/lib/generators/qa_server/templates/config/authorities/linked_data/scenarios/locperformance_ld4l_cache_validation.yml +6 -0
- data/lib/generators/qa_server/templates/config/authorities/linked_data/scenarios/locsubjects_ld4l_cache_validation.yml +32 -0
- data/lib/generators/qa_server/templates/config/authorities/linked_data/scenarios/locvocabs_ld4l_cache_validation.yml +184 -0
- data/lib/generators/qa_server/templates/config/authorities/linked_data/scenarios/mesh_nlm_ld4l_cache_validation.yml +51 -1
- data/lib/generators/qa_server/templates/config/authorities/linked_data/scenarios/nalt_ld4l_cache_validation.yml +37 -0
- data/lib/generators/qa_server/templates/config/authorities/linked_data/scenarios/oclc_fast_validation.yml +71 -5
- data/lib/generators/qa_server/templates/config/authorities/linked_data/scenarios/oclcfast_direct_validation.yml +66 -1
- data/lib/generators/qa_server/templates/config/authorities/linked_data/scenarios/oclcfast_ld4l_cache_validation.yml +57 -0
- data/lib/generators/qa_server/templates/config/authorities/linked_data/scenarios/rda_registry_ld4l_cache_validation.yml +310 -0
- data/lib/qa_server/configuration.rb +28 -24
- data/lib/qa_server/version.rb +1 -1
- data/qa_server.gemspec +2 -1
- data/spec/feature/accuracy_spec.rb +32 -0
- data/spec/i18n_spec.rb +36 -0
- data/spec/spec_helper.rb +4 -0
- metadata +46 -12
- data/app/cache_processors/qa_server/performance_daily_graph_cache.rb +0 -60
- data/app/cache_processors/qa_server/performance_hourly_graph_cache.rb +0 -65
- data/app/cache_processors/qa_server/performance_monthly_graph_cache.rb +0 -60
@@ -2,6 +2,9 @@
|
|
2
2
|
authority:
|
3
3
|
service: ld4l_cache
|
4
4
|
search:
|
5
|
+
#------------------
|
6
|
+
# Connection tests
|
7
|
+
#------------------
|
5
8
|
-
|
6
9
|
query: 'mark twain'
|
7
10
|
-
|
@@ -25,6 +28,60 @@ search:
|
|
25
28
|
-
|
26
29
|
query: 'mark twain'
|
27
30
|
subauth: work
|
31
|
+
#------------------
|
32
|
+
# Accuracy tests
|
33
|
+
#------------------
|
34
|
+
-
|
35
|
+
pending: true
|
36
|
+
query: Tralee & Dingle Railway
|
37
|
+
subject_uri: "http://id.worldcat.org/fast/1733583"
|
38
|
+
position: 3
|
39
|
+
replacements:
|
40
|
+
maxRecords: '5'
|
41
|
+
-
|
42
|
+
query: Sleep-overs
|
43
|
+
subauth: concept
|
44
|
+
subject_uri: "http://id.worldcat.org/fast/1120873"
|
45
|
+
position: 5
|
46
|
+
replacements:
|
47
|
+
maxRecords: '10'
|
48
|
+
-
|
49
|
+
query: People's International Tribunal on the Rights of Indigenous Hawaiians
|
50
|
+
subauth: event
|
51
|
+
subject_uri: "http://id.worldcat.org/fast/1410299"
|
52
|
+
position: 3
|
53
|
+
replacements:
|
54
|
+
maxRecords: '8'
|
55
|
+
-
|
56
|
+
query: University of Chicago Library
|
57
|
+
subauth: organization
|
58
|
+
subject_uri: "http://id.worldcat.org/fast/539173"
|
59
|
+
position: 5
|
60
|
+
replacements:
|
61
|
+
maxRecords: '10'
|
62
|
+
-
|
63
|
+
query: Taylor, Charles Hollis
|
64
|
+
subauth: person
|
65
|
+
subject_uri: "http://id.worldcat.org/fast/1616125"
|
66
|
+
position: 15
|
67
|
+
replacements:
|
68
|
+
maxRecords: '20'
|
69
|
+
-
|
70
|
+
query: Sjælland
|
71
|
+
subauth: place
|
72
|
+
result_size: 190
|
73
|
+
subject_uri: "http://id.worldcat.org/fast/1243881"
|
74
|
+
position: 5
|
75
|
+
replacements:
|
76
|
+
maxRecords: '10'
|
77
|
+
-
|
78
|
+
query: Scream
|
79
|
+
subauth: work
|
80
|
+
subject_uri: "http://id.worldcat.org/fast/1358031"
|
81
|
+
position: 5
|
82
|
+
replacements:
|
83
|
+
maxRecords: '10'
|
84
|
+
|
28
85
|
term:
|
29
86
|
-
|
30
87
|
identifier: 'http://id.worldcat.org/fast/1914919'
|
@@ -3,6 +3,9 @@ authority:
|
|
3
3
|
service: ld4l_cache
|
4
4
|
context: true
|
5
5
|
search:
|
6
|
+
#------------------
|
7
|
+
# Connection tests
|
8
|
+
#------------------
|
6
9
|
-
|
7
10
|
query: full
|
8
11
|
subauth: aspect_ratio
|
@@ -253,3 +256,310 @@ search:
|
|
253
256
|
query: laser
|
254
257
|
subauth: video_format
|
255
258
|
result_size: 130
|
259
|
+
#------------------
|
260
|
+
# Accuracy tests
|
261
|
+
#------------------
|
262
|
+
-
|
263
|
+
query: full
|
264
|
+
subauth: aspect_ratio
|
265
|
+
position: 3
|
266
|
+
subject_uri: "http://rdaregistry.info/termList/AspectRatio/1001"
|
267
|
+
replacements:
|
268
|
+
maxRecords: '20'
|
269
|
+
-
|
270
|
+
query: librettos
|
271
|
+
subauth: collective_title
|
272
|
+
position: 3
|
273
|
+
subject_uri: "http://rdaregistry.info/termList/CollTitle/1010"
|
274
|
+
replacements:
|
275
|
+
maxRecords: '20'
|
276
|
+
-
|
277
|
+
query: coat of arms
|
278
|
+
subauth: illustrative_content
|
279
|
+
position: 3
|
280
|
+
subject_uri: "http://rdaregistry.info/termList/IllusContent/1001"
|
281
|
+
replacements:
|
282
|
+
maxRecords: '20'
|
283
|
+
-
|
284
|
+
query: multipart
|
285
|
+
subauth: mode_of_issuance
|
286
|
+
position: 3
|
287
|
+
subject_uri: "http://rdaregistry.info/termList/ModeIssue/1002"
|
288
|
+
replacements:
|
289
|
+
maxRecords: '20'
|
290
|
+
-
|
291
|
+
query: tonic sol-fa
|
292
|
+
subauth: form_of_musical_notation
|
293
|
+
position: 3
|
294
|
+
subject_uri: "http://rdaregistry.info/termList/MusNotation/1009"
|
295
|
+
replacements:
|
296
|
+
maxRecords: '20'
|
297
|
+
-
|
298
|
+
query: jigsaw puzzle
|
299
|
+
subauth: carrier_extent_unit
|
300
|
+
position: 3
|
301
|
+
subject_uri: "http://rdaregistry.info/termList/RDACarrierEU/1017"
|
302
|
+
replacements:
|
303
|
+
maxRecords: '20'
|
304
|
+
-
|
305
|
+
query: online
|
306
|
+
subauth: carrier_type
|
307
|
+
position: 3
|
308
|
+
subject_uri: "http://rdaregistry.info/termList/RDACarrierType/1018"
|
309
|
+
replacements:
|
310
|
+
maxRecords: '20'
|
311
|
+
-
|
312
|
+
query: vector
|
313
|
+
subauth: cartographic_data_type
|
314
|
+
position: 3
|
315
|
+
subject_uri: "http://rdaregistry.info/termList/RDACartoDT/1002"
|
316
|
+
replacements:
|
317
|
+
maxRecords: '20'
|
318
|
+
-
|
319
|
+
pending: true
|
320
|
+
query: polychrome
|
321
|
+
subauth: colour_content
|
322
|
+
position: 3
|
323
|
+
subject_uri: "http://rdaregistry.info/termList/RDAColourContent/1003"
|
324
|
+
replacements:
|
325
|
+
maxRecords: '20'
|
326
|
+
-
|
327
|
+
query: image
|
328
|
+
subauth: content_type
|
329
|
+
position: 8
|
330
|
+
subject_uri: "http://rdaregistry.info/termList/RDAContentType/1014"
|
331
|
+
replacements:
|
332
|
+
maxRecords: '20'
|
333
|
+
-
|
334
|
+
query: mother
|
335
|
+
subauth: generation
|
336
|
+
position: 3
|
337
|
+
subject_uri: "http://rdaregistry.info/termList/RDAGeneration/1008"
|
338
|
+
replacements:
|
339
|
+
maxRecords: '20'
|
340
|
+
-
|
341
|
+
query: paper
|
342
|
+
subauth: material
|
343
|
+
position: 3
|
344
|
+
subject_uri: "http://rdaregistry.info/termList/RDAMaterial/1025"
|
345
|
+
replacements:
|
346
|
+
maxRecords: '20'
|
347
|
+
-
|
348
|
+
query: audio
|
349
|
+
subauth: media_type
|
350
|
+
position: 3
|
351
|
+
subject_uri: "http://rdaregistry.info/termList/RDAMediaType/1001"
|
352
|
+
replacements:
|
353
|
+
maxRecords: '20'
|
354
|
+
-
|
355
|
+
query: mixed
|
356
|
+
subauth: polarity
|
357
|
+
position: 3
|
358
|
+
subject_uri: "http://rdaregistry.info/termList/RDAPolarity/1003"
|
359
|
+
replacements:
|
360
|
+
maxRecords: '20'
|
361
|
+
-
|
362
|
+
query: title
|
363
|
+
subauth: recording_sources
|
364
|
+
position: 7
|
365
|
+
subject_uri: "http://rdaregistry.info/termList/RDARecordingSources/1003"
|
366
|
+
replacements:
|
367
|
+
maxRecords: '20'
|
368
|
+
-
|
369
|
+
query: high
|
370
|
+
subauth: reduction_ratio
|
371
|
+
position: 3
|
372
|
+
subject_uri: "http://rdaregistry.info/termList/RDAReductionRatio/1005"
|
373
|
+
replacements:
|
374
|
+
maxRecords: '20'
|
375
|
+
-
|
376
|
+
query: Region 5
|
377
|
+
subauth: regional_encoding
|
378
|
+
position: 3
|
379
|
+
subject_uri: "http://rdaregistry.info/termList/RDARegionalEncoding/1011"
|
380
|
+
replacements:
|
381
|
+
maxRecords: '20'
|
382
|
+
-
|
383
|
+
query: self-describing manifestation
|
384
|
+
subauth: terms
|
385
|
+
position: 3
|
386
|
+
subject_uri: "http://rdaregistry.info/termList/RDATerms/1080"
|
387
|
+
replacements:
|
388
|
+
maxRecords: '20'
|
389
|
+
-
|
390
|
+
query: spiral
|
391
|
+
subauth: type_of_binding
|
392
|
+
position: 3
|
393
|
+
subject_uri: "http://rdaregistry.info/termList/RDATypeOfBinding/1003"
|
394
|
+
replacements:
|
395
|
+
maxRecords: '20'
|
396
|
+
-
|
397
|
+
query: blueline process
|
398
|
+
subauth: production_method
|
399
|
+
position: 3
|
400
|
+
subject_uri: "http://rdaregistry.info/termList/RDAproductionMethod/1001"
|
401
|
+
replacements:
|
402
|
+
maxRecords: '20'
|
403
|
+
-
|
404
|
+
query: braille
|
405
|
+
subauth: form_of_tactile_notation
|
406
|
+
position: 4
|
407
|
+
subject_uri: "http://rdaregistry.info/termList/TacNotation/1001"
|
408
|
+
replacements:
|
409
|
+
maxRecords: '20'
|
410
|
+
-
|
411
|
+
query: 48mo
|
412
|
+
subauth: bibliographic_format
|
413
|
+
position: 4
|
414
|
+
subject_uri: "http://rdaregistry.info/termList/bookFormat/1008"
|
415
|
+
replacements:
|
416
|
+
maxRecords: '20'
|
417
|
+
-
|
418
|
+
query: PAL
|
419
|
+
subauth: broadcast_standard
|
420
|
+
position: 4
|
421
|
+
subject_uri: "http://rdaregistry.info/termList/broadcastStand/1003"
|
422
|
+
replacements:
|
423
|
+
maxRecords: '20'
|
424
|
+
-
|
425
|
+
query: quadraphonic
|
426
|
+
subauth: config_playback_channels
|
427
|
+
position: 4
|
428
|
+
subject_uri: "http://rdaregistry.info/termList/configPlayback/1003"
|
429
|
+
replacements:
|
430
|
+
maxRecords: '20'
|
431
|
+
-
|
432
|
+
query: audio
|
433
|
+
subauth: file_type
|
434
|
+
position: 3
|
435
|
+
subject_uri: "http://rdaregistry.info/termList/fileType/1001"
|
436
|
+
replacements:
|
437
|
+
maxRecords: '20'
|
438
|
+
-
|
439
|
+
query: large
|
440
|
+
subauth: font_size
|
441
|
+
position: 3
|
442
|
+
subject_uri: "http://rdaregistry.info/termList/fontSize/1002"
|
443
|
+
replacements:
|
444
|
+
maxRecords: '20'
|
445
|
+
-
|
446
|
+
query: choir
|
447
|
+
subauth: format_of_notated_music
|
448
|
+
position: 3
|
449
|
+
subject_uri: "http://rdaregistry.info/termList/formatNoteMus/1001"
|
450
|
+
replacements:
|
451
|
+
maxRecords: '20'
|
452
|
+
-
|
453
|
+
query: times
|
454
|
+
subauth: frequency
|
455
|
+
position: 3
|
456
|
+
subject_uri: "http://rdaregistry.info/termList/frequency/1006"
|
457
|
+
replacements:
|
458
|
+
maxRecords: '20'
|
459
|
+
-
|
460
|
+
pending: true
|
461
|
+
query: unknown
|
462
|
+
subauth: gender
|
463
|
+
position: 3
|
464
|
+
subject_uri: "http://rdaregistry.info/termList/gender/1003"
|
465
|
+
replacements:
|
466
|
+
maxRecords: '20'
|
467
|
+
-
|
468
|
+
query: fine
|
469
|
+
subauth: groove_pitch
|
470
|
+
position: 1
|
471
|
+
subject_uri: "http://rdaregistry.info/termList/groovePitch/1005"
|
472
|
+
replacements:
|
473
|
+
maxRecords: '10'
|
474
|
+
-
|
475
|
+
query: coarse
|
476
|
+
subauth: groove_width
|
477
|
+
position: 1
|
478
|
+
subject_uri: "http://rdaregistry.info/termList/grooveWidth/1001"
|
479
|
+
replacements:
|
480
|
+
maxRecords: '10'
|
481
|
+
-
|
482
|
+
query: single
|
483
|
+
subauth: layout
|
484
|
+
position: 2
|
485
|
+
subject_uri: "http://rdaregistry.info/termList/layout/1002"
|
486
|
+
replacements:
|
487
|
+
maxRecords: '10'
|
488
|
+
-
|
489
|
+
query: action stroke
|
490
|
+
subauth: form_of_notated_movement
|
491
|
+
position: 2
|
492
|
+
subject_uri: "http://rdaregistry.info/termList/noteMove/1009"
|
493
|
+
replacements:
|
494
|
+
maxRecords: '10'
|
495
|
+
-
|
496
|
+
query: imax
|
497
|
+
subauth: presentation_format
|
498
|
+
position: 2
|
499
|
+
subject_uri: "http://rdaregistry.info/termList/presFormat/1004"
|
500
|
+
replacements:
|
501
|
+
maxRecords: '10'
|
502
|
+
-
|
503
|
+
query: optical
|
504
|
+
subauth: recording_medium
|
505
|
+
position: 2
|
506
|
+
subject_uri: "http://rdaregistry.info/termList/recMedium/1003"
|
507
|
+
replacements:
|
508
|
+
maxRecords: '10'
|
509
|
+
-
|
510
|
+
query: music
|
511
|
+
subauth: rofch
|
512
|
+
position: 2
|
513
|
+
subject_uri: "http://rdaregistry.info/termList/rofch/T1002"
|
514
|
+
replacements:
|
515
|
+
maxRecords: '10'
|
516
|
+
-
|
517
|
+
query: varies
|
518
|
+
subauth: scale_designation
|
519
|
+
position: 2
|
520
|
+
subject_uri: "http://rdaregistry.info/termList/scale/1003"
|
521
|
+
replacements:
|
522
|
+
maxRecords: '10'
|
523
|
+
-
|
524
|
+
query: silent
|
525
|
+
subauth: sound_content
|
526
|
+
position: 2
|
527
|
+
subject_uri: "http://rdaregistry.info/termList/soundCont/1002"
|
528
|
+
replacements:
|
529
|
+
maxRecords: '10'
|
530
|
+
-
|
531
|
+
query: dolby a
|
532
|
+
subauth: special_playback
|
533
|
+
position: 4
|
534
|
+
subject_uri: "http://rdaregistry.info/termList/specPlayback/1005"
|
535
|
+
replacements:
|
536
|
+
maxRecords: '10'
|
537
|
+
-
|
538
|
+
query: provisional
|
539
|
+
subauth: status_of_identification
|
540
|
+
position: 4
|
541
|
+
subject_uri: "http://rdaregistry.info/termList/statIdentification/1002"
|
542
|
+
replacements:
|
543
|
+
maxRecords: '10'
|
544
|
+
-
|
545
|
+
query: edge
|
546
|
+
subauth: track_config
|
547
|
+
position: 4
|
548
|
+
subject_uri: "http://rdaregistry.info/termList/trackConfig/1002"
|
549
|
+
replacements:
|
550
|
+
maxRecords: '10'
|
551
|
+
-
|
552
|
+
query: analog
|
553
|
+
subauth: type_of_recording
|
554
|
+
position: 4
|
555
|
+
subject_uri: "http://rdaregistry.info/termList/typeRec/1001"
|
556
|
+
replacements:
|
557
|
+
maxRecords: '10'
|
558
|
+
-
|
559
|
+
pending: true
|
560
|
+
query: Hi 8
|
561
|
+
subauth: video_format
|
562
|
+
position: 3
|
563
|
+
subject_uri: "http://rdaregistry.info/termList/videoFormat/1007"
|
564
|
+
replacements:
|
565
|
+
maxRecords: '10'
|
@@ -199,13 +199,17 @@ module QaServer
|
|
199
199
|
# Performance data is gathered on every incoming query. Basic stats are logged from QA. Full stats are logged
|
200
200
|
# by QaServer and can eat up logging realestate. To suppress the logging of details, set this config to true.
|
201
201
|
# @param [Boolean] do not log performance data details when true (defaults to false for backward compatibitily)
|
202
|
-
attr_writer :
|
203
|
-
def
|
204
|
-
return @
|
205
|
-
@
|
206
|
-
end
|
207
|
-
alias suppress_logging_performance_datails
|
202
|
+
attr_writer :suppress_logging_performance_details
|
203
|
+
def suppress_logging_performance_details?
|
204
|
+
return @suppress_logging_performance_details unless @suppress_logging_performance_details.nil?
|
205
|
+
@suppress_logging_performance_details ||= false
|
206
|
+
end
|
207
|
+
alias suppress_logging_performance_datails suppress_logging_performance_details?
|
208
|
+
alias suppress_logging_performance_datails? suppress_logging_performance_details?
|
209
|
+
alias suppress_logging_performance_datails= suppress_logging_performance_details=
|
208
210
|
deprecation_deprecate suppress_logging_performance_datails: "use #suppress_logging_performance_datails? instead"
|
211
|
+
deprecation_deprecate suppress_logging_performance_datails?: "use #suppress_logging_performance_details? instead"
|
212
|
+
# deprecation_deprecate suppress_logging_performance_datails=: "use #suppress_logging_performance_details= instead"
|
209
213
|
|
210
214
|
# Maximum amount of memory the performance cache can occupy before it is written to the database.
|
211
215
|
# @param [Integer] maximum size of performance cache before flushing
|
@@ -249,23 +253,23 @@ module QaServer
|
|
249
253
|
@monitor_logger ||= Logger.new(ENV['MONITOR_LOG_PATH'] || File.join("log", "monitor.log"))
|
250
254
|
end
|
251
255
|
|
252
|
-
|
253
|
-
|
254
|
-
|
255
|
-
|
256
|
-
|
257
|
-
|
258
|
-
|
259
|
-
|
260
|
-
|
261
|
-
|
262
|
-
|
263
|
-
|
264
|
-
|
265
|
-
|
266
|
-
|
267
|
-
|
268
|
-
|
269
|
-
|
256
|
+
private
|
257
|
+
|
258
|
+
def convert_size_to_bytes(size)
|
259
|
+
return if size.nil?
|
260
|
+
md = size.match(/^(?<num>\d+)\s?(?<unit>\w+)?$/)
|
261
|
+
return md[:num].to_i if md[:unit].nil?
|
262
|
+
md[:num].to_i *
|
263
|
+
case md[:unit].upcase
|
264
|
+
when 'KB'
|
265
|
+
1024
|
266
|
+
when 'MB'
|
267
|
+
1024**2
|
268
|
+
when 'GB'
|
269
|
+
1024**3
|
270
|
+
else
|
271
|
+
1
|
272
|
+
end
|
273
|
+
end
|
270
274
|
end
|
271
275
|
end
|