From d70ee14397d3631988168e436dacf1c8c2c9e1da Mon Sep 17 00:00:00 2001 From: Nils Martin Sande Date: Mon, 28 Oct 2024 09:04:36 +0100 Subject: [PATCH] Utvidet pdl hentIdenter slik at response innholder info om gjeldene id --- .../no/nav/paw/kafkakeygenerator/testdata.kt | 18 ++++++++++++------ .../src/main/resources/hentIdenter.graphql | 1 + .../test/resources/hentIdenter-response.json | 6 ++++-- 3 files changed, 17 insertions(+), 8 deletions(-) diff --git a/apps/kafka-key-generator/src/test/kotlin/no/nav/paw/kafkakeygenerator/testdata.kt b/apps/kafka-key-generator/src/test/kotlin/no/nav/paw/kafkakeygenerator/testdata.kt index e690b8d0..333aecd5 100644 --- a/apps/kafka-key-generator/src/test/kotlin/no/nav/paw/kafkakeygenerator/testdata.kt +++ b/apps/kafka-key-generator/src/test/kotlin/no/nav/paw/kafkakeygenerator/testdata.kt @@ -39,19 +39,23 @@ const val person1MockSvar = """ "identer": [ { "ident": "$person1_fødselsnummer", - "gruppe": "FOLKEREGISTERIDENT" + "gruppe": "FOLKEREGISTERIDENT", + "historisk": false }, { "ident": "$person1_aktor_id", - "gruppe": "AKTORID" + "gruppe": "AKTORID", + "historisk": false }, { "ident": "$person1_dnummer", - "gruppe": "FOLKEREGISTERIDENT" + "gruppe": "FOLKEREGISTERIDENT", + "historisk": true }, { "ident": "$person1_annen_ident", - "gruppe": "ANNEN_IDENT" + "gruppe": "ANNEN_IDENT", + "historisk": true } ] } @@ -66,11 +70,13 @@ const val person2MockSvar = """ "identer": [ { "ident": "$person2_fødselsnummer", - "gruppe": "FOLKEREGISTERIDENT" + "gruppe": "FOLKEREGISTERIDENT", + "historisk": false }, { "ident": "$person2_aktor_id", - "gruppe": "AKTORID" + "gruppe": "AKTORID", + "historisk": false } ] } diff --git a/lib/pdl-client/src/main/resources/hentIdenter.graphql b/lib/pdl-client/src/main/resources/hentIdenter.graphql index 25ab35a8..12006a67 100644 --- a/lib/pdl-client/src/main/resources/hentIdenter.graphql +++ b/lib/pdl-client/src/main/resources/hentIdenter.graphql @@ -3,6 +3,7 @@ query($ident: ID!, $historisk: Boolean) { identer { ident gruppe + historisk } } } diff --git a/lib/pdl-client/src/test/resources/hentIdenter-response.json b/lib/pdl-client/src/test/resources/hentIdenter-response.json index 7478c75f..4df6f55b 100644 --- a/lib/pdl-client/src/test/resources/hentIdenter-response.json +++ b/lib/pdl-client/src/test/resources/hentIdenter-response.json @@ -4,11 +4,13 @@ "identer": [ { "ident": "09127821914", - "gruppe": "FOLKEREGISTERIDENT" + "gruppe": "FOLKEREGISTERIDENT", + "historisk": false }, { "ident": "2649500819544", - "gruppe": "AKTORID" + "gruppe": "AKTORID", + "historisk": false } ] }