Review fixes for the small-fix batch
What an IPv6-only swap still owes is set aside for every job after it, not only for the next swap. The intern's shift reads it once (X.ow in opsShift(), refreshed when the build standard order starts a swap) and every standing order's can() keeps it above the cash floor, whoever started the swap; the sheet's button checks it for every job of the click. Before, the same click or the next shift could spend it (a generator, a line system swap), and the swap then paid its routers under the floor or waited for weeks. ip6Owed() is 0 while IPv4 is plentiful, when the swaps wait anyway. satOnly() counts a fiber or cable to the island only once it has optics of its own: dark glass carries none of the island's traffic, so the selective peers keep refusing and an exchange session there stays paused. ixSessions() looks up the city's satellite circuit once per exchange instead of once per member. The standing-order descriptions of the build standard and the optical upgrade say a customer's wave holds a fiber, not any customer (new labels, every language). The batch's CHANGELOG bullets get first sentences that fit the in-app notes; the satellite bullet says PNIs and your own exchange keep peering, the hint bullet that it shows up to four teleports. German and Italian express.dim use the dictionaries' own words, and the German and Spanish IPv6-only note reads naturally.
This commit is contained in:
parent
9496c26a25
commit
9601345201
17 changed files with 129 additions and 51 deletions
|
|
@ -135,6 +135,20 @@ test('selective peers will not meet you on an island only a satellite reaches: m
|
|||
ev(`S.peers['${k}@suv']=true;compute()`);
|
||||
assert.equal(ev(`ixSessions('suv').has('${k}')`), false);
|
||||
assert.equal(ev(`!!S.peers['${k}@suv']`), true, 'not torn down');
|
||||
// Glass to the island with no optics yet carries nothing: the satellite is still the way out until it is lit.
|
||||
const d1 = "S.links.find(l=>l.id==='d1')";
|
||||
ev("S.links.push({id:'d1',a:'syd',b:'suv',kind:'df',own:false,sys:'roadm',ch:[],km:Math.round(kmBetween('syd','suv')),sub:true,cable:null,mo:1,trench:'d1',cut:0,day:0,ready:0,spares:false,regen:0});compute()");
|
||||
assert.equal(ev(`linkDown(${d1})`), true);
|
||||
assert.equal(ev("satOnly('suv').bird"), 'is18', 'dark glass is no way out');
|
||||
for (const id of geoNo) assert.equal(J(ev, `peerOk('${id}','pni','suv')`).sat, true, id + ' over dark glass');
|
||||
assert.equal(ev(`ixSessions('suv').has('${k}')`), false);
|
||||
const opt = ev(`Object.keys(OPT).find(o=>optG(o,${d1})>0)`);
|
||||
assert.ok(opt, 'an optic that reaches Suva');
|
||||
ev(`${d1}.ch=['${opt}'];compute()`);
|
||||
assert.equal(ev("satOnly('suv')"), null, 'lit');
|
||||
assert.equal(ev(`ixSessions('suv').has('${k}')`), true);
|
||||
ev("S.links=S.links.filter(l=>l.id!=='d1');compute()");
|
||||
assert.equal(ev("satOnly('suv').bird"), 'is18');
|
||||
// The why, in the island's exchange section, at 360 px.
|
||||
ev("UI.sel={type:'city',id:'suv'};UI.tab='peer';renderAll()");
|
||||
assert.ok(ev("$('panel').textContent").includes(`Won't peer in Suva while a GEO satellite is your only way out (${ms} ms there and back)`));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue