feat/bulkUserCreate #21
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "feat/bulkUserCreate"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@ -22,6 +22,7 @@ dependencies {)api(project(":common"))api(project(":database"))api(project(":users"))remove user module
@ -57,6 +62,13 @@ class ContainerService(if (jiRequest.start) startContainer(container.id)val c: ContainerModel = ContainerModel().apply {rename ta var c encule
@ -59,1 +64,4 @@val c: ContainerModel = ContainerModel().apply {containerId = container.idusername = userService.getUser(jiRequest.username)remove userService
@ -60,0 +67,4 @@username = userService.getUser(jiRequest.username)}containerRepository.persist(c)Tout le code link username avec container ca degage dans bulkcreatecontainer =>pas de link si 1 seul create container, au future delete createjicontainer en soit il sert a rien en lui tout seul
@ -20,0 +24,4 @@class UserService(private val userRepository: UserRepository,private val jdmiService: JdmiService,private val containerService: ContainerService,private val containerRepository: ContainerRepositoryUtilise un service dans les autres services pas un repo
@ -80,0 +95,4 @@containerService.createJIContainer(DockerJIRequest(imageName = "git.la-banquise.fr/banquise/ji-container:latest",containerName = "jdmi-${it.login}-jdmiId",port = containerRepository.find("ORDER BY port DESC").firstResult()?.port?.plus(1),Dans le repo directement + un max
50404391f3559eeac772where resource to get all containers associated with a jdmi ?
genre jdmi Id into listOf avec leur info et creds*
@ -0,0 +17,4 @@var containerId: String? = nullvar port: Int? = nullwhy nullable ?
On peut imaginer dans un futur un truc sans port, mais en soit oui le nullable est pas obligatoire ici, flemme de faire tourner une PR pour ca tbh mdr
@thomas.le-magoariec wrote in #21 (comment):
Prochaine PR