Skip to content

Conversation

@Maelstromeous
Copy link
Member

@Maelstromeous Maelstromeous commented Aug 11, 2022

Work towards adding support for outfit wars. Closes #312

Tasks

  • Create API endpoints to create OW instance
  • Create update endpoint to update result from aggregator
  • Test deleting (trashing) via aggregator
  • Create filters on All Aggregates to filter by Outfit Wars (global and instance)
  • Update all aggregates DTOs / entities to add ps2alertsEventType
  • Create database migration to add a ps2alertsEventType migration to ALL aggregates, giving all current records the value of 1 (live metagame)
  • Create endpoints for website to hit for statistical data e.g. describing the current rounds etc (theoretical atm)
  • Add API to update outfit ranking with instance ID for linking rankings to matches. Will need to filter on round number and outfit ID
  • Increase frequency of outfitwars ranking cron job
  • Have the rankings cron job choose the round based on the number of matches played (round = matches played + 1)

This should eventually do something different with the outfit-wars data
so that it doesn't appear in the normal active alerts on the website
@@ -0,0 +1,147 @@
// import {Inject, Injectable, Logger} from '@nestjs/common';
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This file shouldn't exist in this PR, my bad

Copy link
Member Author

@Maelstromeous Maelstromeous left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Various notes

import {Column} from 'typeorm';

export default class OutfitwarsMapControlEmbed {
@ApiProperty({example: 20, description: 'Team 1 (blue) percentage'})
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Old descriptions

@IsOptional()
@ApiModelProperty({example: null, default: null})
mapControl: MapControlEmbed;
mapControl: TerritoryControlMapControlEmbed;
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thinking we should probably prefix this with metagame so it's clear is not OW related, like the rest are

@IsNotEmpty()
@IsOptional()
@ApiModelProperty({example: false, default: false})
isInitial: boolean;
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Potentially can remove

@ApiOperation({summary: 'Returns a single outfit wars instance'})
@ApiResponse({
status: 200,
description: 'The Metagame Instance',
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wonky description

return await this.mongoOperationsService.deleteOne(InstanceOutfitWarsTerritoryEntity, {instanceId});
}

@Get('/active')
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Needs testing

{
state: Ps2alertsEventState.STARTED,
world,
zone,
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Zone may not be needed here

@ryanjsims
Copy link
Collaborator

  • Add API to update outfit ranking with instance ID for linking rankings to matches. Will need to filter on round number and outfit ID

Matt Cavanagh and others added 26 commits August 29, 2022 18:35
Also adds endpoint to update that instanceId, and converts falcon interface to strings
This adds the start time of the next match to the outfits' rankings, and makes the
cron job non-destructive to instanceId and createdAt timestamp so it can be run
more frequently
@Maelstromeous Maelstromeous merged commit 16e5c5b into dev Sep 1, 2022
@Maelstromeous Maelstromeous deleted the outfit-wars branch September 1, 2022 12:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

Outfitwars support

3 participants