test gwt change

This commit is contained in:
2025-12-10 18:33:59 +00:00
parent 9a083094e3
commit 8a3fb0545c
3 changed files with 75 additions and 27 deletions

View File

@@ -4,7 +4,20 @@
"type": "kubra", "type": "kubra",
"meta_url": "https://kubra.io/stormcenter/api/v1/stormcenters/6674f49e-0236-4ed8-a40a-b31747557ab7/views/8cfe790f-59f3-4ce3-a73f-a9642227411f/currentState?preview=false", "meta_url": "https://kubra.io/stormcenter/api/v1/stormcenters/6674f49e-0236-4ed8-a40a-b31747557ab7/views/8cfe790f-59f3-4ce3-a73f-a9642227411f/currentState?preview=false",
"layer": "cluster-2", "layer": "cluster-2",
"quadkeys": [ "0320001", "0320003", "0320010", "0320011", "0320012", "0320013", "0320021", "0320030", "0320031", "0320100", "0320102", "0320120" ], "quadkeys": [
"0320001",
"0320003",
"0320010",
"0320011",
"0320012",
"0320013",
"0320021",
"0320030",
"0320031",
"0320100",
"0320102",
"0320120"
],
"county_type": "kubra_county", "county_type": "kubra_county",
"county_meta_url": "https://kubra.io/stormcenter/api/v1/stormcenters/6674f49e-0236-4ed8-a40a-b31747557ab7/views/8cfe790f-59f3-4ce3-a73f-a9642227411f/currentState?preview=false", "county_meta_url": "https://kubra.io/stormcenter/api/v1/stormcenters/6674f49e-0236-4ed8-a40a-b31747557ab7/views/8cfe790f-59f3-4ce3-a73f-a9642227411f/currentState?preview=false",
"county_report_suffix": "/public/reports/7929429f-635d-4761-b6c7-78f646cef3c2_report.json" "county_report_suffix": "/public/reports/7929429f-635d-4761-b6c7-78f646cef3c2_report.json"
@@ -14,7 +27,20 @@
"type": "kubra", "type": "kubra",
"meta_url": "https://kubra.io/stormcenter/api/v1/stormcenters/9c0735d8-b721-4dce-b80b-558e98ce1083/views/9b2feb80-69f8-4035-925e-f2acbcf1728e/currentState?preview=false", "meta_url": "https://kubra.io/stormcenter/api/v1/stormcenters/9c0735d8-b721-4dce-b80b-558e98ce1083/views/9b2feb80-69f8-4035-925e-f2acbcf1728e/currentState?preview=false",
"layer": "cluster-1", "layer": "cluster-1",
"quadkeys": [ "0320013", "0320010", "0320011", "0320012", "0320003", "0320001", "0302322", "0302233", "0302232", "0302223", "0320102", "0320100" ], "quadkeys": [
"0320013",
"0320010",
"0320011",
"0320012",
"0320003",
"0320001",
"0302322",
"0302233",
"0302232",
"0302223",
"0320102",
"0320100"
],
"county_type": "kubra_county", "county_type": "kubra_county",
"county_meta_url": "https://kubra.io/stormcenter/api/v1/stormcenters/9c0735d8-b721-4dce-b80b-558e98ce1083/views/9b2feb80-69f8-4035-925e-f2acbcf1728e/currentState?preview=false", "county_meta_url": "https://kubra.io/stormcenter/api/v1/stormcenters/9c0735d8-b721-4dce-b80b-558e98ce1083/views/9b2feb80-69f8-4035-925e-f2acbcf1728e/currentState?preview=false",
"county_report_suffix": "/public/reports/1bc6bd19-2315-4548-980a-6df73b93b355_report.json" "county_report_suffix": "/public/reports/1bc6bd19-2315-4548-980a-6df73b93b355_report.json"
@@ -24,7 +50,17 @@
"type": "kubra", "type": "kubra",
"meta_url": "https://kubra.io/stormcenter/api/v1/stormcenters/23dcd38e-2573-4e20-a463-959b11cae011/views/60f31606-5702-4a1e-a74c-08d866b7a6fa/currentState?preview=false", "meta_url": "https://kubra.io/stormcenter/api/v1/stormcenters/23dcd38e-2573-4e20-a463-959b11cae011/views/60f31606-5702-4a1e-a74c-08d866b7a6fa/currentState?preview=false",
"layer": "cluster-2", "layer": "cluster-2",
"quadkeys": [ "0320031", "0320030", "0320021", "0320013", "0320012", "0320011", "0320010", "0320003", "0320001" ], "quadkeys": [
"0320031",
"0320030",
"0320021",
"0320013",
"0320012",
"0320011",
"0320010",
"0320003",
"0320001"
],
"county_type": "kubra_county", "county_type": "kubra_county",
"county_meta_url": "https://kubra.io/stormcenter/api/v1/stormcenters/23dcd38e-2573-4e20-a463-959b11cae011/views/60f31606-5702-4a1e-a74c-08d866b7a6fa/currentState?preview=false", "county_meta_url": "https://kubra.io/stormcenter/api/v1/stormcenters/23dcd38e-2573-4e20-a463-959b11cae011/views/60f31606-5702-4a1e-a74c-08d866b7a6fa/currentState?preview=false",
"county_report_suffix": "/public/reports/03da18cc-51e0-4662-98e5-e9d49dcf08c8_report.json", "county_report_suffix": "/public/reports/03da18cc-51e0-4662-98e5-e9d49dcf08c8_report.json",
@@ -35,7 +71,14 @@
"type": "kubra", "type": "kubra",
"meta_url": "https://kubra.io/stormcenter/api/v1/stormcenters/6c715f0e-bbec-465f-98cc-0b81623744be/views/5ed3ddf1-3a6f-4cfd-8957-eba54b5baaad/currentState?preview=false", "meta_url": "https://kubra.io/stormcenter/api/v1/stormcenters/6c715f0e-bbec-465f-98cc-0b81623744be/views/5ed3ddf1-3a6f-4cfd-8957-eba54b5baaad/currentState?preview=false",
"layer": "cluster-4", "layer": "cluster-4",
"quadkeys": [ "030223", "030232", "032001", "032003", "032010", "032012" ], "quadkeys": [
"030223",
"030232",
"032001",
"032003",
"032010",
"032012"
],
"county_type": "kubra_county", "county_type": "kubra_county",
"county_meta_url": "https://kubra.io/stormcenter/api/v1/stormcenters/6c715f0e-bbec-465f-98cc-0b81623744be/views/5ed3ddf1-3a6f-4cfd-8957-eba54b5baaad/currentState?preview=false", "county_meta_url": "https://kubra.io/stormcenter/api/v1/stormcenters/6c715f0e-bbec-465f-98cc-0b81623744be/views/5ed3ddf1-3a6f-4cfd-8957-eba54b5baaad/currentState?preview=false",
"county_report_suffix": "/public/reports/8c3b0b30-c9e8-4e8f-8b0d-999c568bb085_report.json", "county_report_suffix": "/public/reports/8c3b0b30-c9e8-4e8f-8b0d-999c568bb085_report.json",
@@ -43,7 +86,7 @@
}, },
{ {
"name": "SouthCentral", "name": "SouthCentral",
"type": "simple_json", "type": "simple_json",
"url": "https://outage.southcentralpower.com/data/outages.json", "url": "https://outage.southcentralpower.com/data/outages.json",
"county_type": "simple_county_json", "county_type": "simple_county_json",
"county_url": "https://outage.southcentralpower.com/data/boundaries.json", "county_url": "https://outage.southcentralpower.com/data/boundaries.json",
@@ -51,15 +94,15 @@
}, },
{ {
"name": "Grayson", "name": "Grayson",
"type": "simple_json", "type": "simple_json",
"url": "https://outages.graysonrecc.com/data/outages.json", "url": "https://outages.graysonrecc.com/data/outages.json",
"county_type": "simple_county_json", "county_type": "simple_county_json",
"county_url": "https://outages.graysonrecc.com/data/boundaries.json", "county_url": "https://outages.graysonrecc.com/data/boundaries.json",
"state_filter": "KY" "state_filter": "KY"
}, },
{ {
"name": "Sandy", "name": "Sandy",
"type": "simple_json", "type": "simple_json",
"url": "https://outagemap.bigsandyrecc.com/data/outages.json", "url": "https://outagemap.bigsandyrecc.com/data/outages.json",
"county_type": "simple_county_json", "county_type": "simple_county_json",
"county_url": "https://outagemap.bigsandyrecc.com/data/boundaries.json", "county_url": "https://outagemap.bigsandyrecc.com/data/boundaries.json",
@@ -100,14 +143,14 @@
}, },
"body": "7|0|4|https://weci.ebill.coop/woViewer/MapWiseWeb/|612278413EC26C34D54A3907AA0CDFD8|coop.nisc.oms.webmap.services.RpcCombinedOutageDetailsService|getCombinedOutageDetails|1|2|3|4|0|", "body": "7|0|4|https://weci.ebill.coop/woViewer/MapWiseWeb/|612278413EC26C34D54A3907AA0CDFD8|coop.nisc.oms.webmap.services.RpcCombinedOutageDetailsService|getCombinedOutageDetails|1|2|3|4|0|",
"county_type": "gwt_rpc_county", "county_type": "gwt_rpc_county",
"last_auto_update": "2025-12-07T03:56:27.722877+00:00", "last_auto_update": "2025-12-10T06:35:27.651117+00:00",
"cookies": [ "cookies": [
{ {
"name": "__utma", "name": "__utma",
"value": "105963909.1267880890.1765079787.1765079787.1765079787.1", "value": "105963909.968371538.1765348516.1765348516.1765348516.1",
"domain": ".weci.ebill.coop", "domain": ".weci.ebill.coop",
"path": "/", "path": "/",
"expires": 1799639786.874286, "expires": 1799908516.478746,
"httpOnly": false, "httpOnly": false,
"secure": false, "secure": false,
"sameSite": "Lax" "sameSite": "Lax"
@@ -124,10 +167,10 @@
}, },
{ {
"name": "__utmz", "name": "__utmz",
"value": "105963909.1765079787.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none)", "value": "105963909.1765348516.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none)",
"domain": ".weci.ebill.coop", "domain": ".weci.ebill.coop",
"path": "/", "path": "/",
"expires": 1780847786, "expires": 1781116516,
"httpOnly": false, "httpOnly": false,
"secure": false, "secure": false,
"sameSite": "Lax" "sameSite": "Lax"
@@ -137,7 +180,7 @@
"value": "1", "value": "1",
"domain": ".weci.ebill.coop", "domain": ".weci.ebill.coop",
"path": "/", "path": "/",
"expires": 1765080386, "expires": 1765349116,
"httpOnly": false, "httpOnly": false,
"secure": false, "secure": false,
"sameSite": "Lax" "sameSite": "Lax"
@@ -147,37 +190,37 @@
"value": "1", "value": "1",
"domain": ".weci.ebill.coop", "domain": ".weci.ebill.coop",
"path": "/", "path": "/",
"expires": 1765080386, "expires": 1765349116,
"httpOnly": false, "httpOnly": false,
"secure": false, "secure": false,
"sameSite": "Lax" "sameSite": "Lax"
}, },
{ {
"name": "__utmb", "name": "__utmb",
"value": "105963909.2.10.1765079787", "value": "105963909.2.10.1765348516",
"domain": ".weci.ebill.coop", "domain": ".weci.ebill.coop",
"path": "/", "path": "/",
"expires": 1765081586, "expires": 1765350316,
"httpOnly": false, "httpOnly": false,
"secure": false, "secure": false,
"sameSite": "Lax" "sameSite": "Lax"
}, },
{ {
"name": "__utma", "name": "__utma",
"value": "105963909.1267880890.1765079787.1765079787.1765079787.1", "value": "105963909.968371538.1765348516.1765348516.1765348516.1",
"domain": "weci.ebill.coop", "domain": "weci.ebill.coop",
"path": "/", "path": "/",
"expires": 1799639786.87497, "expires": 1799908516.486623,
"httpOnly": false, "httpOnly": false,
"secure": false, "secure": false,
"sameSite": "Lax" "sameSite": "Lax"
}, },
{ {
"name": "__utmb", "name": "__utmb",
"value": "105963909.3.9.1765079787", "value": "105963909.3.9.1765348516",
"domain": "weci.ebill.coop", "domain": "weci.ebill.coop",
"path": "/", "path": "/",
"expires": 1765081586, "expires": 1765350316,
"httpOnly": false, "httpOnly": false,
"secure": false, "secure": false,
"sameSite": "Lax" "sameSite": "Lax"
@@ -194,10 +237,10 @@
}, },
{ {
"name": "__utmz", "name": "__utmz",
"value": "105963909.1765079787.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none)", "value": "105963909.1765348516.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none)",
"domain": "weci.ebill.coop", "domain": "weci.ebill.coop",
"path": "/", "path": "/",
"expires": 1780847786, "expires": 1781116516,
"httpOnly": false, "httpOnly": false,
"secure": false, "secure": false,
"sameSite": "Lax" "sameSite": "Lax"

View File

@@ -144,10 +144,15 @@ class GwtRpcCountyProvider(GwtRpcBaseProvider, BaseCountyProvider):
if stream[i] == region_type_id: if stream[i] == region_type_id:
try: try:
p = i + 1 p = i + 1
served = stream[p] if stream[p+1] == integer_type_id else 0
p += 2 if served > 0 else 1 # Check for served customers, ensuring we don't read past the end of the stream
out = stream[p] if stream[p+1] == integer_type_id else 0 served = stream[p] if p + 1 < len(stream) and stream[p+1] == integer_type_id else 0
p += 2 if out > 0 else 1 p += 2 # Always advance past value and type ID
# Check for customers out
out = stream[p] if p + 1 < len(stream) and stream[p+1] == integer_type_id else 0
p += 2 # Always advance past value and type ID
name_idx, cat_idx = stream[p], stream[p+1] name_idx, cat_idx = stream[p], stream[p+1]
if cat_idx == county_type_id: if cat_idx == county_type_id: