invenio-app-rdm 14.0.0b1.dev2__py2.py3-none-any.whl → 14.0.0b1.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__ = "14.0.0b1.dev2"
20
+ __version__ = "14.0.0b1.dev4"
21
21
 
22
22
  __all__ = ("__version__",)
invenio_app_rdm/config.py CHANGED
@@ -1095,7 +1095,7 @@ RDM_SEARCH_USER_COMMUNITIES = {
1095
1095
 
1096
1096
  RDM_SEARCH_USER_REQUESTS = {
1097
1097
  "facets": ["type", "status"],
1098
- "sort": ["bestmatch", "newest", "oldest"],
1098
+ "sort": ["bestmatch", "newest", "oldest", "newestactivity", "oldestactivity"],
1099
1099
  }
1100
1100
  """User requests search configuration (i.e list of user requests)"""
1101
1101
 
@@ -1523,7 +1523,7 @@ SITEMAP_SECTIONS = [
1523
1523
  # ========================================
1524
1524
  APP_RDM_MODERATION_REQUEST_SEARCH = {
1525
1525
  "facets": ["status", "is_open"],
1526
- "sort": ["bestmatch", "newest", "oldest", "last_replied"],
1526
+ "sort": ["bestmatch", "newest", "oldest", "newestactivity", "oldestactivity"],
1527
1527
  }
1528
1528
  """Moderation requests search configuration."""
1529
1529
 
@@ -1540,9 +1540,13 @@ APP_RDM_MODERATION_REQUEST_SORT_OPTIONS = {
1540
1540
  title=_("Oldest"),
1541
1541
  fields=["created"],
1542
1542
  ),
1543
- "last_replied": dict(
1544
- title=_("Last replied"),
1545
- fields=["last_reply.created"],
1543
+ "newestactivity": dict(
1544
+ title=_("Newest activity"),
1545
+ fields=["-last_activity_at"],
1546
+ ),
1547
+ "oldestactivity": dict(
1548
+ title=_("Oldest activity"),
1549
+ fields=["last_activity_at"],
1546
1550
  ),
1547
1551
  }
1548
1552
  """Definitions of available record sort options."""
@@ -347,6 +347,8 @@ def load_custom_fields():
347
347
  # for each custom field. This is the label shown at the top of the upload
348
348
  # form
349
349
  field_error_label = field.get("props", {}).get("label")
350
+ # Add the field ID to the props to allow overriding the React widgets of custom fields
351
+ field["props"]["id"] = field["field"]
350
352
  if field_error_label:
351
353
  error_labels[f"custom_fields.{field['field']}"] = field_error_label
352
354
  if getattr(field_instance, "relation_cls", None):
@@ -535,8 +537,10 @@ def deposit_edit(pid_value, draft=None, draft_files=None, files_locked=True):
535
537
 
536
538
  published_record = None
537
539
  if record["is_published"]:
538
- published_record_result = service.read(g.identity, id_=record["id"]).to_dict()
539
- published_record = ui_serializer.dump_obj(published_record_result)
540
+ published_record_result = service.read(
541
+ g.identity, id_=record["id"], expand=True
542
+ )
543
+ published_record = ui_serializer.dump_obj(published_record_result.to_dict())
540
544
 
541
545
  rec_del = RDMRecordDeletionPolicy().evaluate(
542
546
  g.identity, published_record_result._record
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: invenio-app-rdm
3
- Version: 14.0.0b1.dev2
3
+ Version: 14.0.0b1.dev4
4
4
  Summary: Invenio Research Data Management.
5
5
  Home-page: https://github.com/inveniosoftware/invenio-app-rdm
6
6
  Author: CERN
@@ -40,7 +40,7 @@ Requires-Dist: invenio-search-ui<5.0.0,>=4.0.0
40
40
  Requires-Dist: invenio-files-rest<4.0.0,>=3.0.0
41
41
  Requires-Dist: invenio-previewer<4.0.0,>=3.0.0
42
42
  Requires-Dist: invenio-records-files<2.0.0,>=1.2.1
43
- Requires-Dist: invenio-collections<3.0.0,>=2.0.0
43
+ Requires-Dist: invenio-collections<3.0.0,>=1.0.0
44
44
  Requires-Dist: invenio-communities<22.0.0,>=21.0.0
45
45
  Requires-Dist: invenio-rdm-records<22.0.0,>=21.0.0
46
46
  Requires-Dist: CairoSVG<3.0.0,>=2.5.2
@@ -101,6 +101,17 @@ https://inveniordm.docs.cern.ch
101
101
  Changes
102
102
  =======
103
103
 
104
+ Version v14.0.0b1.dev4 (released 2025-10-03)
105
+
106
+ - installation: relax invenio-collections dependency requirements
107
+ * see https://github.com/inveniosoftware/invenio-app-rdm/issues/3194
108
+
109
+ Version v14.0.0b1.dev3 (released 2025-10-01)
110
+
111
+ - fix(deposit-ui): read expanded published record
112
+ * The UI serializer requires the expanded record service result.
113
+ - feat(config): add last activity sort option
114
+
104
115
  Version v14.0.0b1.dev2 (released 2025-09-29)
105
116
 
106
117
  - fix(deposit-ui): use API record for evaluating deletion policy
@@ -1,6 +1,6 @@
1
- invenio_app_rdm/__init__.py,sha256=WBZO-gxlwzSZLsfhBSsxFQnBujNKoXal2-E9fCkv-8c,704
1
+ invenio_app_rdm/__init__.py,sha256=_XKCZbx9IR-_mOuMRIvQV_a8YaKGDUB1XlCWj3qpfgg,704
2
2
  invenio_app_rdm/cli.py,sha256=G6QqNU2W6n6ICtTMnpeKFXIsdorncDmVXwwwsGH5F2k,2746
3
- invenio_app_rdm/config.py,sha256=yyCMk3yr7apE9qNcBUvQbAsk0-I-_U8Aoe3bS5fOOHs,53464
3
+ invenio_app_rdm/config.py,sha256=kxAliLtzXLRysO8qxWxoSt1FhOjuDfzUi8xr40BBIYE,53632
4
4
  invenio_app_rdm/ext.py,sha256=K7syn5CU5If7yOclFeNOCZX_u5q6VB7NJEQVm41mlng,5286
5
5
  invenio_app_rdm/tasks.py,sha256=FyrIQXVuPjms-dNEnLrVmmdwrX_IykJ87gcSNgOR6O0,1373
6
6
  invenio_app_rdm/views.py,sha256=SDr9NwZEWQcgT_3GFRYdDf6eUaK9DfnoafIkhUf9nSI,785
@@ -90,7 +90,7 @@ invenio_app_rdm/records_ui/templates/semantic-ui/invenio_app_rdm/records/macros/
90
90
  invenio_app_rdm/records_ui/templates/semantic-ui/invenio_app_rdm/records/macros/version.html,sha256=eA8-n81XUezkwPXvcG5v2sgLPQNTgr7hB36-_Gr-tVI,758
91
91
  invenio_app_rdm/records_ui/views/__init__.py,sha256=9DaDls04IQv7fYttDjLofIWGsRRjk-FwUYnIfxV3OWk,5840
92
92
  invenio_app_rdm/records_ui/views/decorators.py,sha256=-GdyPh2qIxV_wacAv5uChNx-HW2LiKjHQiRujiu42B4,16510
93
- invenio_app_rdm/records_ui/views/deposits.py,sha256=G_sZKGo37eKIZx9kU-p2_ImQSZVlBIMQXNIZ3fdOjw4,25213
93
+ invenio_app_rdm/records_ui/views/deposits.py,sha256=qr92epXPVORk6z8TpB_KT7CaRQQNtmVRGmDDxKCe9U4,25397
94
94
  invenio_app_rdm/records_ui/views/filters.py,sha256=zKuqjM_Yb9MmBmloStjasASYCwVG7mUe0eolI2MtPXg,6998
95
95
  invenio_app_rdm/records_ui/views/records.py,sha256=vLuenTEoTV9ZB9suUGI4ct1ml2iModZqhdlVfK5dIRc,17811
96
96
  invenio_app_rdm/redirector/__init__.py,sha256=AYCTGmfbmkHW3YJXMqXlWBXcBrUsta-QmL9ULX2bjwA,243
@@ -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.dev2.dist-info/licenses/LICENSE,sha256=AZXFHRrZa5s4m9DV7zZr4bPGTMUvcEPCodeV_AmFI8k,1204
499
- invenio_app_rdm-14.0.0b1.dev2.dist-info/METADATA,sha256=jnNfU7xmuNhwhpY7jpin12YapqHwVKhkqrv-yQy8zoI,17738
500
- invenio_app_rdm-14.0.0b1.dev2.dist-info/WHEEL,sha256=JNWh1Fm1UdwIQV075glCn4MVuCRs0sotJIq-J6rbxCU,109
501
- invenio_app_rdm-14.0.0b1.dev2.dist-info/entry_points.txt,sha256=MwtT1SN5saWOgTYhNb5y0YGA9VGAi0kXN0cykIfsb4U,2405
502
- invenio_app_rdm-14.0.0b1.dev2.dist-info/top_level.txt,sha256=quZejDUw2vLfKQboNIuVLJ9fxZifdnCT_s2PNf1dfmk,16
503
- invenio_app_rdm-14.0.0b1.dev2.dist-info/RECORD,,
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,,