mirror of
https://github.com/LBPUnion/ProjectLighthouse.git
synced 2025-07-24 14:11:29 +00:00
Rewrite gameserver slot filter system (#763)
* Initial implementation of new slot sorting and filtering system * Initial implementation of filtering for lbp3 community tab * Add support for organization on lbp3 * Add playlist and user categories * Implement unit tests for all filters Refactor more systems to use PaginationData * Fix PlayerCountFilter test * Add more unit tests and integration tests for the filter system * Fix LBP2 move filter and gameFilterType * Fix sort by likes in LBP3 category * Add sort for total plays * Remove extra whitespace and make styling more consistent * Order hearted and queued levels by primary key ID * Fix query without order warnings
This commit is contained in:
parent
de228cb242
commit
0c1e350fa3
106 changed files with 4040 additions and 1183 deletions
|
@ -16,7 +16,7 @@ public class DigestMiddlewareTests
|
|||
{
|
||||
|
||||
[Fact]
|
||||
public async void DigestMiddleware_ShouldNotComputeDigests_WhenDigestsDisabled()
|
||||
public async Task DigestMiddleware_ShouldNotComputeDigests_WhenDigestsDisabled()
|
||||
{
|
||||
DefaultHttpContext context = new()
|
||||
{
|
||||
|
@ -44,7 +44,7 @@ public class DigestMiddlewareTests
|
|||
}
|
||||
|
||||
[Fact]
|
||||
public async void DigestMiddleware_ShouldReject_WhenDigestHeaderIsMissing()
|
||||
public async Task DigestMiddleware_ShouldReject_WhenDigestHeaderIsMissing()
|
||||
{
|
||||
DefaultHttpContext context = new()
|
||||
{
|
||||
|
@ -77,7 +77,7 @@ public class DigestMiddlewareTests
|
|||
}
|
||||
|
||||
[Fact]
|
||||
public async void DigestMiddleware_ShouldReject_WhenRequestDigestInvalid()
|
||||
public async Task DigestMiddleware_ShouldReject_WhenRequestDigestInvalid()
|
||||
{
|
||||
DefaultHttpContext context = new()
|
||||
{
|
||||
|
@ -112,7 +112,7 @@ public class DigestMiddlewareTests
|
|||
}
|
||||
|
||||
[Fact]
|
||||
public async void DigestMiddleware_ShouldUseAlternateDigest_WhenPrimaryDigestInvalid()
|
||||
public async Task DigestMiddleware_ShouldUseAlternateDigest_WhenPrimaryDigestInvalid()
|
||||
{
|
||||
DefaultHttpContext context = new()
|
||||
{
|
||||
|
@ -150,8 +150,8 @@ public class DigestMiddlewareTests
|
|||
Assert.Equal(expectedClientDigest, context.Response.Headers["X-Digest-B"][0]);
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public async void DigestMiddleware_ShouldNotReject_WhenRequestingAnnounce()
|
||||
[Fact]
|
||||
public async Task DigestMiddleware_ShouldNotReject_WhenRequestingAnnounce()
|
||||
{
|
||||
DefaultHttpContext context = new()
|
||||
{
|
||||
|
@ -188,7 +188,7 @@ public class DigestMiddlewareTests
|
|||
}
|
||||
|
||||
[Fact]
|
||||
public async void DigestMiddleware_ShouldCalculate_WhenAuthCookieEmpty()
|
||||
public async Task DigestMiddleware_ShouldCalculate_WhenAuthCookieEmpty()
|
||||
{
|
||||
DefaultHttpContext context = new()
|
||||
{
|
||||
|
@ -225,7 +225,7 @@ public class DigestMiddlewareTests
|
|||
}
|
||||
|
||||
[Fact]
|
||||
public async void DigestMiddleware_ShouldComputeDigestsWithNoBody_WhenDigestsEnabled()
|
||||
public async Task DigestMiddleware_ShouldComputeDigestsWithNoBody_WhenDigestsEnabled()
|
||||
{
|
||||
DefaultHttpContext context = new()
|
||||
{
|
||||
|
@ -263,7 +263,7 @@ public class DigestMiddlewareTests
|
|||
}
|
||||
|
||||
[Fact]
|
||||
public async void DigestMiddleware_ShouldComputeDigestsWithBody_WhenDigestsEnabled_AndNoResponseBody()
|
||||
public async Task DigestMiddleware_ShouldComputeDigestsWithBody_WhenDigestsEnabled_AndNoResponseBody()
|
||||
{
|
||||
DefaultHttpContext context = new()
|
||||
{
|
||||
|
@ -301,7 +301,7 @@ public class DigestMiddlewareTests
|
|||
}
|
||||
|
||||
[Fact]
|
||||
public async void DigestMiddleware_ShouldComputeDigestsWithBody_WhenDigestsEnabled_AndResponseBody()
|
||||
public async Task DigestMiddleware_ShouldComputeDigestsWithBody_WhenDigestsEnabled_AndResponseBody()
|
||||
{
|
||||
DefaultHttpContext context = new()
|
||||
{
|
||||
|
@ -339,7 +339,7 @@ public class DigestMiddlewareTests
|
|||
}
|
||||
|
||||
[Fact]
|
||||
public async void DigestMiddleware_ShouldComputeDigestsWithBody_WhenUploading()
|
||||
public async Task DigestMiddleware_ShouldComputeDigestsWithBody_WhenUploading()
|
||||
{
|
||||
DefaultHttpContext context = new()
|
||||
{
|
||||
|
@ -377,7 +377,7 @@ public class DigestMiddlewareTests
|
|||
}
|
||||
|
||||
[Fact]
|
||||
public async void DigestMiddleware_ShouldCompressResponse_WhenAcceptEncodingHeaderIsPresent()
|
||||
public async Task DigestMiddleware_ShouldCompressResponse_WhenAcceptEncodingHeaderIsPresent()
|
||||
{
|
||||
DefaultHttpContext context = new()
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue