Skip to content

Commit

Permalink
Add to upgrade pod.
Browse files Browse the repository at this point in the history
  • Loading branch information
geekbeast committed Mar 4, 2022
1 parent d30e2c4 commit 9650a0f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ import com.openlattice.linking.graph.PostgresLinkingQueryService
import com.openlattice.mechanic.MechanicCli.Companion.UPGRADE
import com.openlattice.mechanic.Toolbox
import com.openlattice.mechanic.upgrades.DeleteOrgMetadataEntitySets
import com.openlattice.mechanic.upgrades.ExportOrganizationMembers
import com.openlattice.mechanic.upgrades.V3StudyMigrationUpgrade
import com.openlattice.organizations.roles.HazelcastPrincipalService
import com.openlattice.organizations.roles.SecurePrincipalsManager
Expand Down Expand Up @@ -379,6 +380,11 @@ class MechanicUpgradePod {
)
}

@Bean
fun exportOrganizationMembers() : ExportOrganizationMembers {
return ExportOrganizationMembers(toolbox, hikariDataSource, principalService(), hazelcastInstance)
}

@PostConstruct
fun post() {
Principals.init(principalService(), hazelcastInstance)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package com.openlattice.mechanic.upgrades
import com.hazelcast.core.HazelcastInstance
import com.openlattice.hazelcast.HazelcastMap
import com.openlattice.mechanic.Toolbox
import com.openlattice.organizations.roles.HazelcastPrincipalService
import com.openlattice.organizations.roles.SecurePrincipalsManager
import com.zaxxer.hikari.HikariDataSource
import org.slf4j.LoggerFactory

Expand All @@ -14,7 +14,7 @@ import org.slf4j.LoggerFactory
class ExportOrganizationMembers(
private val toolbox: Toolbox,
private val hds: HikariDataSource,
private val principalService: HazelcastPrincipalService,
private val principalService: SecurePrincipalsManager,
hazelcast :HazelcastInstance
) : Upgrade {
companion object {
Expand Down

0 comments on commit 9650a0f

Please sign in to comment.