Skip to content

[DT-3108] Add PUT endpoint to Update FileStorageObject category#2865

Closed
kevinmarete wants to merge 3 commits intodevelopfrom
km-dt-3108-update-single-fso-entity-category
Closed

[DT-3108] Add PUT endpoint to Update FileStorageObject category#2865
kevinmarete wants to merge 3 commits intodevelopfrom
km-dt-3108-update-single-fso-entity-category

Conversation

@kevinmarete
Copy link
Copy Markdown
Contributor

@kevinmarete kevinmarete commented Apr 15, 2026

Addresses

https://broadworkbench.atlassian.net/browse/DT-3108

Summary

Adds a new endpoint to update the FileCategory of an existing FileStorageObject (PUT /api/{entity}/{entityId}/document/{id}) without requiring file re-upload. The change ensures that only the category is mutable while preserving file content and storage references.

Implements validation for valid and entity-appropriate categories, enforces entity ownership and access control, and prevents updates to soft-deleted or mismatched records. Adds DAO support for updating category metadata (updateUserId, updateDate) and includes Swagger documentation and unit tests for resource and DAO behavior.

After

Have you read CONTRIBUTING.md lately? If not, do that first.

  • Label PR with a Jira ticket number and include a link to the ticket
  • Label PR with a security risk modifier [no, low, medium, high]
  • PR describes scope of changes
  • Get a minimum of one thumbs worth of review, preferably two if enough team members are available
  • Get PO sign-off for all non-trivial UI or workflow changes
  • Verify all tests go green
  • Test this change deployed correctly and works on dev environment after deployment

@kevinmarete kevinmarete self-assigned this Apr 15, 2026
@kevinmarete kevinmarete changed the title Km dt 3108 update single fso entity category [DT-3108] Add PUT endpoint to Update FileStorageObject category Apr 15, 2026
@sonarqubecloud
Copy link
Copy Markdown

@kevinmarete kevinmarete marked this pull request as ready for review April 15, 2026 20:27
@kevinmarete kevinmarete requested a review from a team as a code owner April 15, 2026 20:27
@kevinmarete kevinmarete requested review from Copilot, eweitz, fboulnois and rushtong and removed request for a team, Copilot and fboulnois April 15, 2026 20:27
@kevinmarete kevinmarete marked this pull request as draft April 16, 2026 14:48
@kevinmarete
Copy link
Copy Markdown
Contributor Author

To be implemented in this PR: #2867

@kevinmarete kevinmarete deleted the km-dt-3108-update-single-fso-entity-category branch April 16, 2026 22:41
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.

2 participants