Skip to content

Conversation

sdegroot
Copy link

@sdegroot sdegroot commented Apr 8, 2025

Added operations to bulk upload documents, check the bulk upload status and get a report on the upload

Describe the changes

There is no GitHub issue. I was missing a few endpoints from open-zaak to import bulk documents; see https://open-zaak.readthedocs.io/en/stable/api/experimental.html#id2

I added a few things to make testing of these libs easier.

  • TestOutboxService - which allows to check the outbox messages without relying on mocks; you may want to promote this for more use (or not)
  • Added a few equals methods that were missing. In general I noticed that this is missing often and that makes testing quite a bit harder.

I have not been able to test it against a running open-zaak as I do not know how I can build Valtimo locally. Maybe someone can help me with that?

Breaking changes

  • The contribution only contains changes that are not breaking.

Documentation

  • Release notes have been written for these changes.

Link to the pull request in the Valtimo documentation repository:

New features or changes that have been introduced have been documented.

  • Yes
  • Not applicable
  • Not documented yet; maybe something for a technical writer?

Tests

Unit tests have been added that cover these changes

  • Yes
  • Not applicable

Integration tests have been added that cover these changes

  • Yes
  • Not applicable

Security

The Secure by Default principle has been applied to these changes

  • Yes
  • Not applicable

Added or changed REST API endpoints have authentication and authorization in place

  • Yes
  • Not applicable

Valtimo access control checks have been implemented

  • Yes
  • Not applicable

Dependencies

Newly added dependencies do not introduce known vulnerabilities/CVE's and are in line with the Valtimo license

  • Yes
  • Not applicable

…e bulk upload status and get a report on the upload
@sdegroot sdegroot requested a review from a team as a code owner April 8, 2025 14:44
@@ -0,0 +1,31 @@
package com.ritense.documentenapi.bulk
Copy link
Contributor

Choose a reason for hiding this comment

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

If the goal is to use it more often, maybe it should be moved to the test-utils-common module instead?

@@ -30,5 +30,6 @@ class ResourcePermissionActionProvider : ResourceActionProvider<ResourcePermissi
var CREATE = Action<ResourcePermission>(Action.CREATE)
var MODIFY = Action<ResourcePermission>(Action.MODIFY)
var DELETE = Action<ResourcePermission>(Action.DELETE)
var IMPORT = Action<ResourcePermission>(Action.DELETE)
Copy link
Member

Choose a reason for hiding this comment

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

Wrong action

@@ -17,6 +17,7 @@
package com.ritense.authorization.request

import com.ritense.authorization.Action
import java.util.*
Copy link
Contributor

@marijnritense marijnritense Apr 11, 2025

Choose a reason for hiding this comment

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

Please use individual imports instead of * imports. Pointing it out for this one, but it's in a bunch of files.

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.

4 participants