Skip to content

Commit 11df0e8

Browse files
committed
Remove /livepapers resource, since the livepaper API has been separated into its own repository at https://gitlab.ebrains.eu/live-papers/live-papers-api
1 parent a2993e0 commit 11df0e8

37 files changed

+3
-9482
lines changed

validation_service_api/validation_service/data_models.py

Lines changed: 0 additions & 476 deletions
Large diffs are not rendered by default.

validation_service_api/validation_service/db.py

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
from fastapi import HTTPException, status
99
from fairgraph.openminds.core import Model, ModelVersion, SoftwareVersion
1010
from fairgraph.openminds.computation import ValidationTest, ValidationTestVersion
11-
from fairgraph.openminds.publications import LivePaper
1211
from . import settings
1312

1413
RETRY_INTERVAL = 60 # seconds
@@ -94,19 +93,3 @@ def _get_test_instance_by_id(instance_id, kg_client, scope):
9493
detail=f"Test instance with ID '{instance_id}' not found.",
9594
)
9695
return test_instance
97-
98-
99-
def _get_live_paper_by_id_or_alias(lp_id, kg_client, scope):
100-
101-
if isinstance(lp_id, UUID):
102-
identifier_type = "ID"
103-
live_paper = LivePaper.from_uuid(str(lp_id), kg_client, scope=scope)
104-
else:
105-
identifier_type = "alias"
106-
live_paper = LivePaper.from_alias(lp_id, kg_client, space=LivePaper.default_space, scope=scope)
107-
if not live_paper:
108-
raise HTTPException(
109-
status_code=status.HTTP_404_NOT_FOUND,
110-
detail=f"Live paper with {identifier_type} '{lp_id}' not found.",
111-
)
112-
return live_paper

validation_service_api/validation_service/examples.py

Lines changed: 1 addition & 1632 deletions
Large diffs are not rendered by default.

validation_service_api/validation_service/main.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
from starlette.middleware.sessions import SessionMiddleware
33
from starlette.middleware.cors import CORSMiddleware
44

5-
from .resources import models, tests, vocab, results, auth, livepapers
5+
from .resources import models, tests, vocab, results, auth
66
from . import settings
77

88

@@ -50,5 +50,4 @@
5050
app.include_router(tests.router, tags=["Validation Tests"])
5151
app.include_router(results.router, tags=["Validation Results"])
5252
#app.include_router(simulations.router, tags=["Simulations"])
53-
app.include_router(livepapers.router, tags=["Live Papers"])
5453
app.include_router(vocab.router, tags=["Controlled vocabularies"])

validation_service_api/validation_service/resources/livepapers.py

Lines changed: 0 additions & 356 deletions
This file was deleted.

0 commit comments

Comments
 (0)