-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor tenant configuration (#103)
* Add ISiteContext.Position for sort order of tenant lists (e.g. in navigation) * Add rules for teams' home venue Default: TournamentContext.TeamRuleSet.HomeVenue.MustBeSet == true * Update nuget packages for TournamentManager
- Loading branch information
Showing
17 changed files
with
1,156 additions
and
988 deletions.
There are no files selected for viewing
330 changes: 170 additions & 160 deletions
330
League.Demo/Configuration/Tenant.Default.Development.config
Large diffs are not rendered by default.
Oops, something went wrong.
329 changes: 169 additions & 160 deletions
329
League.Demo/Configuration/Tenant.Default.Production.config
Large diffs are not rendered by default.
Oops, something went wrong.
330 changes: 170 additions & 160 deletions
330
League.Demo/Configuration/Tenant.OtherOrg.Development.config
Large diffs are not rendered by default.
Oops, something went wrong.
329 changes: 169 additions & 160 deletions
329
League.Demo/Configuration/Tenant.OtherOrg.Production.config
Large diffs are not rendered by default.
Oops, something went wrong.
330 changes: 170 additions & 160 deletions
330
League.Demo/Configuration/Tenant.TestOrg.Development.config
Large diffs are not rendered by default.
Oops, something went wrong.
330 changes: 170 additions & 160 deletions
330
League.Demo/Configuration/Tenant.TestOrg.Production.config
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,69 @@ | ||
/* Data for the 'dbo.IdentityRole' table (Records 1 - 2) */ | ||
|
||
SET IDENTITY_INSERT dbo.IdentityRole ON; | ||
GO | ||
INSERT INTO dbo.IdentityRole (Id, Name) | ||
VALUES | ||
(1, N'SystemManager'), | ||
(2, N'TournamentManager') | ||
GO | ||
SET IDENTITY_INSERT dbo.IdentityRole OFF; | ||
GO | ||
|
||
/* Data for the 'dbo.MatchRule' table (Records 1 - 1) */ | ||
|
||
SET IDENTITY_INSERT dbo.MatchRule ON; | ||
GO | ||
INSERT INTO dbo.MatchRule (Id, Name, NumOfSets, BestOf, PointsMatchWon, PointsMatchLost, PointsMatchWonAfterTieBreak, PointsMatchLostAfterTieBreak, PointsMatchTie, RankComparer, CreatedOn, ModifiedOn) | ||
VALUES | ||
(1, N'3 sets to win, tie-break rule', 3, 1, 3, 0, 2, 1, 0, 1, GETDATE(), GETDATE()) | ||
SET IDENTITY_INSERT dbo.MatchRule OFF; | ||
GO | ||
|
||
/* Data for the 'dbo.SetRule' table (Records 1 - 1) */ | ||
|
||
SET IDENTITY_INSERT dbo.SetRule ON; | ||
GO | ||
INSERT INTO dbo.SetRule (Id, Name, NumOfPointsToWinRegular, NumOfPointsToWinTiebreak, PointsDiffToWinRegular, PointsDiffToWinTiebreak, PointsSetLost, PointsSetTie, PointsSetWon, MaxTimeouts, MaxSubstitutions, CreatedOn, ModifiedOn) | ||
VALUES | ||
(1, N'Indoor set rule', 25, 15, 2, 2, 0, 0, 1, 2, 6, GETDATE(), GETDATE()), | ||
(1, N'Beach set rule', 21, 15, 2, 2, 0, 0, 1, 2, 0, GETDATE(), GETDATE()) | ||
GO | ||
SET IDENTITY_INSERT dbo.SetRule OFF; | ||
GO | ||
|
||
/* Data for the 'dbo.RoundType' table (Records 1 - 1) */ | ||
|
||
SET IDENTITY_INSERT dbo.RoundType ON; | ||
GO | ||
INSERT INTO dbo.RoundType (Id, Name, Description, CreatedOn, ModifiedOn) | ||
VALUES | ||
(1, N'Female', N'Female teams', GETDATE(), GETDATE()), | ||
(2, N'Male', N'Male teams', GETDATE(), GETDATE()), | ||
(3, N'Mixed', N'Mixed teams', GETDATE(), GETDATE()) | ||
GO | ||
SET IDENTITY_INSERT dbo.RoundType OFF; | ||
GO | ||
|
||
|
||
/* Data for the 'dbo.User' table (Records 1 - 1) */ | ||
|
||
SET IDENTITY_INSERT dbo.[User] ON; | ||
GO | ||
INSERT INTO dbo.[User] (Id, Guid, UserName, PasswordHash, Email, EmailConfirmedOn, PhoneNumber, PhoneNumberConfirmedOn, LastLoginOn, AccessFailedCount, LockoutEndDateUtc, Gender, Title, FirstName, MiddleName, LastName, Nickname, PhoneNumber2, Email2, Birthday, Remarks, CreatedOn, ModifiedOn) | ||
VALUES | ||
(1, N'49afc1e5-d439-40d7-bb13-ce994a825069', N'sysadmin', NULL, N'admin@axuno.net', '20230817', N'', NULL, NULL, 0, NULL, N'm', N'', N'admin', N'', N'admin', N'', N'', N'', NULL, NULL, '20230817', '20230817') | ||
GO | ||
SET IDENTITY_INSERT dbo.[User] OFF; | ||
GO | ||
|
||
/* Data for the 'dbo.IdentityUserRole' table (Records 1 - 1) */ | ||
|
||
SET IDENTITY_INSERT dbo.IdentityUserRole ON; | ||
GO | ||
INSERT INTO dbo.IdentityUserRole (Id, UserId, RoleId) | ||
VALUES | ||
(1, 1, 1) | ||
GO | ||
SET IDENTITY_INSERT dbo.IdentityUserRole OFF; | ||
GO |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
13 changes: 7 additions & 6 deletions
13
League/Views/Shared/NavigationNodeChildDropdownPartial.cshtml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters