Skip to content
Open
Show file tree
Hide file tree
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
26 changes: 3 additions & 23 deletions .github/workflows/frontend_build_push_docker_image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -125,29 +125,9 @@ jobs:
name: ${{ inputs.frontend_libraries_build_artifact_name }}
path: frontend/dist/

- name: Add release plugin dependencies
shell: bash
run: |
set -euo pipefail

# Plugin packages live outside package.json so local dev (npm start)
# doesn't pull them in — the workspace symlinks would break Vite's
# pre-bundling of their @valtimo/* transitive imports. Release builds
# use fileReplacements to swap src/app/app-plugins.ts -> .prod.ts,
# which imports these packages; CI installs them here per-branch
# using the pins in release-plugins.json.
if [ ! -f "release-plugins.json" ]; then
echo "::notice::release-plugins.json not found; skipping release plugin pin"
exit 0
fi

jq -r 'to_entries[] | "dependencies.\(.key)=\(.value)"' release-plugins.json \
| while IFS= read -r entry; do
npm pkg set "$entry"
done

echo "Release plugin pins applied:"
jq -r 'to_entries[] | " \(.key)@\(.value)"' release-plugins.json
# The @valtimo-plugins/* packages are plain dependencies in package.json and
# are imported directly by the apps, so no per-branch pinning step is needed
# here; the install below brings them in.

- name: "Rewrite local @valtimo/* deps to file: links and install"
shell: bash
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -163,9 +163,6 @@ valtimo:
secret: dummy
rsin: dummy
database: postgres
changelog:
pbac:
clear-tables: true
security:
whitelist:
hosts:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ import com.ritense.valtimo.camunda.domain.CamundaTask

