Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Leaderboard changes from demo #5

Merged
merged 37 commits into from
Mar 22, 2024
Merged
Changes from 1 commit
Commits
Show all changes
37 commits
Select commit Hold shift + click to select a range
6dc09a0
docker in root
bruno-garcia Mar 10, 2024
e51a4b7
in-memory db
bruno-garcia Mar 10, 2024
7f21230
in-memory db
bruno-garcia Mar 10, 2024
7db225f
dotnet build sln
bruno-garcia Mar 10, 2024
3e256a3
Update and rename dotnet-desktop.yml to dotnet-build.yml
bruno-garcia Mar 10, 2024
5c8d82d
publish blazor app
bruno-garcia Mar 10, 2024
e457f10
push pages
bruno-garcia Mar 10, 2024
758e7aa
use linux for deploy
bruno-garcia Mar 10, 2024
1fab3f1
push wwwroot
bruno-garcia Mar 10, 2024
42f57b4
live backend
bruno-garcia Mar 10, 2024
ea4e295
dsn api
bruno-garcia Mar 10, 2024
92ca63d
favicon sentry
bruno-garcia Mar 10, 2024
59b5c4f
fix icon type
bruno-garcia Mar 10, 2024
d8dc72f
add js sdk
bruno-garcia Mar 10, 2024
3c0b321
fix op name
bruno-garcia Mar 11, 2024
c826157
publish gha only on main
bruno-garcia Mar 11, 2024
f8601ac
jwt ftw
bitsandfoxes Mar 12, 2024
bb438a0
Merge branch 'main' into feat/authentication
bitsandfoxes Mar 12, 2024
dce32da
bump sentry sdk 4.2.1
bruno-garcia Mar 12, 2024
cbeb737
cleanup and put user in config file
bitsandfoxes Mar 12, 2024
c44c635
Merge pull request #1 from sentry-demos/feat/authentication
bitsandfoxes Mar 12, 2024
d184eb7
added delete
bitsandfoxes Mar 13, 2024
3fc611b
fix warning nullability
bruno-garcia Mar 14, 2024
c2e5d93
postgres
bruno-garcia Mar 14, 2024
6f867d5
move dev config to dev file
bruno-garcia Mar 14, 2024
203b2d9
use posgres in release builds
bruno-garcia Mar 17, 2024
37ca5d0
cloud build
bruno-garcia Mar 17, 2024
3546811
upload symbols
bruno-garcia Mar 17, 2024
b26a704
pass down auth token for symbol upload
bruno-garcia Mar 17, 2024
c2eb59a
throw endpoint
bruno-garcia Mar 17, 2024
069dcc4
don't insert mock data
bruno-garcia Mar 17, 2024
3fe1e78
remove in-memory db
bruno-garcia Mar 17, 2024
058d6b1
add sentry to anti-cheat
bruno-garcia Mar 17, 2024
c6206dd
show time in PST
bruno-garcia Mar 22, 2024
5d01eb7
use local timezone
bruno-garcia Mar 22, 2024
0a65ae8
lottery (#3)
bruno-garcia Mar 22, 2024
f177078
readme
bruno-garcia Mar 22, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
in-memory db
bruno-garcia committed Mar 10, 2024
commit 7f212304e32a2a7ecb7b08a11bfdd984cb8114dd
3 changes: 2 additions & 1 deletion Sentaur.Leaderboard.Api/LeaderboardContext.cs
Original file line number Diff line number Diff line change
@@ -24,5 +24,6 @@ protected override void OnModelCreating(ModelBuilder modelBuilder)
}

protected override void OnConfiguring(DbContextOptionsBuilder options)
=> options.UseSqlite($"Data Source={_dbPath}");
=> options.UseInMemoryDatabase("InMemoryDb");
// => options.UseSqlite($"Data Source={_dbPath}");
}
5 changes: 4 additions & 1 deletion Sentaur.Leaderboard.Api/Program.cs
Original file line number Diff line number Diff line change
@@ -44,7 +44,10 @@
using (var scope = app.Services.CreateScope())
{
var context = scope.ServiceProvider.GetRequiredService<LeaderboardContext>();
context.Database.Migrate();
if (!context.Database.IsInMemory())
{
context.Database.Migrate();
}
if (!context.ScoreEntries.Any())
{
context.ScoreEntries.AddRange(MockData.MockScores);
3 changes: 2 additions & 1 deletion Sentaur.Leaderboard.Api/Sentaur.Leaderboard.Api.csproj
Original file line number Diff line number Diff line change
@@ -13,7 +13,8 @@
<PrivateAssets>all</PrivateAssets>
</PackageReference>
<PackageReference Include="Microsoft.EntityFrameworkCore.InMemory" Version="8.0.2" />
<PackageReference Include="Microsoft.EntityFrameworkCore.Sqlite" Version="8.0.2" />
<PackageReference Include="Microsoft.EntityFrameworkCore.Relational" Version="8.0.2" />
<!-- <PackageReference Include="Microsoft.EntityFrameworkCore.Sqlite" Version="8.0.2" />-->
<PackageReference Include="Sentry.AspNetCore" Version="4.1.2" />
<PackageReference Include="Swashbuckle.AspNetCore" Version="6.4.0" />
</ItemGroup>