oarepo-runtime 2.0.0.dev31__tar.gz → 2.0.0.dev32__tar.gz
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.
- {oarepo_runtime-2.0.0.dev31 → oarepo_runtime-2.0.0.dev32}/PKG-INFO +1 -1
- {oarepo_runtime-2.0.0.dev31 → oarepo_runtime-2.0.0.dev32}/oarepo_runtime/__init__.py +1 -1
- {oarepo_runtime-2.0.0.dev31 → oarepo_runtime-2.0.0.dev32}/oarepo_runtime/services/records/links.py +18 -4
- {oarepo_runtime-2.0.0.dev31 → oarepo_runtime-2.0.0.dev32}/.gitignore +0 -0
- {oarepo_runtime-2.0.0.dev31 → oarepo_runtime-2.0.0.dev32}/LICENSE +0 -0
- {oarepo_runtime-2.0.0.dev31 → oarepo_runtime-2.0.0.dev32}/README.md +0 -0
- {oarepo_runtime-2.0.0.dev31 → oarepo_runtime-2.0.0.dev32}/oarepo_runtime/api.py +0 -0
- {oarepo_runtime-2.0.0.dev31 → oarepo_runtime-2.0.0.dev32}/oarepo_runtime/cli/__init__.py +0 -0
- {oarepo_runtime-2.0.0.dev31 → oarepo_runtime-2.0.0.dev32}/oarepo_runtime/cli/search.py +0 -0
- {oarepo_runtime-2.0.0.dev31 → oarepo_runtime-2.0.0.dev32}/oarepo_runtime/config.py +0 -0
- {oarepo_runtime-2.0.0.dev31 → oarepo_runtime-2.0.0.dev32}/oarepo_runtime/ext.py +0 -0
- {oarepo_runtime-2.0.0.dev31 → oarepo_runtime-2.0.0.dev32}/oarepo_runtime/info/__init__.py +0 -0
- {oarepo_runtime-2.0.0.dev31 → oarepo_runtime-2.0.0.dev32}/oarepo_runtime/info/views.py +0 -0
- {oarepo_runtime-2.0.0.dev31 → oarepo_runtime-2.0.0.dev32}/oarepo_runtime/proxies.py +0 -0
- {oarepo_runtime-2.0.0.dev31 → oarepo_runtime-2.0.0.dev32}/oarepo_runtime/py.typed +0 -0
- {oarepo_runtime-2.0.0.dev31 → oarepo_runtime-2.0.0.dev32}/oarepo_runtime/records/__init__.py +0 -0
- {oarepo_runtime-2.0.0.dev31 → oarepo_runtime-2.0.0.dev32}/oarepo_runtime/records/drafts.py +0 -0
- {oarepo_runtime-2.0.0.dev31 → oarepo_runtime-2.0.0.dev32}/oarepo_runtime/records/mapping.py +0 -0
- {oarepo_runtime-2.0.0.dev31 → oarepo_runtime-2.0.0.dev32}/oarepo_runtime/records/pid_providers.py +0 -0
- {oarepo_runtime-2.0.0.dev31 → oarepo_runtime-2.0.0.dev32}/oarepo_runtime/records/systemfields/__init__.py +0 -0
- {oarepo_runtime-2.0.0.dev31 → oarepo_runtime-2.0.0.dev32}/oarepo_runtime/records/systemfields/custom_fields.py +0 -0
- {oarepo_runtime-2.0.0.dev31 → oarepo_runtime-2.0.0.dev32}/oarepo_runtime/records/systemfields/mapping.py +0 -0
- {oarepo_runtime-2.0.0.dev31 → oarepo_runtime-2.0.0.dev32}/oarepo_runtime/records/systemfields/publication_status.py +0 -0
- {oarepo_runtime-2.0.0.dev31 → oarepo_runtime-2.0.0.dev32}/oarepo_runtime/records/systemfields/selectors.py +0 -0
- {oarepo_runtime-2.0.0.dev31 → oarepo_runtime-2.0.0.dev32}/oarepo_runtime/resources/__init__.py +0 -0
- {oarepo_runtime-2.0.0.dev31 → oarepo_runtime-2.0.0.dev32}/oarepo_runtime/resources/config.py +0 -0
- {oarepo_runtime-2.0.0.dev31 → oarepo_runtime-2.0.0.dev32}/oarepo_runtime/services/__init__.py +0 -0
- {oarepo_runtime-2.0.0.dev31 → oarepo_runtime-2.0.0.dev32}/oarepo_runtime/services/config/__init__.py +0 -0
- {oarepo_runtime-2.0.0.dev31 → oarepo_runtime-2.0.0.dev32}/oarepo_runtime/services/config/components.py +0 -0
- {oarepo_runtime-2.0.0.dev31 → oarepo_runtime-2.0.0.dev32}/oarepo_runtime/services/config/link_conditions.py +0 -0
- {oarepo_runtime-2.0.0.dev31 → oarepo_runtime-2.0.0.dev32}/oarepo_runtime/services/config/permissions.py +0 -0
- {oarepo_runtime-2.0.0.dev31 → oarepo_runtime-2.0.0.dev32}/oarepo_runtime/services/facets/__init__.py +0 -0
- {oarepo_runtime-2.0.0.dev31 → oarepo_runtime-2.0.0.dev32}/oarepo_runtime/services/facets/base.py +0 -0
- {oarepo_runtime-2.0.0.dev31 → oarepo_runtime-2.0.0.dev32}/oarepo_runtime/services/facets/date.py +0 -0
- {oarepo_runtime-2.0.0.dev31 → oarepo_runtime-2.0.0.dev32}/oarepo_runtime/services/facets/nested_facet.py +0 -0
- {oarepo_runtime-2.0.0.dev31 → oarepo_runtime-2.0.0.dev32}/oarepo_runtime/services/facets/params.py +0 -0
- {oarepo_runtime-2.0.0.dev31 → oarepo_runtime-2.0.0.dev32}/oarepo_runtime/services/facets/utils.py +0 -0
- {oarepo_runtime-2.0.0.dev31 → oarepo_runtime-2.0.0.dev32}/oarepo_runtime/services/generators.py +0 -0
- {oarepo_runtime-2.0.0.dev31 → oarepo_runtime-2.0.0.dev32}/oarepo_runtime/services/records/__init__.py +0 -0
- {oarepo_runtime-2.0.0.dev31 → oarepo_runtime-2.0.0.dev32}/oarepo_runtime/services/records/custom_fields.py +0 -0
- {oarepo_runtime-2.0.0.dev31 → oarepo_runtime-2.0.0.dev32}/oarepo_runtime/services/records/mapping.py +0 -0
- {oarepo_runtime-2.0.0.dev31 → oarepo_runtime-2.0.0.dev32}/oarepo_runtime/services/results.py +0 -0
- {oarepo_runtime-2.0.0.dev31 → oarepo_runtime-2.0.0.dev32}/oarepo_runtime/services/schema/__init__.py +0 -0
- {oarepo_runtime-2.0.0.dev31 → oarepo_runtime-2.0.0.dev32}/oarepo_runtime/services/schema/i18n.py +0 -0
- {oarepo_runtime-2.0.0.dev31 → oarepo_runtime-2.0.0.dev32}/oarepo_runtime/services/schema/i18n_ui.py +0 -0
- {oarepo_runtime-2.0.0.dev31 → oarepo_runtime-2.0.0.dev32}/oarepo_runtime/services/schema/ui.py +0 -0
- {oarepo_runtime-2.0.0.dev31 → oarepo_runtime-2.0.0.dev32}/oarepo_runtime/typing.py +0 -0
- {oarepo_runtime-2.0.0.dev31 → oarepo_runtime-2.0.0.dev32}/pyproject.toml +0 -0
{oarepo_runtime-2.0.0.dev31 → oarepo_runtime-2.0.0.dev32}/oarepo_runtime/services/records/links.py
RENAMED
@@ -11,6 +11,8 @@
|
|
11
11
|
|
12
12
|
from __future__ import annotations
|
13
13
|
|
14
|
+
from typing import Any, override
|
15
|
+
|
14
16
|
from invenio_records_resources.services.base.links import EndpointLink
|
15
17
|
|
16
18
|
|
@@ -28,16 +30,28 @@ def rdm_pagination_record_endpoint_links(endpoint: str, params: list[str] | None
|
|
28
30
|
service but not in invenio_drafts_resources service, where the parameter is
|
29
31
|
called "id" instead of "pid_value". That is why this function is called rdm_...
|
30
32
|
"""
|
31
|
-
params = [*(params or []), "
|
33
|
+
params = [*(params or []), "id"]
|
34
|
+
|
35
|
+
class RecordEndpointLinkWithId(EndpointLink):
|
36
|
+
@override
|
37
|
+
@staticmethod
|
38
|
+
def vars(obj: Any, vars: dict[str, Any]) -> None:
|
39
|
+
pid_value = vars.pop("pid_value", None)
|
40
|
+
if pid_value is not None:
|
41
|
+
vars["id"] = pid_value
|
42
|
+
|
32
43
|
return {
|
33
|
-
"prev":
|
44
|
+
"prev": RecordEndpointLinkWithId(
|
34
45
|
endpoint,
|
35
46
|
when=lambda pagination, _ctx: pagination.has_prev,
|
36
47
|
vars=lambda pagination, _vars: _vars["args"].update({"page": pagination.prev_page.page}),
|
37
48
|
params=params,
|
38
49
|
),
|
39
|
-
"self":
|
40
|
-
|
50
|
+
"self": RecordEndpointLinkWithId(
|
51
|
+
endpoint,
|
52
|
+
params=params,
|
53
|
+
),
|
54
|
+
"next": RecordEndpointLinkWithId(
|
41
55
|
endpoint,
|
42
56
|
when=lambda pagination, _ctx: pagination.has_next,
|
43
57
|
vars=lambda pagination, _vars: _vars["args"].update({"page": pagination.next_page.page}),
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{oarepo_runtime-2.0.0.dev31 → oarepo_runtime-2.0.0.dev32}/oarepo_runtime/records/__init__.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
{oarepo_runtime-2.0.0.dev31 → oarepo_runtime-2.0.0.dev32}/oarepo_runtime/records/pid_providers.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{oarepo_runtime-2.0.0.dev31 → oarepo_runtime-2.0.0.dev32}/oarepo_runtime/resources/__init__.py
RENAMED
File without changes
|
{oarepo_runtime-2.0.0.dev31 → oarepo_runtime-2.0.0.dev32}/oarepo_runtime/resources/config.py
RENAMED
File without changes
|
{oarepo_runtime-2.0.0.dev31 → oarepo_runtime-2.0.0.dev32}/oarepo_runtime/services/__init__.py
RENAMED
File without changes
|
{oarepo_runtime-2.0.0.dev31 → oarepo_runtime-2.0.0.dev32}/oarepo_runtime/services/config/__init__.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{oarepo_runtime-2.0.0.dev31 → oarepo_runtime-2.0.0.dev32}/oarepo_runtime/services/facets/__init__.py
RENAMED
File without changes
|
{oarepo_runtime-2.0.0.dev31 → oarepo_runtime-2.0.0.dev32}/oarepo_runtime/services/facets/base.py
RENAMED
File without changes
|
{oarepo_runtime-2.0.0.dev31 → oarepo_runtime-2.0.0.dev32}/oarepo_runtime/services/facets/date.py
RENAMED
File without changes
|
File without changes
|
{oarepo_runtime-2.0.0.dev31 → oarepo_runtime-2.0.0.dev32}/oarepo_runtime/services/facets/params.py
RENAMED
File without changes
|
{oarepo_runtime-2.0.0.dev31 → oarepo_runtime-2.0.0.dev32}/oarepo_runtime/services/facets/utils.py
RENAMED
File without changes
|
{oarepo_runtime-2.0.0.dev31 → oarepo_runtime-2.0.0.dev32}/oarepo_runtime/services/generators.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
{oarepo_runtime-2.0.0.dev31 → oarepo_runtime-2.0.0.dev32}/oarepo_runtime/services/records/mapping.py
RENAMED
File without changes
|
{oarepo_runtime-2.0.0.dev31 → oarepo_runtime-2.0.0.dev32}/oarepo_runtime/services/results.py
RENAMED
File without changes
|
{oarepo_runtime-2.0.0.dev31 → oarepo_runtime-2.0.0.dev32}/oarepo_runtime/services/schema/__init__.py
RENAMED
File without changes
|
{oarepo_runtime-2.0.0.dev31 → oarepo_runtime-2.0.0.dev32}/oarepo_runtime/services/schema/i18n.py
RENAMED
File without changes
|
{oarepo_runtime-2.0.0.dev31 → oarepo_runtime-2.0.0.dev32}/oarepo_runtime/services/schema/i18n_ui.py
RENAMED
File without changes
|
{oarepo_runtime-2.0.0.dev31 → oarepo_runtime-2.0.0.dev32}/oarepo_runtime/services/schema/ui.py
RENAMED
File without changes
|
File without changes
|
File without changes
|