invenio-app-rdm 13.0.0b3.dev3__py2.py3-none-any.whl → 13.0.0b3.dev4__py2.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.
@@ -17,6 +17,6 @@
17
17
  #
18
18
  # See PEP 0440 for details - https://www.python.org/dev/peps/pep-0440
19
19
 
20
- __version__ = "13.0.0b3.dev3"
20
+ __version__ = "13.0.0b3.dev4"
21
21
 
22
22
  __all__ = ("__version__",)
@@ -23,7 +23,6 @@ from invenio_i18n.ext import current_i18n
23
23
  from invenio_rdm_records.proxies import current_rdm_records
24
24
  from invenio_rdm_records.records.api import get_files_quota
25
25
  from invenio_rdm_records.resources.serializers import UIJSONSerializer
26
- from invenio_rdm_records.services.components.pids import _get_optional_doi_transitions
27
26
  from invenio_rdm_records.services.schemas import RDMRecordSchema
28
27
  from invenio_rdm_records.services.schemas.utils import dump_empty
29
28
  from invenio_records_resources.services.errors import PermissionDeniedError
@@ -75,14 +74,15 @@ def get_form_pids_config(record=None):
75
74
  previous_published_record = (
76
75
  service.record_cls.get_latest_published_by_parent(record.parent)
77
76
  )
