Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mer beskrivende dokument tittel i dokarkiv #830

Merged
merged 13 commits into from
Jan 17, 2025

Conversation

Jesper-Hustad
Copy link
Contributor

Endret på beskrivende tittel til PDF lagret i dokarkiv (ikke filnavnet).

Før: Inntektsmelding
Etter: Inntektsmelding-914337658-05.10.2018 - [...] - 22.10.2018

Formatet inkluderer nå orgnr - f.o.m - t.o.m.

@Jesper-Hustad Jesper-Hustad requested a review from a team as a code owner January 16, 2025 09:34
@Jesper-Hustad
Copy link
Contributor Author

Venter på at devmiljø fikses for å teste funksjonalitet.
image

@Jesper-Hustad Jesper-Hustad self-assigned this Jan 16, 2025
Copy link
Contributor

@bjerga bjerga left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Gjerne gi PR-en en mer leselig tittel.

@Jesper-Hustad Jesper-Hustad changed the title Dev/joark beskrivende im tittel Mer beskrivende dokument tittel i dokarkiv Jan 16, 2025
@Jesper-Hustad
Copy link
Contributor Author

Ser ikke endring i dev miljø, tester annen tittel i joark tilDokumenter

@Jesper-Hustad
Copy link
Contributor Author

image
✅ Funksjonalitet fungerer i dev miljø

@Jesper-Hustad
Copy link
Contributor Author

Fikk java.util.NoSuchElementException: List is empty. når ingen agp var definert.
Bug fikset 🐛 og lagt til fler tester.

@@ -49,7 +49,7 @@ fun tilDokumenter(

private fun ByteArray.encode(): String = base64.encodeToString(this)

fun Inntektsmelding.tilJournalTittel(): String {
fun Inntektsmelding.tilDokumentbeskrivelse(): String {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Byttet til Dokumentberskrivelse da dette er navnet på feltet i gosys

Comment on lines 26 to 27
fun mockInntekstmeldingMedPerioder(perioder: List<Periode>): Inntektsmelding =
mockInntektsmeldingV1().copy(agp = mockInntektsmeldingV1().agp?.copy(perioder = perioder))
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ville gjort denne private og flyttet den nederst i fila. Forventer ikke en mock-funksjon midt mellom testene.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

enig

mockInntektsmeldingV1().copy(agp = mockInntektsmeldingV1().agp?.copy(perioder = perioder))

@Test
fun journalTittelToPerioder() {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Denne og følgende tester bør vel bytte ut "journaltittel" med "dokumentbeskrivelse"?

@Jesper-Hustad Jesper-Hustad merged commit 94770ce into main Jan 17, 2025
20 checks passed
@Jesper-Hustad Jesper-Hustad deleted the dev/joark-beskrivende-im-tittel branch January 17, 2025 13:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants