Slendy
2c69644beb
Allow moderators to access individual reports.
2023-05-26 02:27:11 -05:00
dependabot[bot]
f2be297620
Bump coverlet.collector from 3.2.0 to 6.0.0 ( #771 )
...
Bumps [coverlet.collector](https://github.com/coverlet-coverage/coverlet ) from 3.2.0 to 6.0.0.
- [Release notes](https://github.com/coverlet-coverage/coverlet/releases )
- [Commits](https://github.com/coverlet-coverage/coverlet/compare/v3.2.0...v6.0.0 )
---
updated-dependencies:
- dependency-name: coverlet.collector
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-05-22 17:33:38 +00:00
koko
9646dea44a
Fix mod reason/notes overflow issue & show expiration time if applicable ( #765 )
...
* Fix mod reason/notes overflow issue & show expiration time if applicable
* Remove extra whitespace
* Wrap using line break instead of overflow scroll bar
* Remove un-required overflow inline style
2023-05-22 01:40:34 +00:00
dependabot[bot]
67b29f2689
Bump Microsoft.EntityFrameworkCore.InMemory from 7.0.4 to 7.0.5 ( #769 )
...
Bumps [Microsoft.EntityFrameworkCore.InMemory](https://github.com/dotnet/efcore ) from 7.0.4 to 7.0.5.
- [Release notes](https://github.com/dotnet/efcore/releases )
- [Commits](https://github.com/dotnet/efcore/compare/v7.0.4...v7.0.5 )
---
updated-dependencies:
- dependency-name: Microsoft.EntityFrameworkCore.InMemory
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-05-16 17:57:07 +00:00
dependabot[bot]
1a64860fea
Bump Microsoft.NET.Test.Sdk from 17.5.0 to 17.6.0 ( #768 )
...
Bumps [Microsoft.NET.Test.Sdk](https://github.com/microsoft/vstest ) from 17.5.0 to 17.6.0.
- [Release notes](https://github.com/microsoft/vstest/releases )
- [Changelog](https://github.com/microsoft/vstest/blob/main/docs/releases.md )
- [Commits](https://github.com/microsoft/vstest/compare/v17.5.0...v17.6.0 )
---
updated-dependencies:
- dependency-name: Microsoft.NET.Test.Sdk
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-05-16 17:56:47 +00:00
dependabot[bot]
9c4d6e0c76
Bump Redis.OM from 0.5.1 to 0.5.2 ( #767 )
...
Bumps [Redis.OM](https://github.com/redis/redis-om-dotnet ) from 0.5.1 to 0.5.2.
- [Release notes](https://github.com/redis/redis-om-dotnet/releases )
- [Commits](https://github.com/redis/redis-om-dotnet/compare/v0.5.1...v0.5.2 )
---
updated-dependencies:
- dependency-name: Redis.OM
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-05-16 17:56:38 +00:00
Slendy
4c6f2f0e16
Fix CI not running when it should
2023-05-15 15:06:08 -05:00
Josh
1bf4ed6218
Add more unit tests ( #757 )
...
* Reorganize tests into unit/integration pattern
* Make DbSets virtual so they can be overridden by tests
* Add MessageControllerTests
* Implement DigestMiddlewareTests
* Refactor SMTPHelper to follow DI pattern which allows for mocking in unit tests.
* Fix MailQueueService service registration and shutdown
* Implement tests for Status and StatisticsController and reorganize tests
* Start working on UserControllerTests
* Start refactoring tests to use In-Memory EF provider
* Refactor integration tests to reset the database every time
Change default unit testing database credentials
* Update credentials to use default root with different passwords
* Throw exception when integration db is not available instead of falling back to in-memory
* Evaluate DbConnected every time
* Remove default DbContext constructor
* Setup DbContexts with options builder
* Convert remaining Moq DbContexts to InMemory ones
* Add more tests and use Assert.IsType for testing status code
* Add collection attribute to LighthouseServerTest
* Remove unused directives and calculate digest in tests
* Fix digest calculation in tests
* Add test database call
* Clear rooms after each test
* Fix CommentControllerTests.cs
* Disable test parallelization for gameserver tests
* Fix failing tests
Fix SlotTests
Make CreateUser actually add user to database
Fix dbConnected Lazy and change expected status codes
Properly Remove fragment from url for digest calculation
Fix digest calculation for regular requests
[skip ci] Remove unused directive
Don't use Database CreateUser function
Get rid of userId argument for generating random user
Rewrite logic for generating random users
Fix integration tests
* Implement changes from self-code review
* Fix registration tests
* Replace MailQueueService usages with IMailService
2023-05-15 15:00:33 -05:00
Slendy
02f520c717
Fix account unlinking
2023-05-14 14:50:43 -05:00
dependabot[bot]
5e08400170
Bump Selenium.WebDriver.ChromeDriver from 112.0.5615.4900 to 113.0.5672.6300 ( #760 )
...
Bump Selenium.WebDriver.ChromeDriver
Bumps [Selenium.WebDriver.ChromeDriver](https://github.com/jsakamoto/nupkg-selenium-webdriver-chromedriver ) from 112.0.5615.4900 to 113.0.5672.6300.
- [Release notes](https://github.com/jsakamoto/nupkg-selenium-webdriver-chromedriver/releases )
- [Changelog](https://github.com/jsakamoto/nupkg-selenium-webdriver-chromedriver/blob/master/RELEASE-NOTES.txt )
- [Commits](https://github.com/jsakamoto/nupkg-selenium-webdriver-chromedriver/compare/v.112.0.5615.4900...v.113.0.5672.6300 )
---
updated-dependencies:
- dependency-name: Selenium.WebDriver.ChromeDriver
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-05-11 16:59:53 +00:00
dependabot[bot]
6bef1d5390
Bump Selenium.WebDriver from 4.9.0 to 4.9.1 ( #762 )
...
Bumps Selenium.WebDriver from 4.9.0 to 4.9.1.
---
updated-dependencies:
- dependency-name: Selenium.WebDriver
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-05-08 16:26:13 +00:00
Slendy
8cd1d86de8
Make FriendResponse extend ILbpSerializable
2023-05-05 13:07:41 -05:00
koko
613984c69d
Add moderation/permission info to /api/v1/user ( #761 )
...
* Add moderation / permission info to /api/v1/user
* Consolidate everything into a single PermissionLevel reference
2023-05-04 21:35:15 +00:00
jackcaver
9deff7ce63
Implement basic filters and LBP2 CrossController fixes ( #758 )
...
* implement basic filters and lbp2cc fixes
* lbp3 hide lbp2cc slots
* hide lbp2cc levels from hearted and most played categories in lbp3 and basic filters for lbp3
---------
Co-authored-by: jackcaver <jackcaver@users.noreply.github.com>
Co-authored-by: koko <koko@drones.gay>
2023-05-04 14:42:31 +00:00
dependabot[bot]
ab353c502f
Bump Redis.OM from 0.5.0 to 0.5.1 ( #759 )
...
Bumps [Redis.OM](https://github.com/redis/redis-om-dotnet ) from 0.5.0 to 0.5.1.
- [Release notes](https://github.com/redis/redis-om-dotnet/releases )
- [Commits](https://github.com/redis/redis-om-dotnet/compare/v0.5.0...v0.5.1 )
---
updated-dependencies:
- dependency-name: Redis.OM
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-05-03 17:25:20 +00:00
Slendy
38e97a904a
Make FriendsController return text/xml
2023-05-02 21:05:41 -05:00
Josh
3aa9033b67
Rewrite captcha system ( #754 )
...
Rewrite captcha and remove many unused directives
2023-04-29 04:32:42 +00:00
W0lf4llo
aefecc7b12
Make LBP2 lucky dip prefer newer levels and make player count more accurate ( #744 )
...
* Lucky Dip, Newest Levels, & Recently Played change
* almost broke prod :disaster:
* Update ProjectLighthouse.Servers.GameServer/Controllers/Slots/SlotsController.cs
I forgor lol
Co-authored-by: koko <koko@drones.gay>
* Remove TimestampMicros and add random slot selection with bias
* playersInPod count filters by platform
* Hope this actually commits now, idk github
* Apply suggestions from code review
Co-authored-by: Josh <josh@slendy.pw>
* Update ProjectLighthouse.Servers.GameServer/Controllers/StatisticsController.cs
Co-authored-by: Josh <josh@slendy.pw>
* Fix random bias ordering
---------
Co-authored-by: koko <joebiden@kitgaming67.com>
Co-authored-by: koko <koko@drones.gay>
Co-authored-by: Slendy <josh@slendy.pw>
2023-04-29 04:32:36 +00:00
github-actions[bot]
d5f3db9201
Update the localization files ( #756 )
...
[skip ci] Update the localization files
Co-authored-by: Crowdin Bot <support+bot@crowdin.com>
2023-04-28 23:27:21 -05:00
koko
586c161c71
String fix with login/register button ( #755 )
...
* Display "Login" only when registration is off, remove unused BaseLayoutStrings
* Remove un-used strings from BaseLayout
2023-04-29 03:44:33 +00:00
Slendy
d806664b62
Make MatchHelper use ConcurrentDictionary
2023-04-28 22:40:43 -05:00
koko
6f55ce3226
Add basic ability to flag duplicate levels ( #753 )
...
* Add the basics for duplicate level flagging
* Use this.BadRequest instead of StatusCode(500)
* Remove redundant slot creator check
* Include creator entity
* Redirect back to slot page for unauthenticated reqs
* Check if reporter = level creator on server side
* A few formatting nitpicks with the webhook
* Move external url config to a shorter var
* Change duplicate flag button icon to a flag
* Remove accidental dollar sign
Co-authored-by: Josh <josh@slendy.pw>
* Remove another accidental dollar sign
Co-authored-by: Josh <josh@slendy.pw>
* Three dollar signs... I'm blind
Co-authored-by: Josh <josh@slendy.pw>
* Update ProjectLighthouse.Servers.Website/Controllers/Moderator/ModerationSlotController.cs
Co-authored-by: Josh <josh@slendy.pw>
---------
Co-authored-by: Josh <josh@slendy.pw>
2023-04-27 02:48:19 +00:00
Josh
eb79d7cf48
Optimize slot endpoints ( #750 )
...
* Remove AsEnumerable usage in SlotsController
* Remove AsEnumerable usages from LBP3 categories
* Fix typo in OrderBy statement
2023-04-26 20:13:27 +00:00
dependabot[bot]
6b3b8d8271
Bump Selenium.WebDriver from 4.8.2 to 4.9.0 ( #752 )
...
Bumps Selenium.WebDriver from 4.8.2 to 4.9.0.
---
updated-dependencies:
- dependency-name: Selenium.WebDriver
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-04-25 17:03:26 +00:00
dependabot[bot]
3e7adf5208
Bump YamlDotNet from 13.0.2 to 13.1.0 ( #751 )
...
Bumps [YamlDotNet](https://github.com/aaubry/YamlDotNet ) from 13.0.2 to 13.1.0.
- [Release notes](https://github.com/aaubry/YamlDotNet/releases )
- [Commits](https://github.com/aaubry/YamlDotNet/compare/v13.0.2...v13.1.0 )
---
updated-dependencies:
- dependency-name: YamlDotNet
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-04-25 17:03:20 +00:00
Slendy
bd6bbbde96
Bump EntityFramework related packages to 7.0.5
2023-04-25 11:39:48 -05:00
dependabot[bot]
8c19634e09
Bump dotnet-trace from 6.0.351802 to 7.0.421201 ( #749 )
...
Bumps [dotnet-trace](https://github.com/dotnet/diagnostics ) from 6.0.351802 to 7.0.421201.
- [Release notes](https://github.com/dotnet/diagnostics/releases )
- [Commits](https://github.com/dotnet/diagnostics/compare/v6.0.351802...v7.0.421201 )
---
updated-dependencies:
- dependency-name: dotnet-trace
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-04-25 16:26:13 +00:00
dependabot[bot]
b46959762c
Bump dotnet-ef from 7.0.4 to 7.0.5 ( #748 )
...
Bumps [dotnet-ef](https://github.com/dotnet/efcore ) from 7.0.4 to 7.0.5.
- [Release notes](https://github.com/dotnet/efcore/releases )
- [Commits](https://github.com/dotnet/efcore/compare/v7.0.4...v7.0.5 )
---
updated-dependencies:
- dependency-name: dotnet-ef
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-04-25 16:24:37 +00:00
dependabot[bot]
9f14a2019f
Bump BouncyCastle.Cryptography from 2.1.1 to 2.2.1 ( #747 )
...
Bumps [BouncyCastle.Cryptography](https://github.com/bcgit/bc-csharp ) from 2.1.1 to 2.2.1.
- [Release notes](https://github.com/bcgit/bc-csharp/releases )
- [Commits](https://github.com/bcgit/bc-csharp/compare/release-2.1.1...release-2.2.1 )
---
updated-dependencies:
- dependency-name: BouncyCastle.Cryptography
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-04-25 16:24:01 +00:00
dependabot[bot]
02896fee86
Bump Microsoft.AspNetCore.Mvc.Testing from 7.0.4 to 7.0.5 ( #739 )
...
Bumps [Microsoft.AspNetCore.Mvc.Testing](https://github.com/dotnet/aspnetcore ) from 7.0.4 to 7.0.5.
- [Release notes](https://github.com/dotnet/aspnetcore/releases )
- [Changelog](https://github.com/dotnet/aspnetcore/blob/main/docs/ReleasePlanning.md )
- [Commits](https://github.com/dotnet/aspnetcore/compare/v7.0.4...v7.0.5 )
---
updated-dependencies:
- dependency-name: Microsoft.AspNetCore.Mvc.Testing
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-04-25 13:54:53 +00:00
dependabot[bot]
8b1fa0908e
Bump Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation from 7.0.4 to 7.0.5 ( #742 )
...
Bump Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation
Bumps [Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation](https://github.com/dotnet/aspnetcore ) from 7.0.4 to 7.0.5.
- [Release notes](https://github.com/dotnet/aspnetcore/releases )
- [Changelog](https://github.com/dotnet/aspnetcore/blob/main/docs/ReleasePlanning.md )
- [Commits](https://github.com/dotnet/aspnetcore/compare/v7.0.4...v7.0.5 )
---
updated-dependencies:
- dependency-name: Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-04-25 13:54:30 +00:00
dependabot[bot]
1d34d64fb2
Bump Redis.OM from 0.4.2 to 0.5.0 ( #743 )
...
Bumps [Redis.OM](https://github.com/redis/redis-om-dotnet ) from 0.4.2 to 0.5.0.
- [Release notes](https://github.com/redis/redis-om-dotnet/releases )
- [Commits](https://github.com/redis/redis-om-dotnet/compare/v0.4.2...v0.5.0 )
---
updated-dependencies:
- dependency-name: Redis.OM
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-04-25 13:54:11 +00:00
Slendy
ddee367586
Add more logging to resources and matching
...
Change uploading to use ReadAllAsync instead of readFromPipeReader
2023-04-20 11:00:55 -05:00
Slendy
f03d1d7c17
Utilize EF 7 bulk delete operations instead of RemoveRange
2023-04-18 20:45:42 -05:00
uh wot
48c3384e0c
Allow streaming chunk filetype in mod filter ( #745 )
2023-04-18 20:59:25 +00:00
Slendy
fc522b33a4
Serialize SlotType with Slot API responses
2023-04-15 22:39:33 -05:00
dependabot[bot]
9b7924cd07
Bump Selenium.WebDriver.ChromeDriver from 111.0.5563.6400 to 112.0.5615.4900 ( #733 )
...
Bump Selenium.WebDriver.ChromeDriver
Bumps [Selenium.WebDriver.ChromeDriver](https://github.com/jsakamoto/nupkg-selenium-webdriver-chromedriver ) from 111.0.5563.6400 to 112.0.5615.4900.
- [Release notes](https://github.com/jsakamoto/nupkg-selenium-webdriver-chromedriver/releases )
- [Changelog](https://github.com/jsakamoto/nupkg-selenium-webdriver-chromedriver/blob/master/RELEASE-NOTES.txt )
- [Commits](https://github.com/jsakamoto/nupkg-selenium-webdriver-chromedriver/compare/v.111.0.5563.6400...v.112.0.5615.4900 )
---
updated-dependencies:
- dependency-name: Selenium.WebDriver.ChromeDriver
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-04-14 23:27:22 +00:00
Slendy
c558d5aebf
Fix duplicate photos on levels
2023-04-14 16:45:56 -05:00
Slendy
e1405c9de4
Parse request bodies as UTF8 instead of ASCII
2023-04-14 16:45:10 -05:00
Slendy
d8c36923d9
Fix deserialized PhotoSubject bounds not being set in database entity
2023-04-11 20:27:43 -05:00
Slendy
5fbaa5df20
Fix level republishing not updating resource or rootLevel
2023-04-11 20:23:43 -05:00
koko
c50e53ad9a
Display a lock icon next to locked levels ( #738 )
...
* Display a lock icon next to locked levels
* C# Return Switch shenanigans
* No clue where that line break came from
* Don't render a semicolon
* Move permission level color/lock icon to website extension
* Simplify GetLevelLockIcon
---------
Co-authored-by: Josh <josh@slendy.pw>
2023-04-11 02:16:03 +00:00
Slendy
8e096052ce
Fix duplicate photos on in-game profiles
2023-04-10 20:53:32 -05:00
Slendy
5028266ca0
Fix serialization of Photo LargeHash
2023-04-10 01:59:54 -05:00
Slendy
a706ef6836
Don't log contentLength warnings if the header is null
2023-04-07 21:00:08 -05:00
Slendy
7eeda59eab
Fix digest calculation when using deflate compression
2023-04-06 22:29:31 -05:00
Slendy
4150e44f80
Refactor code for reading the body of a request
2023-04-06 22:23:49 -05:00
Slendy
2372dfbb9e
Store XML serializers in ConcurrentDictionary for thread safety
2023-04-05 00:09:46 -05:00
Slendy
767f6271f2
Include internal slot ID in ApiSlot response
2023-04-04 20:53:45 -05:00
Slendy
f2dd41dd52
Revert slot API to old functionality
2023-04-04 20:51:53 -05:00