invenio-app-rdm 14.0.0b1.dev4__py2.py3-none-any.whl → 14.0.0b1.dev5__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__ = "14.0.0b1.dev4"
20
+ __version__ = "14.0.0b1.dev5"
21
21
 
22
22
  __all__ = ("__version__",)
@@ -20,6 +20,8 @@ it under the terms of the MIT License; see LICENSE file for more details.
20
20
  data-groups-enabled='{{ config.USERS_RESOURCES_GROUPS_ENABLED | tojson }}'
21
21
  {% if record_deletion %}
22
22
  data-record-deletion='{{ record_deletion | tojson }}'
23
+ {% else %}
24
+ data-record-deletion='{{ {} | tojson }}'
23
25
  {% endif %}
24
26
  {% if config.RDM_DETAIL_SIDE_BAR_MANAGE_ATTRIBUTES_EXTENSION_TEMPLATE %}
25
27
  {% include config.RDM_DETAIL_SIDE_BAR_MANAGE_ATTRIBUTES_EXTENSION_TEMPLATE %}
@@ -1,5 +1,5 @@
1
1
  // This file is part of InvenioRDM
2
- // Copyright (C) 2023 CERN.
2
+ // Copyright (C) 2023-2025 CERN.
3
3
  //
4
4
  // Invenio App RDM is free software; you can redistribute it and/or modify it
5
5
  // under the terms of the MIT License; see LICENSE file for more details.
@@ -46,7 +46,7 @@ export class AccessRequestTimelineEdit extends Component {
46
46
  links: { self: selfLink },
47
47
  } = request;
48
48
  const { secret_link_expiration: secretLinkExpiration } = values;