class CamundaTaskActionProvider : ResourceActionProvider<CamundaTask> {
override fun getAvailableActions(): List<Action<CamundaTask>> {
return listOf(ASSIGN, ASSIGNABLE, CLAIM, COMPLETE, VIEW_LIST, VIEW)
return listOf(ASSIGN, ASSIGNABLE, CLAIM, COMPLETE, VIEW_LIST, VIEW, MODIFY)
}

companion object {
Expand Down
6 changes: 6 additions & 0 deletions backend/value-resolver/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,12 @@ dockerCompose {
}

dependencies {
// Only the @RunWithoutAuthorization annotation is needed; the aspect that acts
// on it lives in :backend:authorization and is present in every application.
// Keeping this compileOnly avoids putting AuthorizationAutoConfiguration on the
// runtime classpath of consumers that do not have the authorization tables — the
// module's own integration test context being the first of them.
compileOnly(project(":backend:authorization"))
implementation(project(":backend:contract"))
implementation(project(":backend:logging"))

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@

package com.ritense.valueresolver.web.rest

import com.ritense.authorization.annotation.RunWithoutAuthorization
import com.ritense.valtimo.contract.annotation.SkipComponentScan
import com.ritense.valtimo.contract.domain.ValtimoMediaType.APPLICATION_JSON_UTF8_VALUE
import com.ritense.valueresolver.ValueResolverOption
Expand All @@ -36,11 +37,13 @@ import org.springframework.web.bind.annotation.RestController
class ValueResolverResource(
private val valueResolverService: ValueResolverService
) {
@RunWithoutAuthorization
@GetMapping("/management/v1/value-resolver")
fun getValueResolvers(): ResponseEntity<List<String>> {
return ResponseEntity.ok(valueResolverService.getValueResolvers())
}

@RunWithoutAuthorization
@PostMapping("/management/v1/value-resolver/document-definition/{documentDefinitionName}/keys")
fun getResolvableKeys(
@PathVariable documentDefinitionName: String,
Expand All @@ -53,6 +56,7 @@ class ValueResolverResource(
return ResponseEntity.ok(options.map { it.path })
}

@RunWithoutAuthorization
@PostMapping("/management/v2/value-resolver/document-definition/{documentDefinitionName}/keys")
fun getResolvableKeys(
@PathVariable documentDefinitionName: String,
Expand All @@ -61,6 +65,7 @@ class ValueResolverResource(
return ResponseEntity.ok(valueResolverService.getResolvableKeys(request, documentDefinitionName))
}

@RunWithoutAuthorization
@PostMapping("/management/v1/value-resolver/document-definition/{documentDefinitionName}/version/{version}/keys")
fun getResolvableKeys(
@PathVariable documentDefinitionName: String,
Expand All @@ -75,6 +80,7 @@ class ValueResolverResource(
return ResponseEntity.ok(options.map { it.path })
}

@RunWithoutAuthorization
@PostMapping("/management/v2/value-resolver/document-definition/{documentDefinitionName}/version/{version}/keys")
fun getResolvableKeys(
@PathVariable documentDefinitionName: String,
Expand Down
21 changes: 19 additions & 2 deletions frontend/apps/gzac/src/app/app.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,15 @@ import {
ZgwModule
} from '@valtimo/zgw';
import {LoggingModule} from '@valtimo/logging';
import {SmtpMailPluginModule, smtpmailPluginSpecification} from '@valtimo-plugins/smtpmail';
import {
DocumentGeneratorPluginModule,
documentGeneratorPluginSpecification,
MailTemplatePluginModule,
mailTemplatePluginSpecification,
TextTemplatePluginModule,
textTemplatePluginSpecification,
} from '@valtimo-plugins/freemarker';

export function tabsFactory() {
return new Map<string, object>([
Expand Down Expand Up @@ -188,7 +197,11 @@ export function tabsFactory() {
TranslationManagementModule,
TaskManagementModule,
ZgwModule,
LoggingModule
LoggingModule,
SmtpMailPluginModule,
MailTemplatePluginModule,
TextTemplatePluginModule,
DocumentGeneratorPluginModule,
],
providers: [{
provide: PLUGINS_TOKEN,
Expand All @@ -205,7 +218,11 @@ export function tabsFactory() {
notificatiesApiPluginSpecification,
openNotificatiesPluginSpecification,
portaaltaakPluginSpecification,
verzoekPluginSpecification
verzoekPluginSpecification,
smtpmailPluginSpecification,
mailTemplatePluginSpecification,
textTemplatePluginSpecification,
documentGeneratorPluginSpecification,
]
}],
bootstrap: [AppComponent]
Expand Down
38 changes: 0 additions & 38 deletions frontend/apps/valtimo/src/app/app-plugins.prod.ts

This file was deleted.

22 changes: 0 additions & 22 deletions frontend/apps/valtimo/src/app/app-plugins.ts

This file was deleted.

3 changes: 0 additions & 3 deletions frontend/apps/valtimo/src/app/app.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,6 @@ import {DashboardManagementModule} from '@valtimo/dashboard-management';
import {TaskManagementModule} from '@valtimo/task-management';
import {CaseMigrationModule} from '@valtimo/case-migration';
import {LoggingModule} from '@valtimo/logging';
import {pluginImports, pluginSpecifications} from './app-plugins';

export function tabsFactory() {
return new Map<string, object>([
Expand Down Expand Up @@ -155,15 +154,13 @@ export function tabsFactory() {
TranslationManagementModule,
TaskManagementModule,
LoggingModule,
...pluginImports,
],
providers: [{
provide: PLUGINS_TOKEN,
useValue: [
objectenApiPluginSpecification,
objecttypenApiPluginSpecification,
objectTokenAuthenticationPluginSpecification,
...pluginSpecifications,
]
}],
bootstrap: [AppComponent]
Expand Down
68 changes: 68 additions & 0 deletions frontend/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -239,6 +239,8 @@
"@types/topojson": "3.2.6",
"@typescript-eslint/eslint-plugin": "8.0.1",
"@typescript-eslint/parser": "8.0.1",
"@valtimo-plugins/freemarker": "8.5.3-V12",
"@valtimo-plugins/smtpmail": "1.0.2",
"@webcomponents/custom-elements": "1.6.0",
"angular-split": "18.0.0-beta.1",
"bootstrap": "4.6.2",
Expand Down
4 changes: 0 additions & 4 deletions frontend/release-plugins.json

This file was deleted.

2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ sonarqubePluginVersion=4.4.1.3373
dockerComposePluginVersion=0.17.10
dependencyLicenseReportVersion=2.8
jreleaserPluginVersion=1.23.0
freemarkerPluginVersion=8.5.1-V12
freemarkerPluginVersion=8.5.3-V12
smtpmailPluginVersion=1.0.2

groovyVersion=4.0.22
Expand Down
Loading