-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed issues found during alerts snagging session (#1649)
- Loading branch information
Showing
94 changed files
with
3,532 additions
and
267 deletions.
There are no files selected for viewing
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
3,163 changes: 3,163 additions & 0 deletions
3,163
...cordSystem.Core/DataStore/Postgres/Migrations/20241105153742_AlertTypeTypoFix.Designer.cs
Large diffs are not rendered by default.
Oops, something went wrong.
33 changes: 33 additions & 0 deletions
33
...eachingRecordSystem.Core/DataStore/Postgres/Migrations/20241105153742_AlertTypeTypoFix.cs
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,33 @@ | ||
using System; | ||
using Microsoft.EntityFrameworkCore.Migrations; | ||
|
||
#nullable disable | ||
|
||
namespace TeachingRecordSystem.Core.DataStore.Postgres.Migrations | ||
{ | ||
/// <inheritdoc /> | ||
public partial class AlertTypeTypoFix : Migration | ||
{ | ||
/// <inheritdoc /> | ||
protected override void Up(MigrationBuilder migrationBuilder) | ||
{ | ||
migrationBuilder.UpdateData( | ||
table: "alert_types", | ||
keyColumn: "alert_type_id", | ||
keyValue: new Guid("7924fe90-483c-49f8-84fc-674feddba848"), | ||
column: "name", | ||
value: "Secretary of State decision - no prohibition"); | ||
} | ||
|
||
/// <inheritdoc /> | ||
protected override void Down(MigrationBuilder migrationBuilder) | ||
{ | ||
migrationBuilder.UpdateData( | ||
table: "alert_types", | ||
keyColumn: "alert_type_id", | ||
keyValue: new Guid("7924fe90-483c-49f8-84fc-674feddba848"), | ||
column: "name", | ||
value: "Secretary of State decision- no prohibition"); | ||
} | ||
} | ||
} |
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
14 changes: 14 additions & 0 deletions
14
TeachingRecordSystem/src/TeachingRecordSystem.Core/TrsUriHelper.cs
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,14 @@ | ||
namespace TeachingRecordSystem.Core; | ||
|
||
public static class TrsUriHelper | ||
{ | ||
public static bool TryCreateWebsiteUri(string? uriString, out Uri? uri) | ||
{ | ||
var isValidUri = Uri.TryCreate(uriString, UriKind.Absolute, out var uri2) || | ||
Uri.TryCreate("http://" + uriString, UriKind.Absolute, out uri2) && | ||
(uri2.Scheme == "http" || uri2.Scheme == "https"); | ||
|
||
uri = uri2; | ||
return isValidUri; | ||
} | ||
} |
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
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
9 changes: 9 additions & 0 deletions
9
TeachingRecordSystem/src/TeachingRecordSystem.SupportUi/Pages/Alerts/AlertDefaults.cs
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,9 @@ | ||
namespace TeachingRecordSystem.SupportUi.Pages.Alerts; | ||
|
||
public static class AlertDefaults | ||
{ | ||
public const int MaxFileUploadSizeMb = 50; | ||
public const int DetailMaxCharacterCount = 4000; | ||
public const int DetailTextAreaMinimumRows = 10; | ||
public static TimeSpan FileUrlExpiry { get; } = TimeSpan.FromMinutes(15); | ||
} |
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
Oops, something went wrong.