49
- if (secretLinkExpiration === null) {
49
+ if (secretLinkExpiration === null || secretLinkExpiration === "") {
50
50
  payload["secret_link_expiration"] = "0";
51
51
  } else {
52
52
  const date = DateTime.fromISO(secretLinkExpiration);
@@ -76,17 +76,17 @@ export class AccessRequestTimelineEdit extends Component {
76
76
  initFormValues = () => {
77
77
  const {
78
78
  request: {
79
- payload: { secret_link_expiration },
79
+ payload: { secret_link_expiration: secretLinkExpiration },
80
80
  },
81
81
  } = this.props;
82
82
 
83
- if (parseInt(secret_link_expiration) === 0) {
83
+ if (parseInt(secretLinkExpiration) === 0 || secretLinkExpiration === "NaN") {
84
84
  return {
85
85
  secret_link_expiration: "",
86
86
  };
87
87
  }
88
88
  const dateFromDays = DateTime.now().plus({
89
- days: parseInt(secret_link_expiration),
89
+ days: parseInt(secretLinkExpiration),
90
90
  });
91
91
  return {
92
92
  secret_link_expiration: dateFromDays.toISODate(),
@@ -1,5 +1,5 @@
1
1
  // This file is part of InvenioRDM
2
- // Copyright (C) 2023 CERN.
2
+ // Copyright (C) 2023-2025 CERN.
3
3
  //
4
4
  // Invenio App RDM is free software; you can redistribute it and/or modify it
5
5
  // under the terms of the MIT License; see LICENSE file for more details.
@@ -20,7 +20,7 @@ export class AccessRequestTimelineRead extends Component {
20
20
  } = this.props;
21
21
 
22
22
  const expirationDate =
23
- secretLinkExpiration === 0
23
+ parseInt(secretLinkExpiration) === 0
24
24
  ? i18next.t("Never")
25
25
  : DateTime.fromISO(updated)
26
26
  .plus({
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: invenio-app-rdm
3
- Version: 14.0.0b1.dev4
3
+ Version: 14.0.0b1.dev5
4
4
  Summary: Invenio Research Data Management.
5
5
  Home-page: https://github.com/inveniosoftware/invenio-app-rdm
6
6
  Author: CERN
@@ -101,6 +101,19 @@ https://inveniordm.docs.cern.ch
101
101
  Changes
102
102
  =======
103
103
 
104
+ Version v14.0.0b1.dev5 (released 2025-10-14)
105
+
106
+ - fix(community-submission): add missing var in side bar template
107
+ - fix(guest-access-request): handle broken expiration date payload value
108
+ * this extra check prevents the request timeline UI from breaking when a
109
+ request payload has a broken value, to make recovery easier
110
+ * also, make eslint happy with a camel case variable name
111
+ - fix(guest-access-request): handle more possible expiration date values
112
+ * when the expiration date gets submitted, the value of the empty input
113
+ field is typically the empty string rather than `null`
114
+ * on the reading side, handle the case that the expiration date is set
115
+ as a string value (since request payloads are generally strings)
116
+
104
117
  Version v14.0.0b1.dev4 (released 2025-10-03)
105
118
 
106
119
  - installation: relax invenio-collections dependency requirements
@@ -1,4 +1,4 @@
1
- invenio_app_rdm/__init__.py,sha256=_XKCZbx9IR-_mOuMRIvQV_a8YaKGDUB1XlCWj3qpfgg,704
1
+ invenio_app_rdm/__init__.py,sha256=drRr2Ud4Kk45t5ZZDgxg7Bu_I8rsDI9Kq3QU_e_q6is,704
2
2
  invenio_app_rdm/cli.py,sha256=G6QqNU2W6n6ICtTMnpeKFXIsdorncDmVXwwwsGH5F2k,2746
3
3
  invenio_app_rdm/config.py,sha256=kxAliLtzXLRysO8qxWxoSt1FhOjuDfzUi8xr40BBIYE,53632
4
4
  invenio_app_rdm/ext.py,sha256=K7syn5CU5If7yOclFeNOCZX_u5q6VB7NJEQVm41mlng,5286
@@ -77,7 +77,7 @@ invenio_app_rdm/records_ui/templates/semantic-ui/invenio_app_rdm/records/details
77
77
  invenio_app_rdm/records_ui/templates/semantic-ui/invenio_app_rdm/records/details/side_bar/keywords_subjects.html,sha256=8FTUt6MVRvEsj89qDxP6eK2feyv2UI0fgICoT99cUIU,717
78
78
  invenio_app_rdm/records_ui/templates/semantic-ui/invenio_app_rdm/records/details/side_bar/licenses.html,sha256=8VfF1BJCvjc3MPPGDg5cm2M6_zbkz2HybJuRU5a2gXc,3172
79
79
  invenio_app_rdm/records_ui/templates/semantic-ui/invenio_app_rdm/records/details/side_bar/locations.html,sha256=6o5nQyXP0V158KMBsOpKMeuLGcw_lAhnZIyGpaogbMk,721
80
- invenio_app_rdm/records_ui/templates/semantic-ui/invenio_app_rdm/records/details/side_bar/manage_menu.html,sha256=6esAQuLKJ4sCRZQbRI1QFlN96XtzE-j8litvI7p3rgU,1443
80
+ invenio_app_rdm/records_ui/templates/semantic-ui/invenio_app_rdm/records/details/side_bar/manage_menu.html,sha256=BPAaDG_OhCkKaIUSqyBfjMFK8gMnweHzZtyNdwI0T4k,1516
81
81
  invenio_app_rdm/records_ui/templates/semantic-ui/invenio_app_rdm/records/details/side_bar/metrics.html,sha256=6aS28YC8U7VDWn2vI2ckYtzm9wVWacGZ4a7Pu5D3BBI,526
82
82
  invenio_app_rdm/records_ui/templates/semantic-ui/invenio_app_rdm/records/details/side_bar/technical_metadata.html,sha256=ptS8h6orgDhFFGXeZBCNBltELy_g9fUtS1bMTzieCPk,676
83
83
  invenio_app_rdm/records_ui/templates/semantic-ui/invenio_app_rdm/records/details/side_bar/versions.html,sha256=fIa8R0blN2rWkrP0K43qvSTye4Gt6-5yo3HN5FLdLTA,935
@@ -228,8 +228,8 @@ invenio_app_rdm/theme/assets/semantic-ui/js/invenio_app_rdm/overridableRegistry/
228
228
  invenio_app_rdm/theme/assets/semantic-ui/js/invenio_app_rdm/overridableRegistry/mapping.js,sha256=kRIVYx1pkzq6kNry3M6Cn5hykDkNJAaG7sQ0BdwGSj8,434
229
229
  invenio_app_rdm/theme/assets/semantic-ui/js/invenio_app_rdm/requests/AccessRequestExpiration.js,sha256=rakfZqfulHvuW60i3oTF0ptQvFChDoacPEw5iJkMq9U,1721
230
230
  invenio_app_rdm/theme/assets/semantic-ui/js/invenio_app_rdm/requests/index.js,sha256=FZ_XVB-5V7k_wOYeiI06RXQn3aIeh7beyBhcK5AIvCg,75
231
- invenio_app_rdm/theme/assets/semantic-ui/js/invenio_app_rdm/requests/timeline/AccessRequestTimelineEdit.js,sha256=rM5iSICtNsqXgOzNAWSpV61qJf8oE7XxqVTHMmhqkFk,5639
232
- invenio_app_rdm/theme/assets/semantic-ui/js/invenio_app_rdm/requests/timeline/AccessRequestTimelineRead.js,sha256=ezxgh43UbgthNNGL2hoh1YwNBlPl1fC_TI0RcnFHd1w,1389
231
+ invenio_app_rdm/theme/assets/semantic-ui/js/invenio_app_rdm/requests/timeline/AccessRequestTimelineEdit.js,sha256=xd0uVbKLC23Y3RHlHDs0NdQ2vq9PNhimPwANkEtLSJ8,5727
232
+ invenio_app_rdm/theme/assets/semantic-ui/js/invenio_app_rdm/requests/timeline/AccessRequestTimelineRead.js,sha256=CN_IIXwIeMDFxBxsal070uPVrpDH1_Rh7DSJi4hSjXA,1404
233
233
  invenio_app_rdm/theme/assets/semantic-ui/js/invenio_app_rdm/requests/timeline/overrides/TimelineFeedHeader.js,sha256=vU_D4F5jabAghjfPtpC3JvErrBVy39Je-PARgqwMD4w,1164
234
234
  invenio_app_rdm/theme/assets/semantic-ui/js/invenio_app_rdm/search/components.js,sha256=HfGLz_FZYePPEnS4fJ9-CVa8BzHPOgRi1_d21FgVrFg,7234
235
235
  invenio_app_rdm/theme/assets/semantic-ui/js/invenio_app_rdm/search/index.js,sha256=xvc8dtcPsTABiSpbt8azBVuZJuhXi39Nj4N8mPiFd40,2190
@@ -495,9 +495,9 @@ invenio_app_rdm/users_ui/views/__init__.py,sha256=SMdY2NJj9GICfr3Xuok7qdNYVtA2bJ
495
495
  invenio_app_rdm/users_ui/views/dashboard.py,sha256=iUn2PrODAwb8ugmMosJKAjPhUzjCiWiAWoXQr9RUFuc,1793
496
496
  invenio_app_rdm/users_ui/views/ui.py,sha256=W_eXM8dLVIrNHQB2UEh37C9BYoHauft6RyvcDNFHovA,1742
497
497
  invenio_app_rdm/utils/files.py,sha256=CruDyO2gDVadSlWEJD-WHpWHeOQ0juh-Ei9jz3D9yjc,3923
498
- invenio_app_rdm-14.0.0b1.dev4.dist-info/licenses/LICENSE,sha256=AZXFHRrZa5s4m9DV7zZr4bPGTMUvcEPCodeV_AmFI8k,1204
499
- invenio_app_rdm-14.0.0b1.dev4.dist-info/METADATA,sha256=I6GiefPNoy6b11TNqjOGylBE4z0aabNPUuLwdSI5fCQ,18136
500
- invenio_app_rdm-14.0.0b1.dev4.dist-info/WHEEL,sha256=JNWh1Fm1UdwIQV075glCn4MVuCRs0sotJIq-J6rbxCU,109
501
- invenio_app_rdm-14.0.0b1.dev4.dist-info/entry_points.txt,sha256=MwtT1SN5saWOgTYhNb5y0YGA9VGAi0kXN0cykIfsb4U,2405
502
- invenio_app_rdm-14.0.0b1.dev4.dist-info/top_level.txt,sha256=quZejDUw2vLfKQboNIuVLJ9fxZifdnCT_s2PNf1dfmk,16
503
- invenio_app_rdm-14.0.0b1.dev4.dist-info/RECORD,,
498
+ invenio_app_rdm-14.0.0b1.dev5.dist-info/licenses/LICENSE,sha256=AZXFHRrZa5s4m9DV7zZr4bPGTMUvcEPCodeV_AmFI8k,1204
499
+ invenio_app_rdm-14.0.0b1.dev5.dist-info/METADATA,sha256=SRxeu1SVjn3g-LgtNP2PZM9aU5oQEBafxMhy4tgeNkY,18883
500
+ invenio_app_rdm-14.0.0b1.dev5.dist-info/WHEEL,sha256=JNWh1Fm1UdwIQV075glCn4MVuCRs0sotJIq-J6rbxCU,109
501
+ invenio_app_rdm-14.0.0b1.dev5.dist-info/entry_points.txt,sha256=MwtT1SN5saWOgTYhNb5y0YGA9VGAi0kXN0cykIfsb4U,2405
502
+ invenio_app_rdm-14.0.0b1.dev5.dist-info/top_level.txt,sha256=quZejDUw2vLfKQboNIuVLJ9fxZifdnCT_s2PNf1dfmk,16
503
+ invenio_app_rdm-14.0.0b1.dev5.dist-info/RECORD,,