qa_server 6.2.0 → 7.0.0
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.
- checksums.yaml +4 -4
- data/CHANGELOG.md +11 -0
- data/app/cache_processors/concerns/qa_server/cache_keys.rb +15 -0
- data/app/cache_processors/qa_server/cache_expiry_service.rb +33 -0
- data/app/cache_processors/qa_server/performance_daily_graph_cache.rb +60 -0
- data/app/cache_processors/qa_server/performance_datatable_cache.rb +33 -0
- data/app/cache_processors/qa_server/performance_hourly_graph_cache.rb +65 -0
- data/app/cache_processors/qa_server/performance_monthly_graph_cache.rb +60 -0
- data/app/cache_processors/qa_server/scenario_history_cache.rb +35 -0
- data/app/cache_processors/qa_server/scenario_run_cache.rb +28 -0
- data/app/cache_processors/qa_server/scenario_run_failures_cache.rb +51 -0
- data/app/cache_processors/qa_server/scenario_run_summary_cache.rb +40 -0
- data/app/controllers/qa_server/monitor_status_controller.rb +39 -48
- data/app/jobs/qa_server/monitor_tests_job.rb +1 -1
- data/app/models/qa_server/scenario_run_history.rb +27 -84
- data/app/models/qa_server/scenario_run_registry.rb +1 -1
- data/app/services/qa_server/performance_datatable_service.rb +6 -9
- data/app/services/qa_server/performance_graph_data_service.rb +77 -154
- data/app/services/qa_server/performance_graphing_service.rb +34 -47
- data/lib/qa_server/version.rb +1 -1
- data/spec/{services/qa_server/monitor_cache_service_spec.rb → cache_processors/qa_server/cache_expiry_service_spec.rb} +1 -1
- metadata +15 -6
- data/app/services/qa_server/monitor_cache_service.rb +0 -22
- /data/app/{models → cache_processors}/qa_server/performance_cache.rb +0 -0
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: qa_server
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 7.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- E. Lynette Rayle
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-02-
|
11
|
+
date: 2020-02-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -338,6 +338,17 @@ files:
|
|
338
338
|
- app/assets/stylesheets/qa_server/_qa_server.scss
|
339
339
|
- app/assets/stylesheets/qa_server/_styles.scss
|
340
340
|
- app/assets/stylesheets/qa_server/_usage.scss
|
341
|
+
- app/cache_processors/concerns/qa_server/cache_keys.rb
|
342
|
+
- app/cache_processors/qa_server/cache_expiry_service.rb
|
343
|
+
- app/cache_processors/qa_server/performance_cache.rb
|
344
|
+
- app/cache_processors/qa_server/performance_daily_graph_cache.rb
|
345
|
+
- app/cache_processors/qa_server/performance_datatable_cache.rb
|
346
|
+
- app/cache_processors/qa_server/performance_hourly_graph_cache.rb
|
347
|
+
- app/cache_processors/qa_server/performance_monthly_graph_cache.rb
|
348
|
+
- app/cache_processors/qa_server/scenario_history_cache.rb
|
349
|
+
- app/cache_processors/qa_server/scenario_run_cache.rb
|
350
|
+
- app/cache_processors/qa_server/scenario_run_failures_cache.rb
|
351
|
+
- app/cache_processors/qa_server/scenario_run_summary_cache.rb
|
341
352
|
- app/controllers/concerns/qa_server/authority_validation_behavior.rb
|
342
353
|
- app/controllers/qa_server/authority_list_controller.rb
|
343
354
|
- app/controllers/qa_server/check_status_controller.rb
|
@@ -351,7 +362,6 @@ files:
|
|
351
362
|
- app/models/qa_server/authority_scenario.rb
|
352
363
|
- app/models/qa_server/authority_status.rb
|
353
364
|
- app/models/qa_server/authority_status_failure.rb
|
354
|
-
- app/models/qa_server/performance_cache.rb
|
355
365
|
- app/models/qa_server/performance_history.rb
|
356
366
|
- app/models/qa_server/scenario_run_history.rb
|
357
367
|
- app/models/qa_server/scenario_run_registry.rb
|
@@ -377,7 +387,6 @@ files:
|
|
377
387
|
- app/services/qa_server/authority_loader_service.rb
|
378
388
|
- app/services/qa_server/authority_validator_service.rb
|
379
389
|
- app/services/qa_server/database_migrator.rb
|
380
|
-
- app/services/qa_server/monitor_cache_service.rb
|
381
390
|
- app/services/qa_server/performance_calculator_service.rb
|
382
391
|
- app/services/qa_server/performance_datatable_service.rb
|
383
392
|
- app/services/qa_server/performance_graph_data_service.rb
|
@@ -479,10 +488,10 @@ files:
|
|
479
488
|
- lib/tasks/qa_server_tasks.rake
|
480
489
|
- qa_server.gemspec
|
481
490
|
- spec/.gitignore
|
491
|
+
- spec/cache_processors/qa_server/cache_expiry_service_spec.rb
|
482
492
|
- spec/lib/configuration_spec.rb
|
483
493
|
- spec/lib/qa_server_spec.rb
|
484
494
|
- spec/rails_helper.rb
|
485
|
-
- spec/services/qa_server/monitor_cache_service_spec.rb
|
486
495
|
- spec/services/qa_server/time_period_service_spec.rb
|
487
496
|
- spec/services/qa_server/time_service_spec.rb
|
488
497
|
- spec/spec_helper.rb
|
@@ -515,10 +524,10 @@ specification_version: 4
|
|
515
524
|
summary: Authority Lookup Server
|
516
525
|
test_files:
|
517
526
|
- spec/.gitignore
|
527
|
+
- spec/cache_processors/qa_server/cache_expiry_service_spec.rb
|
518
528
|
- spec/lib/configuration_spec.rb
|
519
529
|
- spec/lib/qa_server_spec.rb
|
520
530
|
- spec/rails_helper.rb
|
521
|
-
- spec/services/qa_server/monitor_cache_service_spec.rb
|
522
531
|
- spec/services/qa_server/time_period_service_spec.rb
|
523
532
|
- spec/services/qa_server/time_service_spec.rb
|
524
533
|
- spec/spec_helper.rb
|
@@ -1,22 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
# Helper methods for caching for monitoring status.
|
3
|
-
module QaServer
|
4
|
-
class MonitorCacheService
|
5
|
-
class << self
|
6
|
-
# @return [Float] number of seconds until cache should expire
|
7
|
-
def cache_expiry
|
8
|
-
monitoring_expires_at - QaServer::TimeService.current_time
|
9
|
-
end
|
10
|
-
|
11
|
-
private
|
12
|
-
|
13
|
-
# @return [ActiveSupport::TimeWithZone] DateTime at which cache should expire
|
14
|
-
def monitoring_expires_at
|
15
|
-
offset = QaServer.config.hour_offset_to_expire_cache
|
16
|
-
offset_time = QaServer::TimeService.current_time
|
17
|
-
offset_time = offset_time.tomorrow unless (offset_time + 5.minutes).hour < offset
|
18
|
-
offset_time.beginning_of_day + offset.hours - 5.minutes
|
19
|
-
end
|
20
|
-
end
|
21
|
-
end
|
22
|
-
end
|
File without changes
|