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

Story/document upload in bestandsdelen #1587

Merged
merged 39 commits into from
Oct 14, 2024

Conversation

Rick-Ritense
Copy link
Contributor

@Rick-Ritense Rick-Ritense commented Oct 3, 2024

Describe the changes

Link to the related Github issue:

Relevant comments:
In Amsterdam there is a hard limit of 2 MB on POST calls which makes it impossible to upload files using the current document api method.

The documenten api also supports a "Bestandsdelen" method that allows a PUT call and uploading in chunks. This PR adds the new functionality

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:

valtimo-platform/valtimo-documentation#750

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

  • Yes
  • Not applicable

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

Rick Veenstra added 8 commits July 11, 2024 13:36
Initial commit

The code should be complete like this but I get an error during the put to bestandsdelen that the lock parameter is required, but it is provided with a filled value.

Don't know yet what the issue is
Tried something new, still doesn't work
# Conflicts:
#	zgw/documenten-api/src/main/kotlin/com/ritense/documentenapi/DocumentenApiPlugin.kt
#	zgw/documenten-api/src/main/kotlin/com/ritense/documentenapi/client/DocumentenApiClient.kt
Switched over to RestClient, got it working
Switched over to RestClient, got it working
@Rick-Ritense Rick-Ritense requested a review from a team as a code owner October 3, 2024 09:16
Rick Veenstra and others added 9 commits October 3, 2024 17:10
Now getting the lock from the bestandsdelen array and added tests
Added missing license headers
Now using the bestandsdelen to determine the amount and size of the chunks
…sdelen' into story/document-upload-in-bestandsdelen
Now using the correct bestandsdeel UUID for each chunk
Also fixed some sonarlint findings
@haiko-ritense haiko-ritense dismissed Tom-Ritense’s stale review October 10, 2024 09:44

Review accidently asked

@Tom-Ritense Tom-Ritense self-requested a review October 10, 2024 14:11
Tom-Ritense
Tom-Ritense previously approved these changes Oct 10, 2024
ivo-ritense
ivo-ritense previously approved these changes Oct 10, 2024
@Rick-Ritense Rick-Ritense merged commit 04920d5 into next-minor Oct 14, 2024
3 checks passed
@Rick-Ritense Rick-Ritense deleted the story/document-upload-in-bestandsdelen branch October 14, 2024 07:57
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