julee 0.1.3__py3-none-any.whl → 0.1.4__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- julee/api/tests/routers/test_documents.py +6 -6
- julee/docs/sphinx_hcd/__init__.py +4 -10
- julee/docs/sphinx_hcd/accelerators.py +277 -180
- julee/docs/sphinx_hcd/apps.py +78 -59
- julee/docs/sphinx_hcd/config.py +16 -16
- julee/docs/sphinx_hcd/epics.py +47 -42
- julee/docs/sphinx_hcd/integrations.py +53 -49
- julee/docs/sphinx_hcd/journeys.py +124 -110
- julee/docs/sphinx_hcd/personas.py +75 -53
- julee/docs/sphinx_hcd/stories.py +99 -71
- julee/docs/sphinx_hcd/utils.py +23 -18
- julee/domain/models/document/document.py +12 -21
- julee/domain/models/document/tests/test_document.py +14 -34
- julee/domain/use_cases/extract_assemble_data.py +1 -1
- julee/domain/use_cases/initialize_system_data.py +75 -21
- julee/fixtures/documents.yaml +4 -43
- julee/fixtures/knowledge_service_queries.yaml +9 -0
- julee/maintenance/release.py +85 -30
- julee/repositories/memory/document.py +19 -13
- julee/repositories/memory/tests/test_document.py +18 -18
- julee/repositories/minio/document.py +25 -22
- julee/repositories/minio/tests/test_document.py +16 -16
- {julee-0.1.3.dist-info → julee-0.1.4.dist-info}/METADATA +2 -3
- {julee-0.1.3.dist-info → julee-0.1.4.dist-info}/RECORD +27 -28
- julee/fixtures/assembly_specifications.yaml +0 -70
- {julee-0.1.3.dist-info → julee-0.1.4.dist-info}/WHEEL +0 -0
- {julee-0.1.3.dist-info → julee-0.1.4.dist-info}/licenses/LICENSE +0 -0
- {julee-0.1.3.dist-info → julee-0.1.4.dist-info}/top_level.txt +0 -0
|
@@ -61,7 +61,7 @@ def sample_documents() -> list[Document]:
|
|
|
61
61
|
created_at=datetime(2024, 1, 1, 12, 0, 0, tzinfo=timezone.utc),
|
|
62
62
|
updated_at=datetime(2024, 1, 1, 12, 0, 0, tzinfo=timezone.utc),
|
|
63
63
|
additional_metadata={"type": "test"},
|
|
64
|
-
|
|
64
|
+
content_bytes="test content",
|
|
65
65
|
),
|
|
66
66
|
Document(
|
|
67
67
|
document_id="doc-2",
|
|
@@ -73,7 +73,7 @@ def sample_documents() -> list[Document]:
|
|
|
73
73
|
created_at=datetime(2024, 1, 2, 12, 0, 0, tzinfo=timezone.utc),
|
|
74
74
|
updated_at=datetime(2024, 1, 2, 12, 0, 0, tzinfo=timezone.utc),
|
|
75
75
|
additional_metadata={"type": "report"},
|
|
76
|
-
|
|
76
|
+
content_bytes="pdf content",
|
|
77
77
|
),
|
|
78
78
|
]
|
|
79
79
|
|
|
@@ -203,7 +203,7 @@ class TestGetDocument:
|
|
|
203
203
|
assert data["additional_metadata"] == doc.additional_metadata
|
|
204
204
|
|
|
205
205
|
# Content should NOT be included in metadata endpoint
|
|
206
|
-
assert data["
|
|
206
|
+
assert data["content_bytes"] is None
|
|
207
207
|
# Content field is excluded from JSON response
|
|
208
208
|
assert "content" not in data
|
|
209
209
|
|
|
@@ -273,7 +273,7 @@ class TestGetDocumentContent:
|
|
|
273
273
|
memory_repo: MemoryDocumentRepository,
|
|
274
274
|
) -> None:
|
|
275
275
|
"""Test content retrieval when document has no content."""
|
|
276
|
-
# Create document with
|
|
276
|
+
# Create document with content_bytes first to pass validation
|
|
277
277
|
doc = Document(
|
|
278
278
|
document_id="doc-no-content",
|
|
279
279
|
original_filename="empty.txt",
|
|
@@ -282,7 +282,7 @@ class TestGetDocumentContent:
|
|
|
282
282
|
content_multihash="empty_hash",
|
|
283
283
|
status=DocumentStatus.CAPTURED,
|
|
284
284
|
additional_metadata={"type": "empty"},
|
|
285
|
-
|
|
285
|
+
content_bytes="temp",
|
|
286
286
|
)
|
|
287
287
|
|
|
288
288
|
# Save document normally, then manually remove content from storage
|
|
@@ -290,7 +290,7 @@ class TestGetDocumentContent:
|
|
|
290
290
|
stored_doc = memory_repo.storage_dict[doc.document_id]
|
|
291
291
|
# Remove content from the stored document
|
|
292
292
|
memory_repo.storage_dict[doc.document_id] = stored_doc.model_copy(
|
|
293
|
-
update={"content": None, "
|
|
293
|
+
update={"content": None, "content_bytes": None}
|
|
294
294
|
)
|
|
295
295
|
|
|
296
296
|
# Make request
|
|
@@ -37,7 +37,7 @@ Usage in conf.py::
|
|
|
37
37
|
|
|
38
38
|
from sphinx.util import logging
|
|
39
39
|
|
|
40
|
-
from .config import
|
|
40
|
+
from .config import config_factory, init_config
|
|
41
41
|
|
|
42
42
|
logger = logging.getLogger(__name__)
|
|
43
43
|
|
|
@@ -45,19 +45,13 @@ logger = logging.getLogger(__name__)
|
|
|
45
45
|
def setup(app):
|
|
46
46
|
"""Set up all HCD extensions for Sphinx."""
|
|
47
47
|
# Register configuration value first
|
|
48
|
-
app.add_config_value(
|
|
48
|
+
app.add_config_value("sphinx_hcd", {}, "env")
|
|
49
49
|
|
|
50
50
|
# Initialize config when builder starts (after conf.py is loaded)
|
|
51
|
-
app.connect(
|
|
51
|
+
app.connect("builder-inited", _init_config_handler, priority=0)
|
|
52
52
|
|
|
53
53
|
# Import and setup each extension module
|
|
54
|
-
from . import stories
|
|
55
|
-
from . import journeys
|
|
56
|
-
from . import epics
|
|
57
|
-
from . import apps
|
|
58
|
-
from . import accelerators
|
|
59
|
-
from . import integrations
|
|
60
|
-
from . import personas
|
|
54
|
+
from . import accelerators, apps, epics, integrations, journeys, personas, stories
|
|
61
55
|
|
|
62
56
|
# Call setup on each module
|
|
63
57
|
stories.setup(app)
|