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

Feature/refaktorere dokumenter fra bestilling og maler #3698

Draft
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

krharum
Copy link
Contributor

@krharum krharum commented Dec 13, 2024

No description provided.

Add a new SQL migration script to create the 'dokument' table. This table includes columns for 'id', 'sist_oppdatert', 'versjon', and 'contents'. It ensures the table exists by using the IF NOT EXISTS clause.
Implemented database migration for managing documents tied to orders and templates. Added entity, repository, service, and controller layers to support retrieving and persisting documents. Introduced new endpoints for fetching documents by order ID.
Renamed variables for clarity and added logic to update `bestilling` objects with serialized `utvidetBestilling`. This ensures the data remains consistent after processing and improves maintainability.
Documents are now saved to the database and referenced by unique IDs, removing the need to handle raw document data directly in requests. This improves security and aligns better with best practices. Also, refactored related service and mapping logic to accommodate this change.
The `brevkode` and `tittel` fields were removed from the `DokumentInfo` class as they are no longer needed. This helps simplify the code and reduces potential maintenance overhead.
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.

1 participant