From 4d62850e41008a67b3ebded18341204390c172d4 Mon Sep 17 00:00:00 2001 From: Pal Kerecsenyi Date: Tue, 19 Aug 2025 10:54:43 +0200 Subject: [PATCH 1/3] config: compat with new VCS integration * We are updating `invenio-github` to be a generic package supporting many VCS providers, not just GitHub. As such, it will be renamed (currently to `invenio-vcs`). * The `RDMGitHubRelease` class has been renamed and restructured, so this must be reflected in `config.py` for continued functionality. No other changes are needed to this repository at the moment. * See https://github.com/inveniosoftware/invenio-rdm-records/pull/2128 --- invenio_app_rdm/config.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/invenio_app_rdm/config.py b/invenio_app_rdm/config.py index f61430817..a1c88a15e 100644 --- a/invenio_app_rdm/config.py +++ b/invenio_app_rdm/config.py @@ -80,10 +80,10 @@ InvalidAccessRestrictions, InvalidCommunityVisibility, ) -from invenio_rdm_records.services.github.release import RDMGithubRelease from invenio_rdm_records.services.permissions import RDMRequestsPermissionPolicy from invenio_rdm_records.services.stats import permissions_policy_lookup_factory from invenio_rdm_records.services.tasks import StatsRDMReindexTask +from invenio_rdm_records.services.vcs.release import RDMVCSRelease from invenio_records_resources.references.entity_resolvers import ServiceResultResolver from invenio_requests.notifications.builders import ( CommentRequestEventCreateNotificationBuilder, @@ -1478,10 +1478,10 @@ def github_link_render(record): } -# Invenio-Github +# Invenio-VCS # ================= # -GITHUB_RELEASE_CLASS = RDMGithubRelease +VCS_RELEASE_CLASS = RDMVCSRelease """Default RDM release class.""" From 77bbc13f67036d8bf40c4f855c2ff91a1f6e385f Mon Sep 17 00:00:00 2001 From: Pal Kerecsenyi Date: Wed, 29 Oct 2025 15:51:50 +0100 Subject: [PATCH 2/3] config: add notification builders for VCS integration --- invenio_app_rdm/config.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/invenio_app_rdm/config.py b/invenio_app_rdm/config.py index a1c88a15e..6572c2b75 100644 --- a/invenio_app_rdm/config.py +++ b/invenio_app_rdm/config.py @@ -62,6 +62,8 @@ GuestAccessRequestTokenCreateNotificationBuilder, RecordDeletionAcceptNotificationBuilder, RecordDeletionDeclineNotificationBuilder, + RepositoryReleaseFailureNotificationBuilder, + RepositoryReleaseSuccessNotificationBuilder, UserAccessRequestAcceptNotificationBuilder, UserAccessRequestCancelNotificationBuilder, UserAccessRequestDeclineNotificationBuilder, @@ -1430,6 +1432,9 @@ def github_link_render(record): # Record deletion RecordDeletionAcceptNotificationBuilder.type: RecordDeletionAcceptNotificationBuilder, RecordDeletionDeclineNotificationBuilder.type: RecordDeletionDeclineNotificationBuilder, + # VCS repository releases + RepositoryReleaseSuccessNotificationBuilder.type: RepositoryReleaseSuccessNotificationBuilder, + RepositoryReleaseFailureNotificationBuilder.type: RepositoryReleaseFailureNotificationBuilder, } """Notification builders.""" From a2b8ad2ba73c616fad8f3e473881c1f0f2bf26d3 Mon Sep 17 00:00:00 2001 From: Pal Kerecsenyi Date: Mon, 3 Nov 2025 17:04:17 +0100 Subject: [PATCH 3/3] setup: bump oauthclient major version * Bumping the major version of invenio-oauthclient to 6.0.0 * This includes https://github.com/inveniosoftware/invenio-oauthclient/pull/360 which is not necessarily breaking but requires a manual DB migration for very large instances, as documented in the module's upgrade guide. * Further changes are yet come in v6 before RDM v14, such as https://github.com/inveniosoftware/invenio-oauthclient/pull/328. --- setup.cfg | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.cfg b/setup.cfg index 05a11b514..84745bd96 100644 --- a/setup.cfg +++ b/setup.cfg @@ -47,7 +47,7 @@ install_requires = invenio-access>=4.0.0,<5.0.0 invenio-accounts>=6.0.0,<7.0.0 invenio-oauth2server>=3.0.0,<4.0.0 - invenio-oauthclient>=5.0.0,<6.0.0 + invenio-oauthclient>=6.0.0,<7.0.0 invenio-userprofiles>=4.0.0,<5.0.0 # Invenio metadata bundle invenio-indexer>=3.0.0,<4.0.0