78
- optional_doi_transitions = _get_optional_doi_transitions(
79
- previous_published_record
77
+ validate_optional_doi = current_app.config["RDM_OPTIONAL_DOI_VALIDATOR"]
78
+ optional_doi_transitions = validate_optional_doi(
79
+ record, previous_published_record, errors=[]
80
80
  )
81
81
  if optional_doi_transitions:
82
82
  optional_doi_transitions["message"] = optional_doi_transitions.get(
83
83
  "message"
84
84
  ).format(sitename=sitename)
85
- if set(optional_doi_transitions.get("allowed_providers", [])) - set(
85
+ if set(optional_doi_transitions["allowed_providers"]) - set(
86
86
  ["external", "not_needed"]
87
87
  ):
88
88
  # In case we have locally managed provider as an allowed one, we need to
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: invenio-app-rdm
3
- Version: 13.0.0b3.dev3
3
+ Version: 13.0.0b3.dev4
4
4
  Summary: Invenio Research Data Management.
5
5
  Home-page: https://github.com/inveniosoftware/invenio-app-rdm
6
6
  Author: CERN
@@ -97,6 +97,10 @@ https://inveniordm.docs.cern.ch
97
97
  Changes
98
98
  =======
99
99
 
100
+ Version v13.0.0b3.dev4 (released 2025-04-10)
101
+
102
+ - deposits: use optional doi validator method
103
+
100
104
  Version v13.0.0b3.dev3 (released 2025-04-04)
101
105
 
102
106
  - fix: Handle undefined record attributes in templates to avoid rendering errors (#2932)
@@ -1,4 +1,4 @@
1
- invenio_app_rdm/__init__.py,sha256=yiKPjNn5A2pHJKXTk9pcja1NSSxCvY2DZK4ELc1tyMA,699
1
+ invenio_app_rdm/__init__.py,sha256=thlWzdrC3YcR9NNgPa8dKY16F6keY30swQLNnUFlkoY,699
2
2
  invenio_app_rdm/cli.py,sha256=G6QqNU2W6n6ICtTMnpeKFXIsdorncDmVXwwwsGH5F2k,2746
3
3
  invenio_app_rdm/config.py,sha256=Sv6Q8VEP-KYNuvC6kASLOYC-gYRByYN-hwPmbCxQWKc,50624
4
4
  invenio_app_rdm/ext.py,sha256=PkZhATGJDgYqBJQh41NdvBZWR83mgI3Eej6rj10UVJE,5278
@@ -82,7 +82,7 @@ invenio_app_rdm/records_ui/templates/semantic-ui/invenio_app_rdm/records/macros/
82
82
  invenio_app_rdm/records_ui/templates/semantic-ui/invenio_app_rdm/records/macros/version.html,sha256=eA8-n81XUezkwPXvcG5v2sgLPQNTgr7hB36-_Gr-tVI,758
83
83
  invenio_app_rdm/records_ui/views/__init__.py,sha256=fzRrhYImQg13KnHfxJgzDlJPe-DzE02GifP2j_Wt480,5726
84
84
  invenio_app_rdm/records_ui/views/decorators.py,sha256=XUSPpstYyh72IdNaIO4wz3sw1fjI_2DNGsKdUu3ueL4,15769
85
- invenio_app_rdm/records_ui/views/deposits.py,sha256=BZfkL9dIEtkab5FJ36UunGRS__YHfb7TMcDnRi8U5cA,21560
85
+ invenio_app_rdm/records_ui/views/deposits.py,sha256=KRR_fpl98EhNZie0Q-_uZtgG2QKsQAW2fhb-kvnQ4s4,21561
86
86
  invenio_app_rdm/records_ui/views/filters.py,sha256=Rm55fXJv97cqq8B_6KCe-3PxxHUH4VRu-jd9fTea6r4,6994
87
87
  invenio_app_rdm/records_ui/views/records.py,sha256=GdxG3JnXrV1QT0KxOqeYWoDGIiZRZ9w5poihPPd-wTo,16428
88
88
  invenio_app_rdm/redirector/__init__.py,sha256=AYCTGmfbmkHW3YJXMqXlWBXcBrUsta-QmL9ULX2bjwA,243
@@ -469,7 +469,7 @@ invenio_app_rdm/users_ui/views/__init__.py,sha256=SMdY2NJj9GICfr3Xuok7qdNYVtA2bJ
469
469
  invenio_app_rdm/users_ui/views/dashboard.py,sha256=iUn2PrODAwb8ugmMosJKAjPhUzjCiWiAWoXQr9RUFuc,1793
470
470
  invenio_app_rdm/users_ui/views/ui.py,sha256=W_eXM8dLVIrNHQB2UEh37C9BYoHauft6RyvcDNFHovA,1742
471
471
  invenio_app_rdm/utils/files.py,sha256=CruDyO2gDVadSlWEJD-WHpWHeOQ0juh-Ei9jz3D9yjc,3923
472
- invenio_app_rdm-13.0.0b3.dev3.dist-info/licenses/LICENSE,sha256=AZXFHRrZa5s4m9DV7zZr4bPGTMUvcEPCodeV_AmFI8k,1204
472
+ invenio_app_rdm-13.0.0b3.dev4.dist-info/licenses/LICENSE,sha256=AZXFHRrZa5s4m9DV7zZr4bPGTMUvcEPCodeV_AmFI8k,1204
473
473
  tests/__init__.py,sha256=yKVf0yYRuxmXvyAtLjmfpHGVCsEkZOhs_FojAAM_w-8,244
474
474
  tests/conftest.py,sha256=6iR-l-DIpQDxN2LLMu6kbHnLsmAW1m8Lq-j8rNNucf8,8956
475
475
  tests/test_tasks.py,sha256=6l25lcMjL3ZuQr4hsxbAEjSTu_J1aKkOB3ZXqOZZIy0,3712
@@ -502,8 +502,8 @@ tests/ui/test_filters.py,sha256=Q90wsJffjMVir7wNX8taGf2KZleLtPbXZXHLTkBpzLA,284
502
502
  tests/ui/test_signposting_ui.py,sha256=KCSjQlMD2VKlwQCyZYDwYjtVNL35x3u-ZC4ceD5y21w,3847
503
503
  tests/ui/test_static.py,sha256=vO3OQAOhrQESJifnQfM1pw7JYz3J874O8BAb7Cc_PPA,868
504
504
  tests/ui/test_stats_ui.py,sha256=LHa_0hjvpYvliSk_jknWy-90CO82jVElUfK5Ua_ZmfA,3554
505
- invenio_app_rdm-13.0.0b3.dev3.dist-info/METADATA,sha256=WJL9g4h8pbpxi0Q34DNcIgxxxCgqT7MiqtqmqH5ciMY,12485
506
- invenio_app_rdm-13.0.0b3.dev3.dist-info/WHEEL,sha256=MAQBAzGbXNI3bUmkDsiV_duv8i-gcdnLzw7cfUFwqhU,109
507
- invenio_app_rdm-13.0.0b3.dev3.dist-info/entry_points.txt,sha256=r1vTqYNABeWqRMWitzyR9FnBsAy-KYZKZCp95IziyLY,2070
508
- invenio_app_rdm-13.0.0b3.dev3.dist-info/top_level.txt,sha256=NqTqrntInEAci7EXcNBvouXFMqwyjVQhEI0b7izYRBY,22
509
- invenio_app_rdm-13.0.0b3.dev3.dist-info/RECORD,,
505
+ invenio_app_rdm-13.0.0b3.dev4.dist-info/METADATA,sha256=vhxrTA79CScM1kPJVbakn9zGiiOnAD6i_dAcJgQUVqQ,12578
506
+ invenio_app_rdm-13.0.0b3.dev4.dist-info/WHEEL,sha256=MAQBAzGbXNI3bUmkDsiV_duv8i-gcdnLzw7cfUFwqhU,109
507
+ invenio_app_rdm-13.0.0b3.dev4.dist-info/entry_points.txt,sha256=r1vTqYNABeWqRMWitzyR9FnBsAy-KYZKZCp95IziyLY,2070
508
+ invenio_app_rdm-13.0.0b3.dev4.dist-info/top_level.txt,sha256=NqTqrntInEAci7EXcNBvouXFMqwyjVQhEI0b7izYRBY,22
509
+ invenio_app_rdm-13.0.0b3.dev4.dist-info/RECORD,,