fix: Some error on setup server.
This commit is contained in:
parent
87745c1d61
commit
a11aeeea8c
@ -1,15 +1,15 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<project version="4">
|
<project version="4">
|
||||||
<component name="DataSourceManagerImpl" format="xml" multifile-model="true">
|
<component name="DataSourceManagerImpl" format="xml" multifile-model="true">
|
||||||
<data-source source="LOCAL" name="postgres@localhost" uuid="fcb3a985-405e-4a4d-9f94-39584f3e89bb">
|
<data-source source="LOCAL" name="postgres@192.168.10.172" uuid="29452365-bc84-49b7-b6ba-0747cd083906">
|
||||||
<driver-ref>postgresql</driver-ref>
|
<driver-ref>postgresql</driver-ref>
|
||||||
<synchronize>true</synchronize>
|
<synchronize>true</synchronize>
|
||||||
<configured-by-url>true</configured-by-url>
|
|
||||||
<jdbc-driver>org.postgresql.Driver</jdbc-driver>
|
<jdbc-driver>org.postgresql.Driver</jdbc-driver>
|
||||||
<jdbc-url>jdbc:postgresql://localhost:5432/postgres</jdbc-url>
|
<jdbc-url>jdbc:postgresql://192.168.10.172:5432/postgres</jdbc-url>
|
||||||
<jdbc-additional-properties>
|
<jdbc-additional-properties>
|
||||||
<property name="com.intellij.clouds.kubernetes.db.host.port" />
|
<property name="com.intellij.clouds.kubernetes.db.host.port" />
|
||||||
<property name="com.intellij.clouds.kubernetes.db.enabled" value="false" />
|
<property name="com.intellij.clouds.kubernetes.db.enabled" value="false" />
|
||||||
|
<property name="com.intellij.clouds.kubernetes.db.resource.type" value="Deployment" />
|
||||||
<property name="com.intellij.clouds.kubernetes.db.container.port" />
|
<property name="com.intellij.clouds.kubernetes.db.container.port" />
|
||||||
</jdbc-additional-properties>
|
</jdbc-additional-properties>
|
||||||
<working-dir>$ProjectFileDir$</working-dir>
|
<working-dir>$ProjectFileDir$</working-dir>
|
||||||
|
|||||||
@ -59,13 +59,13 @@
|
|||||||
<Assembly Path="C:\Users\Cardi\.nuget\packages\irihi.ursa.themes.semi\1.10.0\lib\netstandard2.0\Ursa.Themes.Semi.dll" />
|
<Assembly Path="C:\Users\Cardi\.nuget\packages\irihi.ursa.themes.semi\1.10.0\lib\netstandard2.0\Ursa.Themes.Semi.dll" />
|
||||||
<Assembly Path="C:\Users\Cardi\.nuget\packages\reactiveui\20.1.1\lib\net8.0\ReactiveUI.dll" />
|
<Assembly Path="C:\Users\Cardi\.nuget\packages\reactiveui\20.1.1\lib\net8.0\ReactiveUI.dll" />
|
||||||
</AssemblyExplorer></s:String>
|
</AssemblyExplorer></s:String>
|
||||||
<s:String x:Key="/Default/Environment/UnitTesting/UnitTestSessionStore/Sessions/=b5573ef9_002Db554_002D4a56_002D82c4_002D2531c8feef65/@EntryIndexedValue"><SessionState ContinuousTestingMode="0" IsActive="True" IsLocked="True" Name="PathValidationTest" xmlns="urn:schemas-jetbrains-com:jetbrains-ut-session">
|
<s:String x:Key="/Default/Environment/UnitTesting/UnitTestSessionStore/Sessions/=b5573ef9_002Db554_002D4a56_002D82c4_002D2531c8feef65/@EntryIndexedValue"><SessionState ContinuousTestingMode="0" IsActive="True" IsLocked="True" Name="PathValidationTest" xmlns="urn:schemas-jetbrains-com:jetbrains-ut-session">
|
||||||
<TestAncestor>
|
<TestAncestor>
|
||||||
<TestId>MSTest::5B1CB26D-99F5-491A-B368-7E3552FE67E9::net9.0::Flawless.Abstract.Test.WorkPathTestUnit</TestId>
|
<TestId>MSTest::5B1CB26D-99F5-491A-B368-7E3552FE67E9::net9.0::Flawless.Abstract.Test.WorkPathTestUnit</TestId>
|
||||||
</TestAncestor>
|
</TestAncestor>
|
||||||
</SessionState></s:String>
|
</SessionState></s:String>
|
||||||
<s:String x:Key="/Default/Environment/UnitTesting/UnitTestSessionStore/Sessions/=f3f8a684_002Dc08e_002D489f_002D949c_002D6c38a1ed63b0/@EntryIndexedValue"><SessionState ContinuousTestingMode="0" Name="PathValidationTest #2" xmlns="urn:schemas-jetbrains-com:jetbrains-ut-session">
|
<s:String x:Key="/Default/Environment/UnitTesting/UnitTestSessionStore/Sessions/=f3f8a684_002Dc08e_002D489f_002D949c_002D6c38a1ed63b0/@EntryIndexedValue"><SessionState ContinuousTestingMode="0" Name="PathValidationTest #2" xmlns="urn:schemas-jetbrains-com:jetbrains-ut-session">
|
||||||
<TestAncestor>
|
<TestAncestor>
|
||||||
<TestId>MSTest::5B1CB26D-99F5-491A-B368-7E3552FE67E9::net9.0::Flawless.Abstract.Test.WorkPathTestUnit.PathValidationTest</TestId>
|
<TestId>MSTest::5B1CB26D-99F5-491A-B368-7E3552FE67E9::net9.0::Flawless.Abstract.Test.WorkPathTestUnit.PathValidationTest</TestId>
|
||||||
</TestAncestor>
|
</TestAncestor>
|
||||||
</SessionState></s:String></wpf:ResourceDictionary>
|
</SessionState></s:String></wpf:ResourceDictionary>
|
||||||
@ -1274,7 +1274,7 @@ public class RepositoryService : BaseService<RepositoryService>
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Point to newest state.
|
// Point to latest state.
|
||||||
localDb.RepoAccessor = accessor;
|
localDb.RepoAccessor = accessor;
|
||||||
localDb.CurrentCommit = rsp.CommitId;
|
localDb.CurrentCommit = rsp.CommitId;
|
||||||
localDb.LocalAccessor.SetBaseline(accessor);
|
localDb.LocalAccessor.SetBaseline(accessor);
|
||||||
|
|||||||
@ -48,6 +48,7 @@ public class AuthenticationController(
|
|||||||
Email = r.AdminEmail,
|
Email = r.AdminEmail,
|
||||||
EmailConfirmed = true,
|
EmailConfirmed = true,
|
||||||
CreatedOn = DateTime.UtcNow,
|
CreatedOn = DateTime.UtcNow,
|
||||||
|
Admin = true
|
||||||
};
|
};
|
||||||
|
|
||||||
user.RenewSecurityStamp();
|
user.RenewSecurityStamp();
|
||||||
|
|||||||
@ -34,7 +34,7 @@ public class RepositoryInnieController(
|
|||||||
{
|
{
|
||||||
var u = (await userManager.GetUserAsync(HttpContext.User))!;
|
var u = (await userManager.GetUserAsync(HttpContext.User))!;
|
||||||
var grantIssue = await ValidateRepositoryAsync(userName, repositoryName, u, RepositoryRole.Guest);
|
var grantIssue = await ValidateRepositoryAsync(userName, repositoryName, u, RepositoryRole.Guest);
|
||||||
if (grantIssue is not Repository) return (ActionResult) grantIssue;
|
if (grantIssue is not Repository rp) return (ActionResult) grantIssue;
|
||||||
|
|
||||||
await using (var t = await dbContext.Database.BeginTransactionAsync())
|
await using (var t = await dbContext.Database.BeginTransactionAsync())
|
||||||
{
|
{
|
||||||
@ -43,10 +43,22 @@ public class RepositoryInnieController(
|
|||||||
.Include(x => x.Depots)
|
.Include(x => x.Depots)
|
||||||
.Include(x => x.Members)
|
.Include(x => x.Members)
|
||||||
.Include(x => x.Locked)
|
.Include(x => x.Locked)
|
||||||
.FirstAsync(x => x.Name == repositoryName && x.Owner.UserName == userName);
|
.FirstAsync(x => x == rp);
|
||||||
|
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
|
await dbContext.Webhooks
|
||||||
|
.Where(x => x.Repository == rp)
|
||||||
|
.ExecuteDeleteAsync();
|
||||||
|
|
||||||
|
await dbContext.RepositoryIssues
|
||||||
|
.Where(x => x.Repository == rp)
|
||||||
|
.SelectMany(x => x.Contents).ExecuteDeleteAsync();
|
||||||
|
|
||||||
|
await dbContext.RepositoryIssues
|
||||||
|
.Where(x => x.Repository == rp)
|
||||||
|
.ExecuteDeleteAsync();
|
||||||
|
|
||||||
set.Commits.Clear();
|
set.Commits.Clear();
|
||||||
set.Depots.Clear();
|
set.Depots.Clear();
|
||||||
set.Members.Clear();
|
set.Members.Clear();
|
||||||
|
|||||||
@ -7,7 +7,7 @@
|
|||||||
},
|
},
|
||||||
"AllowedHosts": "*",
|
"AllowedHosts": "*",
|
||||||
"ConnectionStrings": {
|
"ConnectionStrings": {
|
||||||
"CoreDb": "Server=localhost;Port=5432;User Id=postgres;Password=postgres;Database=flawless"
|
"CoreDb": "Server=192.168.10.172;Port=5432;User Id=postgres;Password=postgres;Database=flawless"
|
||||||
},
|
},
|
||||||
"LocalStoragePath": "./data/development",
|
"LocalStoragePath": "./data/development",
|
||||||
"User": {
|
"User": {
|
||||||
|
|||||||
@ -7,15 +7,16 @@
|
|||||||
},
|
},
|
||||||
"AllowedHosts": "*",
|
"AllowedHosts": "*",
|
||||||
"ConnectionStrings": {
|
"ConnectionStrings": {
|
||||||
"CoreDb": "Server=localhost;Port=5432;User Id=postgres;Password=postgres;Database=flawless"
|
"CoreDb": "Server=192.168.10.172;Port=5432;User Id=postgres;Password=postgres;Database=flawless"
|
||||||
},
|
},
|
||||||
"LocalStoragePath": "./data/production",
|
"LocalStoragePath": "./data/development",
|
||||||
"User": {
|
"User": {
|
||||||
"PublicRegister": false
|
"PublicRegister": true
|
||||||
},
|
},
|
||||||
"Jwt": {
|
"Jwt": {
|
||||||
"SecretKey": "your_256bit_security_key_at_here_otherwise_not_bootable",
|
"SecretKey": "your_256bit_security_key_at_here_otherwise_not_bootable",
|
||||||
"Issuer": "test",
|
"Issuer": "test",
|
||||||
"ExpiresIn": 30
|
"ExpiresIn": 30,
|
||||||
|
"RefreshTokenLifeTime": 7
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user