-
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.
- Loading branch information
Showing
16 changed files
with
8 additions
and
52 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
2 changes: 2 additions & 0 deletions
2
myndla-api/src/main/resources/no/ndla/myndlaapi/db/migration/V16__remove_shareName.sql
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,2 @@ | ||
ALTER table my_ndla_users | ||
DROP COLUMN shareName; |
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 |
---|---|---|
|
@@ -66,7 +66,6 @@ trait ImportService { | |
email = "[email protected]", | ||
arenaEnabled = true, | ||
arenaGroups = List(ArenaGroup.ADMIN), | ||
shareName = true, | ||
arenaAccepted = true | ||
) | ||
userRepository.insertUser("ndla_admin", toInsert)(session) | ||
|
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 |
---|---|---|
|
@@ -43,7 +43,6 @@ class ArenaControllerTest extends UnitTestSuite with TestEnvironment with TapirC | |
email = "[email protected]", | ||
arenaEnabled = true, | ||
arenaGroups = List.empty, | ||
shareName = false, | ||
arenaAccepted = true | ||
) | ||
|
||
|
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 |
---|---|---|
|
@@ -43,7 +43,6 @@ class FolderControllerTest extends UnitTestSuite with TestEnvironment with Tapir | |
email = "[email protected]", | ||
arenaEnabled = true, | ||
arenaGroups = List.empty, | ||
shareName = false, | ||
arenaAccepted = true | ||
) | ||
|
||
|
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 |
---|---|---|
|
@@ -125,7 +125,6 @@ class ArenaTest | |
email = "[email protected]", | ||
arenaEnabled = true, | ||
arenaGroups = List.empty, | ||
shareName = false, | ||
arenaAccepted = true | ||
) | ||
|
||
|
@@ -142,7 +141,6 @@ class ArenaTest | |
email = "[email protected]", | ||
arenaEnabled = true, | ||
arenaGroups = List(ArenaGroup.ADMIN), | ||
shareName = false, | ||
arenaAccepted = true | ||
) | ||
|
||
|
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 |
---|---|---|
|
@@ -60,7 +60,6 @@ class ArenaRepositoryTest | |
email = "[email protected]", | ||
arenaEnabled = true, | ||
arenaGroups = List(), | ||
shareName = true, | ||
arenaAccepted = true | ||
) | ||
val feideId = "feideId1" | ||
|
@@ -113,7 +112,6 @@ class ArenaRepositoryTest | |
email = "[email protected]", | ||
arenaEnabled = true, | ||
arenaGroups = List(), | ||
shareName = true, | ||
arenaAccepted = true | ||
) | ||
val feideId = "feideId1" | ||
|
@@ -178,7 +176,6 @@ class ArenaRepositoryTest | |
email = "[email protected]", | ||
arenaEnabled = true, | ||
arenaGroups = List(), | ||
shareName = true, | ||
arenaAccepted = true | ||
) | ||
val feideId = "feideId1" | ||
|
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 |
---|---|---|
|
@@ -429,7 +429,6 @@ class FolderConverterServiceTest extends UnitTestSuite with TestEnvironment { | |
email = "[email protected]", | ||
arenaEnabled = false, | ||
displayName = "Feide", | ||
shareName = false, | ||
arenaGroups = List.empty, | ||
arenaAccepted = true | ||
) | ||
|
@@ -446,7 +445,6 @@ class FolderConverterServiceTest extends UnitTestSuite with TestEnvironment { | |
groups = Seq(MyNDLAGroupDTO(id = "id", displayName = "oslo", isPrimarySchool = true, parentId = None)), | ||
arenaEnabled = false, | ||
arenaAccepted = true, | ||
shareName = false, | ||
arenaGroups = List.empty | ||
) | ||
|
||
|
@@ -473,31 +471,27 @@ class FolderConverterServiceTest extends UnitTestSuite with TestEnvironment { | |
email = "[email protected]", | ||
arenaEnabled = false, | ||
displayName = "Feide", | ||
shareName = false, | ||
arenaGroups = List.empty, | ||
arenaAccepted = true | ||
) | ||
val updatedUserData1 = | ||
UpdatedMyNDLAUserDTO( | ||
favoriteSubjects = None, | ||
arenaEnabled = None, | ||
shareName = None, | ||
arenaGroups = None, | ||
arenaAccepted = None | ||
) | ||
val updatedUserData2 = | ||
UpdatedMyNDLAUserDTO( | ||
favoriteSubjects = Some(Seq.empty), | ||
arenaEnabled = None, | ||
shareName = None, | ||
arenaGroups = None, | ||
arenaAccepted = None | ||
) | ||
val updatedUserData3 = | ||
UpdatedMyNDLAUserDTO( | ||
favoriteSubjects = Some(Seq("x", "y", "z")), | ||
arenaEnabled = None, | ||
shareName = None, | ||
arenaGroups = None, | ||
arenaAccepted = None | ||
) | ||
|
@@ -521,7 +515,6 @@ class FolderConverterServiceTest extends UnitTestSuite with TestEnvironment { | |
email = "[email protected]", | ||
arenaEnabled = false, | ||
displayName = "Feide", | ||
shareName = false, | ||
arenaGroups = List.empty, | ||
arenaAccepted = true | ||
) | ||
|
@@ -544,7 +537,6 @@ class FolderConverterServiceTest extends UnitTestSuite with TestEnvironment { | |
email = "[email protected]", | ||
arenaEnabled = false, | ||
displayName = "Feide", | ||
shareName = false, | ||
arenaGroups = List.empty, | ||
arenaAccepted = true | ||
) | ||
|
@@ -567,7 +559,6 @@ class FolderConverterServiceTest extends UnitTestSuite with TestEnvironment { | |
email = "[email protected]", | ||
arenaEnabled = false, | ||
displayName = "Feide", | ||
shareName = false, | ||
arenaGroups = List.empty, | ||
arenaAccepted = true | ||
) | ||
|
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 |
---|---|---|
|
@@ -255,7 +255,7 @@ class FolderReadServiceTest extends UnitTestSuite with TestEnvironment { | |
breadcrumbs = List(api.BreadcrumbDTO(id = favoriteUUID.toString, name = "favorite")) | ||
) | ||
|
||
val user = emptyMyNDLAUser.copy(id = 1996, shareName = true, displayName = "hallois") | ||
val user = emptyMyNDLAUser.copy(id = 1996, displayName = "hallois") | ||
val folderId = UUID.randomUUID() | ||
val sharedFolderDomain = emptyDomainFolder.copy(id = folderId, name = "SharedFolder", status = FolderStatus.SHARED) | ||
val savedFolderDomain = | ||
|
@@ -365,7 +365,6 @@ class FolderReadServiceTest extends UnitTestSuite with TestEnvironment { | |
email = "[email protected]", | ||
arenaEnabled = false, | ||
displayName = "Feide", | ||
shareName = true, | ||
arenaGroups = List.empty, | ||
arenaAccepted = true | ||
) | ||
|
@@ -493,7 +492,8 @@ class FolderReadServiceTest extends UnitTestSuite with TestEnvironment { | |
name = "", | ||
status = "shared", | ||
breadcrumbs = List(api.BreadcrumbDTO(id = folderUUID.toString, name = "")), | ||
resources = List(apiResource) | ||
resources = List(apiResource), | ||
owner = Some(OwnerDTO(name = "User Name")) | ||
) | ||
|
||
when(feideApiClient.getFeideID(Some(ownerId))).thenReturn(Success(ownerId)) | ||
|
@@ -531,7 +531,6 @@ class FolderReadServiceTest extends UnitTestSuite with TestEnvironment { | |
email = "[email protected]", | ||
arenaEnabled = true, | ||
arenaGroups = List.empty, | ||
shareName = false, | ||
arenaAccepted = true | ||
) | ||
) | ||
|
@@ -554,7 +553,6 @@ class FolderReadServiceTest extends UnitTestSuite with TestEnvironment { | |
email = "[email protected]", | ||
arenaEnabled = true, | ||
arenaGroups = List.empty, | ||
shareName = false, | ||
arenaAccepted = true | ||
) | ||
) | ||
|
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 |
---|---|---|
|
@@ -54,15 +54,13 @@ class UserServiceTest extends UnitTestSuite with TestEnvironment { | |
email = "[email protected]", | ||
arenaEnabled = false, | ||
displayName = "Feide", | ||
shareName = false, | ||
arenaGroups = List.empty, | ||
arenaAccepted = true | ||
) | ||
val updatedUserData = | ||
UpdatedMyNDLAUserDTO( | ||
favoriteSubjects = Some(Seq("r", "e")), | ||
arenaEnabled = None, | ||
shareName = Some(true), | ||
arenaGroups = None, | ||
arenaAccepted = None | ||
) | ||
|
@@ -85,7 +83,6 @@ class UserServiceTest extends UnitTestSuite with TestEnvironment { | |
email = "[email protected]", | ||
arenaEnabled = false, | ||
displayName = "Feide", | ||
shareName = true, | ||
arenaGroups = List.empty, | ||
arenaAccepted = true | ||
) | ||
|
@@ -101,7 +98,6 @@ class UserServiceTest extends UnitTestSuite with TestEnvironment { | |
groups = Seq(MyNDLAGroupDTO(id = "id", displayName = "oslo", isPrimarySchool = false, parentId = None)), | ||
arenaEnabled = false, | ||
arenaAccepted = true, | ||
shareName = true, | ||
arenaGroups = List.empty | ||
) | ||
|
||
|
@@ -127,7 +123,6 @@ class UserServiceTest extends UnitTestSuite with TestEnvironment { | |
UpdatedMyNDLAUserDTO( | ||
favoriteSubjects = Some(Seq("r", "e")), | ||
arenaEnabled = None, | ||
shareName = None, | ||
arenaGroups = None, | ||
arenaAccepted = None | ||
) | ||
|
@@ -185,7 +180,6 @@ class UserServiceTest extends UnitTestSuite with TestEnvironment { | |
email = "[email protected]", | ||
arenaEnabled = false, | ||
displayName = "Feide", | ||
shareName = false, | ||
arenaGroups = List.empty, | ||
arenaAccepted = true | ||
) | ||
|
@@ -201,7 +195,6 @@ class UserServiceTest extends UnitTestSuite with TestEnvironment { | |
groups = Seq(MyNDLAGroupDTO(id = "id", displayName = "oslo", isPrimarySchool = true, parentId = None)), | ||
arenaEnabled = false, | ||
arenaAccepted = true, | ||
shareName = false, | ||
arenaGroups = List.empty | ||
) | ||
val feideUserInfo = FeideExtendedUserInfo( | ||
|
@@ -261,7 +254,6 @@ class UserServiceTest extends UnitTestSuite with TestEnvironment { | |
email = "[email protected]", | ||
arenaEnabled = false, | ||
displayName = "Feide", | ||
shareName = false, | ||
arenaGroups = List.empty, | ||
arenaAccepted = true | ||
) | ||
|
@@ -277,7 +269,6 @@ class UserServiceTest extends UnitTestSuite with TestEnvironment { | |
groups = Seq(MyNDLAGroupDTO(id = "id", displayName = "oslo", isPrimarySchool = true, parentId = None)), | ||
arenaEnabled = false, | ||
arenaAccepted = true, | ||
shareName = false, | ||
arenaGroups = List.empty | ||
) | ||
|
||
|
@@ -333,7 +324,6 @@ class UserServiceTest extends UnitTestSuite with TestEnvironment { | |
email = "[email protected]", | ||
arenaEnabled = false, | ||
displayName = "Feide", | ||
shareName = false, | ||
arenaGroups = List.empty, | ||
arenaAccepted = true | ||
) | ||
|
@@ -356,7 +346,6 @@ class UserServiceTest extends UnitTestSuite with TestEnvironment { | |
groups = Seq(MyNDLAGroupDTO(id = "id", displayName = "oslo", isPrimarySchool = true, parentId = None)), | ||
arenaEnabled = false, | ||
arenaAccepted = true, | ||
shareName = false, | ||
arenaGroups = List.empty | ||
) | ||
|
||
|
Oops, something went wrong.