-
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.
La til initiell støtte for henting av lagret data i kafka keys (for i…
…d merge)
- Loading branch information
Showing
20 changed files
with
226 additions
and
9 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
1 change: 1 addition & 0 deletions
1
apps/bekreftelse-api/src/main/resources/local/kafka_key_generator_client_config.toml
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,2 +1,3 @@ | ||
url = "http://localhost:8090/kafka-keys" | ||
urlLokalInfo = "http://localhost:8090/lokal-info" | ||
scope = "api://test.test.kafka-keys/.default" |
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
11 changes: 11 additions & 0 deletions
11
...afka-key-generator/src/main/kotlin/no/nav/paw/kafkakeygenerator/api/v2/HentLokaleAlias.kt
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,11 @@ | ||
package no.nav.paw.kafkakeygenerator.api.v2 | ||
|
||
import no.nav.paw.kafkakeygenerator.* | ||
import no.nav.paw.kafkakeygenerator.vo.Identitetsnummer | ||
|
||
fun Applikasjon.hentLokaleAlias(antallPartisjoner: Int, identiteter: List<String>): Either<Failure, List<LokaleAlias>> { | ||
return identiteter.mapNotNull { identitet -> | ||
hentLokaleAlias(antallPartisjoner, Identitetsnummer(identitet)) | ||
.recover(FailureCode.DB_NOT_FOUND) { right(null) } | ||
}.flatten() | ||
.map(List<LokaleAlias?>::filterNotNull) } |
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
23 changes: 23 additions & 0 deletions
23
lib/kafka-key-generator-client/src/main/kotlin/no/nav/paw/kafkakeygenerator/client/Alias.kt
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,23 @@ | ||
package no.nav.paw.kafkakeygenerator.client | ||
|
||
|
||
data class AliasRequest( | ||
val antallPartisjoner: Int, | ||
val identer: List<String> | ||
) | ||
|
||
data class AliasResponse( | ||
val alias: List<LokaleAlias> | ||
) | ||
|
||
data class LokaleAlias( | ||
val identitetsnummer: String, | ||
val kobliner: List<Alias> | ||
) | ||
|
||
data class Alias( | ||
val identitetsnummer: String, | ||
val arbeidsoekerId: Long, | ||
val recordKey: Long, | ||
val partition: Int, | ||
) |
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
Oops, something went wrong.