-
Notifications
You must be signed in to change notification settings - Fork 640
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
#1543 Replaced soft delete by hard delete
- Loading branch information
Showing
7 changed files
with
12 additions
and
23 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -354,7 +354,7 @@ class CaseCtrlTest extends PlaySpecification with TestAppBuilder { | |
|
||
val requestDel = FakeRequest("DELETE", s"/api/v0/case/#1/force") | ||
.withHeaders("user" -> "[email protected]") | ||
val resultDel = app[CaseCtrl].realDelete("1")(requestDel) | ||
val resultDel = app[CaseCtrl].delete("1")(requestDel) | ||
status(resultDel) must equalTo(204).updateMessage(s => s"$s\n${contentAsString(resultDel)}") | ||
|
||
app[Database].roTransaction { implicit graph => | ||
|
Removing this CaseStatus breaks compatibility with the database because of already soft-deleted cases (they have a
Deleted
CaseStatus).Is this the right commit to remove this status ?