Commit Graph

88 Commits

Author SHA1 Message Date
e68a98d54a Add convenient test runner script
Provides shortcuts for:
- Running all tests
- Running specific test suites
- Running with coverage
- Running with fail-fast
- Passing through to Django test runner
2025-10-24 17:26:46 +00:00
d1623b64f2 Add comprehensive testing documentation
- Describe test structure and organization
- Document how to run tests (all, specific, individual)
- Explain test coverage options
- List what each test suite covers
- Provide CI/CD integration examples
- Include debugging tips
- Show best practices for writing new tests
2025-10-24 17:26:30 +00:00
2fa10add66 Add unit tests for clear_diagram_cache management command
- Test clearing all cache
- Test clearing by specific type
- Test clearing empty cache
- Test command properly calls underlying function
- Test command help text
- Integration tests for full workflow
2025-10-24 17:25:58 +00:00
da66f2ddc6 Add comprehensive unit tests for rendering functions
- Test text rendering with markdown
- Test unordered and ordered lists
- Test table rendering
- Test diagram rendering (success and error cases)
- Test diagram with custom options
- Test code blocks
- Test edge cases (empty content, no type)
- Test multiple sections
- Test md_table_to_html function
- Integration tests for mixed content
2025-10-24 17:20:46 +00:00
bff887428e Add comprehensive unit tests for diagram caching
- Test hash computation and consistency
- Test cache path generation
- Test cache miss (generates diagram)
- Test cache hit (uses cached diagram)
- Test error handling
- Test cache clearing (all and by type)
- Test unicode handling
- Test timeout configuration
- Integration tests for full lifecycle
2025-10-24 17:19:52 +00:00
0f096d18aa Add MEDIA_ROOT, MEDIA_URL and DIAGRAM_CACHE_DIR to docker settings 2025-10-23 23:00:14 +00:00
9b484787a4 Add media file serving for cached diagrams
- Configure MEDIA_URL/MEDIA_ROOT serving in DEBUG mode
- Separate static and media file configurations for clarity
2025-10-23 22:59:54 +00:00
8dd3b4e9af Add MEDIA_ROOT, MEDIA_URL and DIAGRAM_CACHE_DIR settings 2025-10-23 22:59:40 +00:00
67c393ecf1 Add documentation for diagram POST caching feature 2025-10-23 22:06:30 +00:00
dbb3ecd5bf Add diagram cache directory to gitignore 2025-10-23 22:06:07 +00:00
966cd46228 Add management command to clear diagram cache
Usage:
  python manage.py clear_diagram_cache
  python manage.py clear_diagram_cache --type plantuml
2025-10-23 22:05:36 +00:00
1ee9b3c46f Add commands package 2025-10-23 22:05:26 +00:00
8f57f5fc5b Add management module 2025-10-23 22:05:21 +00:00
cd7195b3aa Update diagram rendering to use POST with caching
- Replace URL-encoded GET approach with POST requests
- Use local filesystem cache for generated diagrams
- Add error handling with fallback message
- Serve diagrams from MEDIA_URL instead of proxy
2025-10-23 22:05:13 +00:00
020dff0871 Add diagram caching module with POST support
- Implement content-based hashing for cache keys
- POST diagram content to Kroki server instead of URL encoding
- Store generated SVGs in local filesystem cache
- Add cache clearing functionality
2025-10-23 22:04:19 +00:00
1dbdbc7f3c Initialize diagramm_proxy module 2025-10-23 22:03:39 +00:00
4de2ad38c5 Readme added 2025-10-21 23:46:17 +02:00
a08e2186f3 Documentation folder added with examples of import structured files (plain-text) 2025-10-21 14:29:47 +02:00
762f13fa6a Deploy 929 2025-10-20 07:38:18 +02:00
8b6d1653f0 Empty line in manage.py removed 2025-10-20 07:31:39 +02:00
de0a475a57 Static collection in Docker build 2025-10-16 16:15:57 +02:00
2aaab3b3d4 Added comments to standard_detail.html 2025-10-14 10:26:34 +02:00
db06ae0630 kroki containers pulled to local repo - typo corrected 2025-10-06 16:29:56 +02:00
6afc9f8f4e kroki containers pulled to local repo 2025-10-06 16:28:57 +02:00
5e0616dc6c debugging 2025-10-06 16:10:12 +02:00
a55736f736 Removed docker.io for kroki images 2025-10-06 16:08:18 +02:00
d97a66690a Removed docker.io for kroki images 2025-10-06 15:57:18 +02:00
784fbea088 Back to don't clobber database when copying. 2025-10-06 15:49:00 +02:00
6e8a978ae5 clobber database when copying. 2025-10-06 15:47:51 +02:00
2065d69a80 turns out busybox copy has different command line options. 2025-10-06 15:01:29 +02:00
dbd75f9e30 turns out busybox copy has different command line options. 2025-10-06 14:56:12 +02:00
077b376953 sleep added to init container; debugging... 2025-10-06 14:54:42 +02:00
7c1b89a13b turns out busybox copy has different command line options. 2025-10-06 14:51:30 +02:00
b0bfb4a38a sleep added to init container; debugging... 2025-10-06 14:48:54 +02:00
244e9e155f Data-Loader added as initcontainer 2025-10-06 14:34:54 +02:00
bba32d08e3 v026 2025-10-06 14:13:32 +02:00
4b257bae44 Added version number and trigger deployment 2025-10-06 13:41:51 +02:00
89f427462d Added Metas for all models 2025-10-06 13:31:15 +02:00
94f381c02f renamed and adjusted import script 2025-10-03 15:25:49 +02:00
a24c1059c8 minor changes for deployment 2025-10-03 10:25:04 +02:00
d7ddb0a88c Ingress changed to be publicly accessible 2025-10-03 08:10:43 +02:00
dd75bd20c4 New preload data 2025-10-03 00:40:37 +02:00
6c1b4938cf Merge branch 'development' 2025-10-02 14:26:57 +02:00
23f6c9bb31 Changed class name "Standards" to "Dokumente" 2025-10-02 14:18:11 +02:00
53c828c77f Deploy 0.923 2025-10-01 22:44:24 +02:00
412a5f3824 Merge pull request 'development' (#1) from development into main
Reviewed-on: #1
2025-10-01 20:36:58 +00:00
931131b8e6 Removed django debug toolbar 2025-10-01 22:34:49 +02:00
506b40db6c Removed debug toolbar 2025-10-01 22:33:53 +02:00
04690e9ee7 rebase due to conflicting push 2025-10-01 21:59:42 +02:00
0940232bb6 Removed unnecessary stuff from Dockerfile, Docker image now on own repo 2025-10-01 21:53:52 +02:00