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

Korjaus metadatan hakemiseen #6155

Merged
merged 1 commit into from
Dec 18, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ import fi.espoo.evaka.shared.AssistanceNeedDecisionId
import fi.espoo.evaka.shared.AssistanceNeedPreschoolDecisionId
import fi.espoo.evaka.shared.ChildDocumentId
import fi.espoo.evaka.shared.DecisionId
import fi.espoo.evaka.shared.EvakaUserId
import fi.espoo.evaka.shared.FeeDecisionId
import fi.espoo.evaka.shared.VoucherValueDecisionId
import fi.espoo.evaka.shared.auth.AuthenticatedUser
Expand Down Expand Up @@ -359,11 +360,13 @@ class ProcessMetadataController(private val accessControl: AccessControl) {
name = column("name"),
createdAt = column("created"),
createdBy =
EvakaUser(
id = column("created_by_id"),
name = column("created_by_name"),
type = column("created_by_type"),
),
column<EvakaUserId?>("created_by_id")?.let {
EvakaUser(
id = it,
name = column("created_by_name"),
type = column("created_by_type"),
)
},
confidential = column("confidential"),
downloadPath =
column<String?>("document_key")?.let { "/employee/child-documents/$it/pdf" },
Expand Down Expand Up @@ -395,11 +398,13 @@ class ProcessMetadataController(private val accessControl: AccessControl) {
name = "Päätös tuesta varhaiskasvatuksessa",
createdAt = column("created"),
createdBy =
EvakaUser(
id = column("created_by_id"),
name = column("created_by_name"),
type = column("created_by_type"),
),
column<EvakaUserId?>("created_by_id")?.let {
EvakaUser(
id = it,
name = column("created_by_name"),
type = column("created_by_type"),
)
},
confidential = true,
downloadPath =
column<String?>("document_key")?.let {
Expand Down Expand Up @@ -432,11 +437,13 @@ class ProcessMetadataController(private val accessControl: AccessControl) {
name = "Päätös tuesta esiopetuksessa",
createdAt = column("created"),
createdBy =
EvakaUser(
id = column("created_by_id"),
name = column("created_by_name"),
type = column("created_by_type"),
),
column<EvakaUserId?>("created_by_id")?.let {
EvakaUser(
id = it,
name = column("created_by_name"),
type = column("created_by_type"),
)
},
confidential = true,
downloadPath =
column<String?>("document_key")?.let {
Expand Down Expand Up @@ -480,11 +487,13 @@ class ProcessMetadataController(private val accessControl: AccessControl) {
createdAt =
column<LocalDate>("sentdate").let { HelsinkiDateTime.atStartOfDay(it) },
createdBy =
EvakaUser(
id = column("created_by_id"),
name = column("created_by_name"),
type = column("created_by_type"),
),
column<EvakaUserId?>("created_by_id")?.let {
EvakaUser(
id = it,
name = column("created_by_name"),
type = column("created_by_type"),
)
},
confidential = column("confidential"),
downloadPath = null,
)
Expand Down Expand Up @@ -545,11 +554,13 @@ class ProcessMetadataController(private val accessControl: AccessControl) {
createdAt =
column<LocalDate>("sent_date").let { HelsinkiDateTime.atStartOfDay(it) },
createdBy =
EvakaUser(
id = column("created_by_id"),
name = column("created_by_name"),
type = column("created_by_type"),
),
column<EvakaUserId?>("created_by_id")?.let {
EvakaUser(
id = it,
name = column("created_by_name"),
type = column("created_by_type"),
)
},
confidential = true,
downloadPath =
column<String?>("document_key")?.let {
Expand Down Expand Up @@ -582,11 +593,13 @@ class ProcessMetadataController(private val accessControl: AccessControl) {
name = "Maksupäätös",
createdAt = column("created"),
createdBy =
EvakaUser(
id = column("created_by_id"),
name = column("created_by_name"),
type = column("created_by_type"),
),
column<EvakaUserId?>("created_by_id")?.let {
EvakaUser(
id = it,
name = column("created_by_name"),
type = column("created_by_type"),
)
},
confidential = true,
downloadPath =
column<String?>("document_key")?.let { "/employee/fee-decisions/pdf/$it" },
Expand Down Expand Up @@ -617,11 +630,13 @@ class ProcessMetadataController(private val accessControl: AccessControl) {
name = "Arvopäätös",
createdAt = column("created"),
createdBy =
EvakaUser(
id = column("created_by_id"),
name = column("created_by_name"),
type = column("created_by_type"),
),
column<EvakaUserId?>("created_by_id")?.let {
EvakaUser(
id = it,
name = column("created_by_name"),
type = column("created_by_type"),
)
},
confidential = true,
downloadPath =
column<String?>("document_key")?.let { "/employee/value-decisions/pdf/$it" },
Expand Down
Loading