Commit Graph

23 Commits

Author SHA1 Message Date
Lacey Williams Henschel
2fa07cef36 Add clear by cache key to view 2023-06-27 15:25:56 -07:00
Lacey Williams Henschel
afb511dfd4 Add view to clear cache by content type 2023-06-27 15:25:56 -07:00
Lacey Williams Henschel
825dbc019b Cache asciidoc content in db (Part of #394)
- Add RenderedContent model and related helper methods
- Change StaticContentView `get()` logic to try the cache, then the db, then S3
- Change StaticContentView to update db appropriately
- Refactoring for readability/maintainability
2023-06-09 14:43:05 -07:00
Lacey Williams Henschel
624cbe6525 Serve asciidoc content from template, refactor tests 2023-06-06 11:14:50 -07:00
Lacey Williams Henschel
fb582afe9c Add temp privacy policy page 2023-05-23 16:31:44 -07:00
Lacey Williams Henschel
662ebe46f6 Merge branch 'main' of github.com:CPPAlliance/boost.org into 153-caching 2023-04-25 13:26:16 -07:00
Lacey Williams Henschel
a59741b2f2 🔥 Unused import 2023-04-19 13:18:03 -07:00
Lacey Williams Henschel
dc9424520c Picky test things 2023-04-19 13:15:17 -07:00
Lacey Williams Henschel
25e2ff3362 Fix mocked S3 tests 2023-04-19 13:07:14 -07:00
Lacey Williams Henschel
3fe65e7051 👕 Fix imports 2023-04-19 11:24:04 -07:00
Lacey Williams Henschel
2d987242c4 Fix cache tests 2023-04-19 11:21:21 -07:00
Lacey Williams Henschel
1a42c13353 🚧 Add a placeholder test for caching
Having trouble with the mocks
2023-04-05 14:52:46 -07:00
Lacey Williams Henschel
4800e7c487 Skip the live API test 2023-04-05 08:59:47 -07:00
Lacey Williams Henschel
83e12164ab Cleanup -- all should work now! 2023-04-05 08:58:18 -07:00
Lacey Williams Henschel
296e67609f Fix some tests
Also changed the config because the test path I had, ironically, led to an html file with a redirect, and that was throwing me for a loop
2023-04-05 08:29:37 -07:00
Lacey Williams Henschel
23289868cf 🚧 Progress on config for static content
Works now with the most basic setup: replace /site/develop/ with just / in the url
2023-04-05 07:19:45 -07:00
Lacey Williams Henschel
f8138d498f 🚧 Getting back to a working state without config
Includes these failing tests:
```
=============================== short test summary info ================================
FAILED core/tests/test_renderer.py::test_get_s3_keys - AssertionError: assert '/site/develop/tools/auto_index/index.html' in []
FAILED core/tests/test_views.py::test_static_content_template_view[/site/develop/rst.css] - django.http.response.Http404: Page not found
```
2023-04-05 06:40:36 -07:00
Lacey Williams Henschel
8fab4fca68 🚧 Progress on static content 2023-04-04 21:15:45 -07:00
Lacey Williams Henschel
947318ba65 Fix test 2023-04-04 12:20:39 -07:00
Lacey Williams Henschel
e0ce223c82 🚧 Separate markdown and static views, fix tests, add template 2023-04-04 12:15:31 -07:00
Lacey Williams Henschel
84c33d082d Comment out tests for now 2023-04-04 10:16:52 -07:00
Lacey Williams Henschel
49e83dfcad Set up a local dir for markdown content unit testing 2023-01-19 18:41:13 -08:00
Lacey Williams Henschel
3428012a49 Retrieve markdown from Docker container, render as HTML 2023-01-19 15:37:49 -08:00