Commit graph

2254 commits

Author SHA1 Message Date
Laura Hausmann
eba2ce0119
[sln] Add solution folders 2024-11-19 03:14:24 +01:00
Laura Hausmann
ee9279bb5f
[build] Disable gzip compression during build 2024-11-19 03:14:13 +01:00
Laura Hausmann
1511692b1e
[docker] Add workaround for wasm-opt stack size issue 2024-11-18 22:49:32 +01:00
Laura Hausmann
8d469b07df
[docker] Add python3 to iceshrimp/dotnet-sdk:9.0-alpine-wasm
This partially fixes AOT docker builds (it doesn't fix the emcc segfault, though)
2024-11-18 19:43:19 +01:00
Laura Hausmann
0ee5ff377e
[backend] Move OutputCacheMiddleware into UseCustomMiddleware to make the order more obvious 2024-11-18 19:20:23 +01:00
Laura Hausmann
b4ebe00cdb
[docker] Copy build task files before building 2024-11-18 19:15:14 +01:00
Laura Hausmann
c3cfbbcbee
[docker] Add missing dependency reference 2024-11-18 19:13:52 +01:00
Laura Hausmann
8926081d11
[docker] Update dockerfile 2024-11-18 19:11:43 +01:00
Laura Hausmann
dd7b7634c6
[backend/core] Convert scoped services with request-specific properties to singletons by utilizing AsyncLocal<T> 2024-11-18 19:02:44 +01:00
Laura Hausmann
4356a47b9d
[backend/asp] Make services runtime-discoverable 2024-11-18 19:02:44 +01:00
Laura Hausmann
705e061f74
[backend/asp] Refactor middleware stack
This commit splits the request pipeline conditionally instead of invoking every middleware in the stack.

It also simplifies middleware instantiation by using runtime discovery, allowing for Plugins to add Middleware.
2024-11-18 19:02:44 +01:00
Laura Hausmann
70c692e1cb
[backend/razor] Add error code to ErrorPage title 2024-11-18 19:02:43 +01:00
Laura Hausmann
4af69a6afa
[backend/asp] Add ExceptionVerbosity level Debug 2024-11-18 19:02:43 +01:00
Laura Hausmann
f252c1a85e
[backend] Code cleanup 2024-11-18 19:02:43 +01:00
Laura Hausmann
86762dc386
[backend/asp] Make BlazorSsrHandoffMiddleware less hacky 2024-11-18 19:02:43 +01:00
Laura Hausmann
3b8a4b89a9
[backend/openapi] Replace ConsumesHybrid condition with FromHybrid 2024-11-18 19:02:43 +01:00
Laura Hausmann
2c0e0d0922
[backend/openapi] Don't regenerate OpenAPI schemas files on every request 2024-11-18 19:02:43 +01:00
Laura Hausmann
84b8553a40
[backend/database] Switch to in-model entity configuration 2024-11-18 19:02:43 +01:00
Laura Hausmann
59d14297a3
[backend/startup] Log initialization time during startup 2024-11-18 19:02:43 +01:00
Laura Hausmann
1200bcbba5
[make] Compile database model in release builds
Ideally we'd want to do this during publish, however due to upstream issues with the MSBuild task, this will suffice for now.

Reduces startup time by ~500ms.
2024-11-18 19:02:43 +01:00
Laura Hausmann
ff59b07035
[backend/federation] Add short-lived cache for non-specific federation requests 2024-11-18 19:02:42 +01:00
Laura Hausmann
762278426f
[backend/csproj] Update in-house dependencies to net90 2024-11-18 19:02:42 +01:00
Laura Hausmann
1e5c033fb1
[backend/razor] Add transparent decompression hook to MapStaticAssets, replacing the old BlazorFrameworkFiles hook 2024-11-18 19:02:42 +01:00
Laura Hausmann
6b4e372973
[backend/razor] Strip all non-brotli-compressed static assets, not just blazor framework ones 2024-11-18 19:02:42 +01:00
Laura Hausmann
b6714dbba9
[backend/razor] Switch to MapStaticAssets
This allows for fingerprinted filenames, ETags & enhanced caching.
2024-11-18 19:02:42 +01:00
Laura Hausmann
4186388d4c
[backend/openapi] Add scalar-ui, add OpenAPI overview page 2024-11-18 19:02:42 +01:00
Laura Hausmann
01bd71c97d
[backend/razor] Switch to constructor injection in Blazor SSR code-behind files 2024-11-18 19:02:42 +01:00
Laura Hausmann
ce0cc58738
[tests] Use FSharpList collection expressions in MFM tests, refactor Dictionary initializers for better readability 2024-11-18 19:02:42 +01:00
Laura Hausmann
ffb1678169
[ci] Switch to net90 CI images 2024-11-18 19:02:42 +01:00
Laura Hausmann
107d9314a9
[backend/database] Fix design-time database updates 2024-11-18 19:02:41 +01:00
Laura Hausmann
752c22980d
[backend/federation] Fix FilterHidden with except userId failing to translate
This seems to be an EF 9 specific bug, though I can't reproduce it in an isolated query. Benchmarks say the resulting queries perform identically, so I don't think this is much of an issue.
2024-11-18 19:02:41 +01:00
Laura Hausmann
6c76b2b2c5
[backend] Switch params methods to IEnumerable<T> 2024-11-18 19:02:41 +01:00
Laura Hausmann
b49be2f904
[backend/database] Fix efcore.pg v9 enum mapping 2024-11-18 19:02:41 +01:00
Laura Hausmann
a18c1c59ea
[parsing] Fix compatibility with the new F# reference type nullability checks 2024-11-18 19:02:41 +01:00
Laura Hausmann
e3bce3bc0e
[sln] Update dependencies to their latest non-preview versions (where available) 2024-11-18 19:02:41 +01:00
Laura Hausmann
1e3f9f0c1f
[sln] Remove NuGetAuditMode='all' property (enabled by default in .NET 9) 2024-11-18 19:02:41 +01:00
Laura Hausmann
c0eec686ca
[backend/csproj] Drop DATAS opt-in (enabled by default in .NET 9) 2024-11-18 19:02:41 +01:00
Laura Hausmann
8d288e9f44
[backend/core] Convert GeneratedRegex partial methods to partial properties 2024-11-18 19:02:41 +01:00
Laura Hausmann
c6adb0bee1
[backend/core] Switch to lock objects for locking purposes 2024-11-18 19:02:40 +01:00
Laura Hausmann
946062a0ae
[docker] Update Dockerfile
Since https://github.com/dotnet/sdk/issues/32327 is resolved in net90, we no longer need to build with ubuntu.
2024-11-18 19:02:40 +01:00
Laura Hausmann
ee7d4d1477
[sln] Update SDK version to 9.0 2024-11-18 19:02:40 +01:00
pancakes
602d207ea5
[frontend/components] Add private badge to locked profiles 2024-11-19 00:48:27 +10:00
pancakes
c11beba8a7
[backend] Add IsLocked to UserProfileResponse 2024-11-19 00:47:36 +10:00
Laura Hausmann
da83dd9c8e
[ci] Switch to versioned ci-env tags 2024-11-17 19:14:02 +01:00
Laura Hausmann
940e6f847e
[backend/drive] Fix errors when uploading files with long names containing unicode characters to object storage 2024-11-17 17:12:19 +01:00
Laura Hausmann
2ef78e3f41
[parsing] Add strike html tag support, keep italic/bold/strike in html tag form when reserializing 2024-11-17 16:44:05 +01:00
pancakes
cd84b480a6
[frontend/components] Add bot indicator to notes (ISH-407) 2024-11-17 13:44:30 +01:00
pancakes
e0d63d9a6b
[frontend] Move follows you badge next to identifier 2024-11-17 13:44:30 +01:00
pancakes
b5ced00a73
[frontend/components] Add automated badge to profile info 2024-11-17 13:44:29 +01:00
pancakes
68684dbfcb
[backend] Add bot and cat fields to users 2024-11-17 13:44:29 +01:00