Skip to content

Commit

Permalink
Utvidet pdl hentIdenter slik at response innholder info om gjeldene id
Browse files Browse the repository at this point in the history
  • Loading branch information
nilsmsa committed Oct 28, 2024
1 parent 563118a commit d70ee14
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
]
}
Expand All @@ -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
}
]
}
Expand Down
1 change: 1 addition & 0 deletions lib/pdl-client/src/main/resources/hentIdenter.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ query($ident: ID!, $historisk: Boolean) {
identer {
ident
gruppe
historisk
}
}
}
6 changes: 4 additions & 2 deletions lib/pdl-client/src/test/resources/hentIdenter-response.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,13 @@
"identer": [
{
"ident": "09127821914",
"gruppe": "FOLKEREGISTERIDENT"
"gruppe": "FOLKEREGISTERIDENT",
"historisk": false
},
{
"ident": "2649500819544",
"gruppe": "AKTORID"
"gruppe": "AKTORID",
"historisk": false
}
]
}
Expand Down

0 comments on commit d70ee14

Please sign in to comment.