mirror of
https://git.ianrenton.com/ian/spothole.git
synced 2026-08-06 02:21:42 +00:00
Refactor of caching & data storage part 10 #118
This commit is contained in:
@@ -23,7 +23,7 @@ info:
|
||||
* Added `comment_names` to SIGs in the `/options`, to reflect how they might be referred to in spot comments where
|
||||
it differs from their `name`.
|
||||
* Added `propagation_mode` field to spots
|
||||
* Added `sig_ref_data_providers` and `static_data_providers` to status and removed `cleanup`
|
||||
* Added `sig_ref_data_providers`, `static_data_providers` and `callsign_data_providers` to status and removed `cleanup`
|
||||
|
||||
### 1.3
|
||||
|
||||
@@ -1769,6 +1769,28 @@ components:
|
||||
description: The number of references fetched using this provider.
|
||||
example: 1234
|
||||
|
||||
CallsignDataProviderStatus:
|
||||
type: object
|
||||
properties:
|
||||
sig_name:
|
||||
type: string
|
||||
description: The name of the provider.
|
||||
example: Country Files
|
||||
enabled:
|
||||
type: boolean
|
||||
description: Whether the provider is enabled or not.
|
||||
example: true
|
||||
status:
|
||||
type: string
|
||||
description: The status of the provider.
|
||||
example: OK
|
||||
last_updated:
|
||||
type: number
|
||||
description: >
|
||||
The last time at which this provider received data, UTC seconds since UNIX epoch. If this
|
||||
is zero, the provider has never updated.
|
||||
example: 1759579508
|
||||
|
||||
SpotList:
|
||||
type: array
|
||||
items:
|
||||
@@ -1876,6 +1898,11 @@ components:
|
||||
description: An array of all the SIG reference data providers.
|
||||
items:
|
||||
$ref: '#/components/schemas/SIGRefDataProviderStatus'
|
||||
callsign_data_providers:
|
||||
type: array
|
||||
description: An array of all the callsign data providers.
|
||||
items:
|
||||
$ref: '#/components/schemas/CallsignDataProviderStatus'
|
||||
|
||||
Options:
|
||||
type: object
|
||||
|
||||
@@ -58,6 +58,15 @@ function loadStatus() {
|
||||
<div class="col">References: ${(p["enabled"] && p["reference_count"] > 0) ? p["reference_count"] : "N/A"}</div>
|
||||
</div>`);
|
||||
});
|
||||
|
||||
jsonData["callsign_data_providers"].forEach(p => {
|
||||
$("#callsign-data-providers-status-container").append(`
|
||||
<div class="row row-cols-1 row-cols-md-4 g-4 mb-2">
|
||||
<div class="col"><strong>${p["name"]}</strong></div>
|
||||
<div class="col">Status: ${p["status"]}</div>
|
||||
<div class="col">Last updated: ${(p["enabled"] && p["last_updated"] > 0) ? moment.unix(p["last_updated"]).utc().fromNow() : "N/A"}</div>
|
||||
</div>`);
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user