Skip to content

Commit a061ab2

Browse files
authored
Pre Desert Perpetual fixes (#89)
* fix floodgates status * update schemas * fix types
1 parent 59a990e commit a061ab2

6 files changed

Lines changed: 35 additions & 10 deletions

File tree

open-api/openapi.json

Lines changed: 23 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -488,7 +488,7 @@
488488
},
489489
"CheatCheckBitmask": {
490490
"type": "string",
491-
"description": "A bitmask of flagged heuristics:\n2^0 = Manual\n2^1 = Leviathan\n2^2 = EaterOfWorlds\n2^3 = SpireOfStars\n2^4 = LastWish\n2^5 = ScourgeOfThePast\n2^6 = CrownOfSorrow\n2^7 = GardenOfSalvation\n2^8 = DeepStoneCrypt\n2^9 = VaultOfGlass\n2^10 = VowOfTheDisciple\n2^11 = KingsFall\n2^12 = RootOfNightmares\n2^13 = CrotasEnd\n2^14 = SalvationsEdge\n2^15 = Raid15\n2^16 = Raid16\n2^17 = Raid17\n2^18 = Raid18\n2^19 = Raid19\n2^20 = Raid20\n2^21 = Raid21\n2^22 = Raid22\n2^23 = Raid23\n2^24 = Raid24\n2^25 = Raid25\n2^26 = Raid26\n2^27 = Raid27\n2^28 = Raid28\n2^29 = Raid29\n2^30 = Raid30\n2^31 = Raid31\n2^32 = Raid32\n2^33 = Pantheon\n2^34 = Bit34\n2^35 = Bit35\n2^36 = Bit36\n2^37 = Bit37\n2^38 = Bit38\n2^39 = Bit39\n2^40 = Bit40\n2^41 = Bit41\n2^42 = Bit42\n2^43 = Bit43\n2^44 = Bit44\n2^45 = Bit45\n2^46 = Bit46\n2^47 = Bit47\n2^48 = Bit48\n2^49 = Bit49\n2^50 = Bit50\n2^51 = Bit51\n2^52 = Bit52\n2^53 = Solo\n2^54 = TotalInstanceKills\n2^55 = TwoPlusCheaters\n2^56 = PlayerTotalKills\n2^57 = PlayerWeaponDiversity\n2^58 = PlayerSuperKills\n2^59 = PlayerGrenadeKills\n2^60 = TooFast\n2^61 = TooFewPlayersFresh\n2^62 = TooFewPlayersCheckpoint",
491+
"description": "A bitmask of flagged heuristics:\n2^0 = Manual\n2^1 = Leviathan\n2^2 = EaterOfWorlds\n2^3 = SpireOfStars\n2^4 = LastWish\n2^5 = ScourgeOfThePast\n2^6 = CrownOfSorrow\n2^7 = GardenOfSalvation\n2^8 = DeepStoneCrypt\n2^9 = VaultOfGlass\n2^10 = VowOfTheDisciple\n2^11 = KingsFall\n2^12 = RootOfNightmares\n2^13 = CrotasEnd\n2^14 = SalvationsEdge\n2^15 = Raid15\n2^16 = Raid16\n2^17 = Raid17\n2^18 = Raid18\n2^19 = Raid19\n2^20 = Raid20\n2^21 = Raid21\n2^22 = Raid22\n2^23 = Raid23\n2^24 = Raid24\n2^25 = Raid25\n2^26 = Raid26\n2^27 = Raid27\n2^28 = Raid28\n2^29 = Raid29\n2^30 = Raid30\n2^31 = Raid31\n2^32 = Raid32\n2^33 = Pantheon\n2^34 = Bit34\n2^35 = Bit35\n2^36 = Bit36\n2^37 = Bit37\n2^38 = Bit38\n2^39 = Bit39\n2^40 = Bit40\n2^41 = Bit41\n2^42 = Bit42\n2^43 = Bit43\n2^44 = Bit44\n2^45 = Bit45\n2^46 = Bit46\n2^47 = PlayerHeavyAmmoKills\n2^48 = FastLowmanCheckpoint\n2^49 = UnlikelyLowman\n2^50 = PlayerKillsShare\n2^51 = TimeDilation\n2^52 = FirstClear\n2^53 = Solo\n2^54 = TotalInstanceKills\n2^55 = TwoPlusCheaters\n2^56 = PlayerTotalKills\n2^57 = PlayerWeaponDiversity\n2^58 = PlayerSuperKills\n2^59 = PlayerGrenadeKills\n2^60 = TooFast\n2^61 = TooFewPlayersFresh\n2^62 = TooFewPlayersCheckpoint",
492492
"format": "int64"
493493
},
494494
"InstanceBlacklist": {
@@ -1543,6 +1543,17 @@
15431543
"membershipType"
15441544
]
15451545
},
1546+
"activityDifficultyTier": {
1547+
"type": "integer"
1548+
},
1549+
"selectedSkullHashes": {
1550+
"type": "array",
1551+
"items": {
1552+
"type": "integer",
1553+
"minimum": 0,
1554+
"format": "uint32"
1555+
}
1556+
},
15461557
"entries": {
15471558
"type": "array",
15481559
"items": {
@@ -2950,6 +2961,17 @@
29502961
"membershipType"
29512962
]
29522963
},
2964+
"activityDifficultyTier": {
2965+
"type": "integer"
2966+
},
2967+
"selectedSkullHashes": {
2968+
"type": "array",
2969+
"items": {
2970+
"type": "integer",
2971+
"minimum": 0,
2972+
"format": "uint32"
2973+
}
2974+
},
29532975
"entries": {
29542976
"type": "array",
29552977
"items": {

src/integrations/rabbitmq/api.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,9 @@ const auth = btoa(`${user}:${password}`)
1212
interface RabbitQueueResponse {
1313
messages: number
1414
backing_queue_status?: {
15-
avg_ack_ingress_rate: number
15+
// other fields ommitted for brevity
1616
avg_ingress_rate: number
17+
avg_egress_rate: number
1718
}
1819
}
1920

src/schema/components/InstanceStanding.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -57,12 +57,12 @@ enum CheatFlagIndex {
5757
Bit44,
5858
Bit45,
5959
Bit46,
60-
Bit47,
61-
Bit48,
62-
Bit49,
63-
Bit50,
64-
Bit51,
65-
Bit52,
60+
PlayerHeavyAmmoKills,
61+
FastLowmanCheckpoint,
62+
UnlikelyLowman,
63+
PlayerKillsShare,
64+
TimeDilation,
65+
FirstClear,
6666
Solo,
6767
TotalInstanceKills,
6868
TwoPlusCheaters,

src/schema/components/RaidHubPostGameCarnageReport.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,8 @@ export const zRaidHubPostGameCarnageReport = registry.register(
3232
membershipType: zDestinyMembershipType
3333
})
3434
.strip(),
35+
activityDifficultyTier: z.number().int().optional(),
36+
selectedSkullHashes: z.array(zUInt32()).optional(),
3537
entries: z.array(
3638
z
3739
.object({

src/services/floodgates/floodgates.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ describe("getFloodgatesStatus", () => {
113113
spyFetchQueue.mockResolvedValueOnce({
114114
messages: 10,
115115
backing_queue_status: {
116-
avg_ack_ingress_rate: 0.5,
116+
avg_egress_rate: 0.5,
117117
avg_ingress_rate: 1.0
118118
}
119119
})

src/services/floodgates/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ export const getFloodgatesStatus = async () => {
2222
return {
2323
waiting: data.messages,
2424
ackRateSeconds:
25-
Math.round(10_000 * (data.backing_queue_status?.avg_ack_ingress_rate ?? 0)) / 10_000,
25+
Math.round(10_000 * (data.backing_queue_status?.avg_egress_rate ?? 0)) / 10_000,
2626
ingressRateSeconds:
2727
Math.round(10_000 * (data.backing_queue_status?.avg_ingress_rate ?? 0)) / 10_000
2828
}

0 commit comments

Comments
 (0)