-
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.
Merge branch 'develop' into dr/toolbox-mock
- Loading branch information
Showing
80 changed files
with
16,173 additions
and
468 deletions.
There are no files selected for viewing
4 changes: 3 additions & 1 deletion
4
Portal/src/Datahub.Application/Services/IProjectDeletionService.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 |
---|---|---|
@@ -1,8 +1,10 @@ | ||
| ||
using Datahub.Core.Model.Projects; | ||
|
||
namespace Datahub.Application.Services | ||
{ | ||
public interface IProjectDeletionService | ||
{ | ||
public Task<bool> DeleteWorkspace(string acronym); | ||
public Task<bool> DeleteWorkspace(string acronym, Project_Delete_Questionnaire questionnaire); | ||
} | ||
} |
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,002 changes: 3,002 additions & 0 deletions
3,002
Portal/src/Datahub.Core/Migrations/20250127193221_DeletedQuestionnaireTable.Designer.cs
Large diffs are not rendered by default.
Oops, something went wrong.
64 changes: 64 additions & 0 deletions
64
Portal/src/Datahub.Core/Migrations/20250127193221_DeletedQuestionnaireTable.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,64 @@ | ||
using System; | ||
using Microsoft.EntityFrameworkCore.Migrations; | ||
|
||
#nullable disable | ||
|
||
namespace Datahub.Core.Migrations | ||
{ | ||
/// <inheritdoc /> | ||
public partial class DeletedQuestionnaireTable : Migration | ||
{ | ||
/// <inheritdoc /> | ||
protected override void Up(MigrationBuilder migrationBuilder) | ||
{ | ||
|
||
migrationBuilder.CreateTable( | ||
name: "Project_Delete_Questionnaires", | ||
columns: table => new | ||
{ | ||
Id = table.Column<int>(type: "int", nullable: false) | ||
.Annotation("SqlServer:Identity", "1, 1"), | ||
IsWorkspaceNotRequired = table.Column<bool>(type: "bit", nullable: false), | ||
IsDataMigrated = table.Column<bool>(type: "bit", nullable: false), | ||
IsDataNotSubjectToLitigation = table.Column<bool>(type: "bit", nullable: false), | ||
DoesDataNotHaveArchivalValue = table.Column<bool>(type: "bit", nullable: false), | ||
IsDeletionConfirmed = table.Column<bool>(type: "bit", nullable: false), | ||
DeletedDate = table.Column<DateTime>(type: "datetime2", nullable: true), | ||
Project_ID = table.Column<int>(type: "int", nullable: true), | ||
DeletedById = table.Column<int>(type: "int", nullable: true) | ||
}, | ||
constraints: table => | ||
{ | ||
table.PrimaryKey("PK_Project_Delete_Questionnaires", x => x.Id); | ||
table.ForeignKey( | ||
name: "FK_Project_Delete_Questionnaires_PortalUsers_DeletedById", | ||
column: x => x.DeletedById, | ||
principalTable: "PortalUsers", | ||
principalColumn: "Id"); | ||
table.ForeignKey( | ||
name: "FK_Project_Delete_Questionnaires_Projects_Project_ID", | ||
column: x => x.Project_ID, | ||
principalTable: "Projects", | ||
principalColumn: "Project_ID"); | ||
}); | ||
|
||
migrationBuilder.CreateIndex( | ||
name: "IX_Project_Delete_Questionnaires_DeletedById", | ||
table: "Project_Delete_Questionnaires", | ||
column: "DeletedById"); | ||
|
||
migrationBuilder.CreateIndex( | ||
name: "IX_Project_Delete_Questionnaires_Project_ID", | ||
table: "Project_Delete_Questionnaires", | ||
column: "Project_ID"); | ||
} | ||
|
||
/// <inheritdoc /> | ||
protected override void Down(MigrationBuilder migrationBuilder) | ||
{ | ||
migrationBuilder.DropTable( | ||
name: "Project_Delete_Questionnaires"); | ||
|
||
} | ||
} | ||
} |
Oops, something went wrong.