Migrations & Updates
This release moves repositories to CESNET Invenio 14, which will be supported for the next 12-18 months.
| Affected | Not affected |
|---|---|
| All repositories built on oarepo-app 6.x | Repositories created with oarepo-app 8.1.0 |
Show migration steps
1. Replace removed oarepo-ui code
Find usages in your repository:
grep -rnE 'RecordSharing|record[-_]sharing|AccessRightField|FilesField|FileUploadWrapper|FileEditWrapper|(Upload|Edit|Delete)FileButton|Histogram|@oarepo/file-manager' \
--include='*.html' --include='*.jinja' --include='*.js' --include='*.jsx' \
--exclude-dir=.venv --exclude-dir=node_modules .
find . -path '*/record_detail/banners.html' -not -path './.venv/*'| Removed | Replacement |
|---|---|
RecordSharing.jinja, record-sharing.js | InvenioRDM’s own share button on the record landing page |
AccessRightField from @js/oarepo_ui | AccessRightField from @js/invenio_rdm_records, see AccessRightField |
FilesField and its parts (FileUploadWrapper, UploadFileButton, …) | FileUploader or UppyUploader from @js/invenio_rdm_records, see File Upload Components |
Histogram, HistogramWSlider, Slider from search/histogram | None |
record_detail/banners.html partial | None; it was never rendered. Delete the file. See Record landing page |
2. Replace the minio S3 service with RustFS
The minio/minio image can no longer be pulled from Docker Hub. RustFS does not create buckets, so a one-shot s3-init service creates the default bucket; without it uploads fail with NoSuchBucket. In docker/docker-compose.yml, replace the s3 service with:
s3:
image: rustfs/rustfs:1.0.0
restart: "unless-stopped"
environment:
RUSTFS_ACCESS_KEY: ${INVENIO_S3_ACCESS_KEY}
RUSTFS_SECRET_KEY: ${INVENIO_S3_SECRET_KEY}
RUSTFS_ADDRESS: "0.0.0.0:9000"
RUSTFS_CONSOLE_ENABLE: "true"
RUSTFS_CONSOLE_ADDRESS: "0.0.0.0:9001"
RUSTFS_VOLUMES: "/data"
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:9000/health"]
interval: 10s
timeout: 5s
retries: 6
ports:
- "${INVENIO_S3_HOST}:${INVENIO_S3_PORT}:9000"
- "${INVENIO_S3_HOST}:${INVENIO_S3_PORT1}:9001"
s3-init:
image: rustfs/rustfs:1.0.0
restart: "no"
depends_on:
s3:
condition: service_healthy
environment:
S3_ACCESS_KEY: ${INVENIO_S3_ACCESS_KEY}
S3_SECRET_KEY: ${INVENIO_S3_SECRET_KEY}
entrypoint:
- sh
- -c
- >-
curl -sf --aws-sigv4 "aws:amz:us-east-1:s3" --user "$$S3_ACCESS_KEY:$$S3_SECRET_KEY"
-X PUT http://s3:9000/default -o /dev/null && echo "bucket default ready"Then run ./run.sh services stop and ./run.sh services start. Files stored by minio are not copied to RustFS; on a local instance, ./run.sh reset brings the database and storage back in line. See S3 storage bucket.
3. Add the workflow, request and community presets to each model
Without these presets, drafts get no workflow and submitting a draft to a community returns 403. Skip this for models with the empty base model.
from oarepo_communities.model.presets import communities_preset
from oarepo_requests.model.presets.requests import requests_preset
from oarepo_workflows.model.presets import workflows_preset
datasets_model = model(
"datasets",
...
presets=[
rdm_complete_preset,
workflows_preset,
requests_preset,
communities_preset,
],
...
)See Simplified workflows.
4. Configure the record detail sidebar in invenio.cfg
The sidebar is a list of boxes, each rendered by its own small template. Configure the list with config.configure_detail_sidebar in invenio.cfg, instead of overriding the whole sidebar template.
Older nrp-model-copier versions generated ui/<model_name>/templates/semantic-ui/<base_model>/record_detail/record_sidebar.html. oarepo-ui never rendered it, so delete it. Don’t move it to the model’s folder: there it would replace the whole sidebar, and configure_detail_sidebar would stop working for the model.
To add a box, write a template that renders just that box and register it under a name. Call configure_detail_sidebar after configure_ui and configure_ark, which set up the default boxes:
config.configure_detail_sidebar(
templates={
# a new box, appended at the end
"sample_history": "mymodel/record_detail/side_bar/sample_history.html",
# replace the template of an existing box
"licenses": "myrepo/records/details/side_bar/licenses.html",
},
move=["sample_history after details"],
remove=["keywords_subjects"],
)See the configure_detail_sidebar reference for the names of the built-in boxes, reordering, and per-model sidebars.
If you edited the generated record_sidebar.html, move those changes to configure_detail_sidebar. For a model with the empty base model, also remove the model_type ~ "/record_detail/record_sidebar.html" entry from the record_sidebar include in record_detail.html.
5. Update the oarepo-app dependency
dependencies = [
"oarepo-app[ccmm,production]>=8.0.0,<9.0.0",
]
requires-python = ">=3.14,<3.15"- Make sure your deployment image includes Pango (needed by WeasyPrint).
- New optional extras:
llm,arkandantivirus. - If you override Invenio templates or React overridables, compare them with the new versions of
invenio-rdm-records,invenio-communities,invenio-requestsandinvenio-vocabularies.
6. e-INFRA login
The synchronization with Perun is now one-way: Perun groups are still propagated to the repository, but community roles set in the repository are not propagated to Perun, and e-mail notifications are sent by the repository. Remove Perun synchronization tasks from your Celery beat schedule if you added them.
To let every e-INFRA eligible user (students, teachers and scientists of the academy of sciences) deposit records, set:
from oarepo_oidc_einfra.remote import einfra_eligible_parser_factory
config.configure_einfra_oidc(entitlements_parser=einfra_eligible_parser_factory())With e-INFRA login enabled, API requests with a bearer JWT that fails e-INFRA validation return 403, even on public endpoints. Check your API clients.
7. Vocabularies
- Replace
VocabularySelectField,LocalVocabularySelectField,VocabularyTreeSelectField,VocabularyRemoteSelectFieldandVocabularyPickerFieldwithVocabularyFieldin your deposit forms. - Administrators can now create and update vocabulary items. Set
VOCABULARIES_PERMISSIONS_POLICYif you need different permissions. - The fixture loader now also loads
<model-code>.yaml,.jsonor.jsonlfiles fromapp_data. Make sure such files contain data you want loaded.
Vocabulary indices have a new SKOS mapping section, so they must be rebuilt (step 15); otherwise creating vocabulary items fails.
8. Update custom UI code that uses changed oarepo-ui APIs
Generated model UI needs no change. To find custom code that does, run:
grep -rnE 'OAREPO_UI_DRAFT_ACTIONS|(record_detail|deposit_edit|deposit_create)_permissions|config\.permissions|filesLocked|images/identifiers|PublishButton|permissions\??\.can_(update|delete|read_files|update_files)\b' \
--exclude-dir=.venv --exclude-dir=node_modules .| If your code… | Do this |
|---|---|
sets OAREPO_UI_DRAFT_ACTIONS | Move the actions to OAREPO_UI_RECORD_ACTIONS. |
overrides record_detail_permissions, deposit_edit_permissions or deposit_create_permissions in a UI resource config | Delete it. Add any extra action to OAREPO_UI_RECORD_ACTIONS. |
lists its own UI components | Include PermissionsComponent. |
reads can_update, can_delete, can_read_files or can_update_files in deposit form JS | Use can_update_draft, can_delete_draft, can_draft_read_files, can_draft_update_files. |
reads config.permissions or filesLocked in deposit form JS | Use useFormConfig().permissions and useFormConfig().filesLocked. |
overrides deposit/form.html or deposit_edit/form.html | Add the deposits-file-modification hidden input from oarepo-ui . |
overrides <prefix>.TabForm.PublishButton | Accept the record prop. |
ships icons in /static/images/identifiers/ | Move them to /static/images/. |
9. Workflow permissions
If you define your own permission policies, rename CompositeAndGenerator to RequireAll and CompositePermissionPolicyMixin to BooleanPermissionPolicyMixin. A policy that uses RecordOwnerInRecordCommunity or RecordOwnerInDefaultRecordCommunity must inherit from BooleanPermissionPolicyMixin.
CommunityWorkflow has new defaults. Set explicit role lists if you need the previous behaviour:
draft_creation_community_roles: submitters, curators and owners.read_restricted_community_rolesandrecord_manage_community_roles: curators and owners.
10. Requests
- A custom
OAREPO_REQUESTS_DEFAULT_RECEIVERfunction is now called withtopic=instead ofrecord=. - If you override the
publish-draft-request-event.*e-mail templates, also overridepublish-new-version-request-event.*andpublish-changed-metadata-request-event.*. - If you implement custom request types: request types are generic in the topic type, publish request types need a
topic_typeattribute, andcan_create/is_applicable_tomust be implemented together.
11. Community roles
- Check your
COMMUNITIES_ROLESininvenio.cfg. Roles generated by oldernrp-app-copiergivesubmittercan_manage=True. Request receivers and notification recipients are now derived from these flags (can_managereplacesmanager,can_curatereplacescurator), so such submitters would receive community submission, inclusion, invitation and membership requests. Setcan_manage=Falseonsubmitterandcan_curate=Trueon every role that should review submissions. - Drafts can no longer be created directly in a community; records are added to a community only through review. API clients that create drafts for a restricted community must set the record and file access explicitly.
- Community invitations now use the InvenioRDM UI. If you override the community
details/members/*.html,details/settings/base.htmlordetails/header.htmltemplates, compare them with the InvenioRDM templates.
12. Update invenio.cfg
Import the configuration helpers from oarepo_config (skip if you did this in the 6.3.0 migration):
import oarepo_config as config
from oarepo_config import CommunityWorkflow, IndividualWorkflow, configure_workflows- Pass
languages=explicitly toconfigure_generic_parametersandconfigure_ui; the default is now English only. For a Czech repository, uselanguages=(("cs", "Czech"),). - Import
is_vedidk,ExternalLinkConfigand similar symbols fromoarepo.initial_rdm_config. REQUESTS_REVIEWERS_ENABLEDnow defaults toTrue.- The DataCite DOI provider is configured automatically. If you set
RDM_PERSISTENT_IDENTIFIER_PROVIDERSyourself, name the providerdataciteso that your settings take precedence. The DOI form default changed fromnot_neededtono. Restricted records no longer get a DOI, and a DOI that already exists in DataCite is updated instead of failing. - The legacy
/api/filesendpoint is disabled, and login and signup are limited to 10 requests per minute.
13. Update model definitions
- OAI-PMH. Import
oai_presetfromoarepo_rdm.model.presets.oai. - Search customisations. Search mappings now come from
invenio-rdm-records. If you usePatchIndexMapping,PatchIndexPropertyMappingorSetDefaultSearchFields, check that the patched fields still exist. - Subjects. Subjects now reference the
subjectsvocabulary. Facets onmetadata.subjectsfilter on the vocabulary ID. See Facet Configuration in Model Schema. - Dates.
RDMDate.datenow accepts EDTF dates and intervals. - Related identifiers (CCMM). They are now stored in
metadata.related_resources;metadata.related_identifiersis computed. Update imports and API clients. metadata.yaml. Setmodel:onpid-relationfields and replacemultilingual-typewithmultilingual.
14. Exports
- The
citationexport was replaced bybibliography. - DataCite is exported as
datacite-jsonanddatacite-xml(for CCMM, these replacedatacite). CCMM XML is available asccmm-xmland asccmmin OAI-PMH. ThedcatOAI-PMH format was removed.
Update integrations and OAI-PMH consumers that use the removed formats.
If you harvest other repositories with the OAI-PMH harvester, RDM models need a harvest configuration that publishes records (publish=False raises an error), and file harvesting must be enabled explicitly.
15. Migrate the database and data, and rebuild the indices
For a disposable local instance, run ./run.sh reset and continue with step 17.
./run.sh reset deletes local data. To keep existing data, back up the database and rehearse the migration on a staging copy. A staging copy of production data must use its own S3 bucket, SECRET_KEY and DataCite test credentials, otherwise it can change production files or DOIs. Pause writes and scheduled jobs during the production migration.
-
Install the dependencies, rebuild the assets and migrate the database. In a container deployment, rebuild the image instead of running
./run.sh upgrade../run.sh upgrade ./run.sh invenio alembic upgrade -
Load the subject schemes your records use, for example
./run.sh invenio rdm-records add-to-fixture subjects.FORD, and wait for the tasks to finish. See Initial data for vocabularies. -
Convert legacy subject values in records and drafts to vocabulary references. For CCMM, copy identifiers stored only in
metadata.related_identifierstometadata.related_resources. -
Rebuild the indices and wait for the Celery workers to finish.
Repositories with legacy CCMM data skip items 2–4 and continue with step 16.
./run.sh index rebuild16. Migrate existing CCMM vocabularies and records
Copy scripts/migration_vocabs.py from your ccmm-invenio version into your repository and add every CCMM model table to its TABLES list. It renames vocabulary types, loads the new vocabularies (including the bundled subject schemes) and converts references in records and drafts.
./run.sh invenio shell scripts/migration_vocabs.py mark
./run.sh invenio shell scripts/migration_vocabs.py migrate_types
./run.sh invenio shell scripts/migration_vocabs.py load
./run.sh index rebuild # wait for indexing to finish
./run.sh invenio shell scripts/migration_vocabs.py migrate_data
# convert remaining subjects and related identifiers (step 15, item 3)
./run.sh index rebuild # review "cannot convert" messages, check records
./run.sh invenio shell scripts/migration_vocabs.py remove_deprecated
./run.sh index rebuild17. Verify the upgraded repository
- Open and edit existing records and drafts; check search, facets, vocabulary fields and files.
- Submit a draft to a community and publish it; check who receives the request and its notifications.
- Test e-INFRA login, DOI registration and the exports you use.
This upgrade brings a couple of changes:
- Permission update to allow curators more rights
- Share button added to deposition form
- Authentication interface for providers (for Kerberos support planned for v14)
- Unified facets for several search pages
- Support for extra checks (integrating invenio-checks), including AI-based checks
- Citation updates (InvenioRDM)
- New metadata.description field with its future mapping to CCMM descriptions fields
- Refactored configuration to oarepo_config
| Affected | Not affected |
|---|---|
Repositories on oarepo-app <= 6.2.0 upgrading to 6.3.0 | Repositories already on oarepo-app >= 6.3.0 |
Show migration steps
- Inside
invenio.cfg, locatefrom oarepo import configand replace it withimport oarepo_config as config - If you use other symbols from
oarepo.config, also migrate them tooarepo_config- for example:from oarepo_config import load_configuration_variables - Inside pyproject.toml, change the dependency from
oarepo-app==6.2.0tooarepo-app==6.3.0 - Run
./run.sh upgradeto bring in new libraries - Run
./run.sh invenio rdm rebuild-all-indices
This upgrade moves a repository across the 5.0.0, 6.0.0, 6.1.0 and 6.2.0 releases in a single step. For the full list of package changes, see the oarepo-app changelog . The largest change is the Invenio major-version bump that ships with oarepo-app 6.0.0 (invenio-rdm-records 28.x → 32.x, invenio-communities 26.x → 28.x), which brings database migrations and changed search mappings. Repositories generated from nrp-app-copier use the stable oarepo.config and oarepo_workflows APIs, and the generated model UI (templates, React/JS imports and Python UI component imports) is compatible with the new oarepo-ui and oarepo-rdm versions, so no code changes are required — only a dependency bump, a database migration and an index rebuild.
| Affected | Not affected |
|---|---|
Repositories on oarepo-app == 4.0.0 upgrading to 6.2.0 | Repositories already on oarepo-app >= 6.0.0 |
Repositories that catch MissingCommunitiesError or MissingDefaultCommunityError from community permission generators | Standard nrp-app-copier generated repositories (they do not catch these exceptions) |
Show migration steps
1. Update pyproject.toml
Bump the oarepo-app dependency to 6.2.0. If your dependency is a range such as oarepo-app[production,ccmm]>=2.0.1,<3.0.0, replace it with an exact pin.
Before:
dependencies = [
"oarepo[s3,rdm]>=14.0.0b1,<15.0.0",
"oarepo-app[production,ccmm]==4.0.0",
]After:
dependencies = [
"oarepo[s3,rdm]>=14.0.0b1,<15.0.0",
"oarepo-app[production,ccmm]==6.2.0",
]The oarepo[s3,rdm] line needs no change — its range already covers the oarepo version pulled in by the production extra. The production extra now also includes oarepo-related-resources, so that package is installed automatically.
2. Reinstall and reinitialize the database and index
The invenio-rdm-records major bump changed the database schema and the search mappings, so the database and indices need to be brought in line with the new versions. Follow Database and index reinitialization:
- Local development:
./run.sh reset— wipes all data and performs a full reinstall and reinitialization in one step. It includes the reinstall that./run.sh upgradedoes, so no separate upgrade is needed. - Production: reinstall, then migrate the database and rebuild the index to preserve data:
./run.sh upgrade # reinstall with the new versions ./run.sh invenio alembic upgrade # run database migrations ./run.sh index rebuild # drop, recreate and reindex OpenSearch ./run.sh run # so Celery workers process the reindex queue
The production Alembic migration procedure is still work in progress. See the ./run.sh reference for command details.
3. Review behavioral changes and new features
The upgrade introduces several behavioral changes that may affect your repository:
-
RDM file service configs now apply. Models using the RDM preset now use
RDMFileServiceandRDMFileServiceConfig(oarepo-rdm 8.1.0) instead of the baseFileService. This means RDM file-related configuration — such asRDM_RECORDS_MAX_FILES_COUNT(file count limit) — is now enforced. If your repository previously had no file count limits, review the RDM file config defaults and adjust if needed. -
PID/DOI field in the deposit form. The “General information” section of the deposit form now includes a PID/DOI field (via
RDMPIDsConfigComponent, oarepo-rdm 8.1.0). The field appears when DOI providers are configured. To disable it, either don’t configure DOI providers or override thePIDFieldoverridable component in your model’s deposit form. -
Export sidebar filters by
display. The export sidebar now only shows exporters wheredisplay=True(oarepo-ui 13.2.3). TheExportdataclass defaultsdisplay=True, so most exports are unaffected. But exports registered withdisplay=False(e.g., OAI-only exports) are no longer visible in the UI. To show an export, setdisplay=Trueon theExportinstance orAddMetadataExportcustomization in your model definition. -
ZIP content previewing (invenio-app-rdm 14.0.0rc2). ZIP files can now be browsed and their contents previewed inline. Enabled by default; controlled by
PREVIEWABLE_ZIP_PREVIEWER_NATIVE_EXTENSIONS(default["zip"]). No action needed unless you want to disable it. -
/uploads/newmodel selection page (oarepo-rdm 8.1.0). The/uploads/newroute now shows a model selection page when multiple models exist, or redirects directly when only one model exists. Additive; no action needed. -
RDM-specific behaviour moved out of
RecordsUIResource(oarepo-ui 13.0+). RDM-specific behaviour (defaultfiles.enabled,pidsinitialisation,APP_RDM_DEPOSIT_FORM_DEFAULTS, parent-DOI injection for preview, and DOI-required checks) was removed from the baseRecordsUIResourceinoarepo-uiand moved into separate UI components that ship withoarepo-rdm:FilesEnabledComponent,EmptyRecordPidsComponent,DepositFormDefaultsComponent,InjectParentDoiComponent,DoiRequiredComponent, andRDMPIDsConfigComponent. If your UI resource and config inherit directly from the genericRecordsUIResource/RecordsUIResourceConfig(inoarepo_ui.resources.records), the new-record form will silently lose default files/PIDs/DOI handling — you must switch your base class. Editui/<model_name>/__init__.py(for example,ui/datasets/__init__.py).For a CCMM-based model — inherit from
CCMMRecordsUIResourceConfigandCCMMRecordsUIResource, imported from:from ccmm_invenio.ui.config import CCMMRecordsUIResourceConfigfrom ccmm_invenio.ui.resource import CCMMRecordsUIResource
ui/<model_name>/__init__.py# Before from oarepo_ui.resources.records.config import RecordsUIResourceConfig from oarepo_ui.resources.records.resource import RecordsUIResource class DatasetsUIResourceConfig(RecordsUIResourceConfig): ... class DatasetsUIResource(RecordsUIResource): pass # After from ccmm_invenio.ui.config import CCMMRecordsUIResourceConfig from ccmm_invenio.ui.resource import CCMMRecordsUIResource class DatasetsUIResourceConfig(CCMMRecordsUIResourceConfig): ... class DatasetsUIResource(CCMMRecordsUIResource): passFor a plain RDM-based model — inherit from
RDMRecordsUIResourceConfigandRDMRecordsUIResource, imported from:from oarepo_rdm.ui.config import RDMRecordsUIResourceConfigfrom oarepo_rdm.ui.resource import RDMRecordsUIResource
ui/<model_name>/__init__.py# Before from oarepo_ui.resources.records.config import RecordsUIResourceConfig from oarepo_ui.resources.records.resource import RecordsUIResource class DatasetsUIResourceConfig(RecordsUIResourceConfig): ... class DatasetsUIResource(RecordsUIResource): pass # After from oarepo_rdm.ui.config import RDMRecordsUIResourceConfig from oarepo_rdm.ui.resource import RDMRecordsUIResource class DatasetsUIResourceConfig(RDMRecordsUIResourceConfig): ... class DatasetsUIResource(RDMRecordsUIResource): passIf you compose
componentsin your config, keep using*<NewBase>.componentsso the new RDM components are included. -
Search app: default two-column layout (oarepo-ui 13.0+, PR #460 ). The default search app layout changed for repositories whose search bar lives in the content area (not in the page header). The page is now rendered as a two-column layout: facets on the left, results on the right, with the search bar sitting in the right-hand column. If your repository keeps the search bar in the page header (Invenio’s default), the rendered page is unchanged and there is nothing to do.
Old layout (search bar in content):
New layout (search bar in content):
Several exported search components were renamed or removed:
ActiveFiltersElement→ActiveFilters,SearchAppResultOptions→ResultOptions,SearchAppSort→Sort;SearchAppLayoutWithSearchbarHOCandSearchAppResultViewWithSearchbarwere removed (useSearchAppLayoutdirectly). These changes only affect custom search code that imports the old component names directly — the copier-generatedsearch/index.jsis unaffected because it only usesparseSearchAppConfigsandcreateSearchAppsInit, which exist in both versions. AScroll to topbutton is now rendered by default; if you do not want it, hide it via CSS (#scroll-to-top-button { display: none; }). -
invenio_url_forandModel.api_urlno longer accept_external=True(oarepo-runtime 4.0.0+). Both helpers now always return an absolute (external) URL. Passing_external=Trueis no longer accepted and will raise (Model.api_urlcallsinvenio_url_forunder the hood and fails for the same reason). Drop_external=Truefrom these calls — the returned URL is already absolute.# Before url = invenio_url_for("vocabularies.search", type="languages", _external=True) api = model.api_url("search", type=alias, _external=True) # After url = invenio_url_for("vocabularies.search", type="languages") api = model.api_url("search", type=alias)
4. Review community permission exception handling
From oarepo-communities 8.1.3 (shipped with oarepo-app 5.0.0) and 9.0.0 (shipped with oarepo-app 6.2.0), the community permission generators no longer raise MissingCommunitiesError or MissingDefaultCommunityError — they return an empty list instead. Both exception classes are deprecated — their constructors emit a DeprecationWarning.
If your code catches these exceptions, that branch is now dead code. Review and update it:
# These are deprecated and no longer raised by the community permission
# generators (OARepoCommunityRoles etc. return [] instead).
from oarepo_communities.errors import (
MissingCommunitiesError, # deprecated
MissingDefaultCommunityError, # deprecated
)
# Any branch like this is now dead code:
# except MissingCommunitiesError: ...
# Handle the empty-list case directly instead.Standard nrp-app-copier generated repositories do not catch these exceptions, so no action is needed for them.
5. Consider migrating to the simplified workflows
See simplified workflows for a more streamlined approach to workflow configuration.
In oarepo-app v4.0.0, CCMM dependencies were moved to a separate optional dependency extra. Repositories that use CCMM must enable the ccmm extra explicitly.
| Affected | Not affected |
|---|---|
| Repositories using CCMM | Repositories not using CCMM |
Repositories upgrading to oarepo-app >= 4.0.0 | Repositories using older oarepo-app versions |
Show migration steps
Update pyproject.toml
In pyproject.toml, update the oarepo-app dependency extra from production to production,ccmm.
Before:
dependencies = [
"oarepo-app[production]==4.0.0",
]After:
dependencies = [
"oarepo-app[production,ccmm]==4.0.0",
]Run ./run.sh upgrade to update the lock file.
This breaking change introduces the oarepo-app library in version 2.3.0. This release includes all Invenio changes released before 2026-05-01, including the introduction of CCMM vocabularies.
| Affected | Not affected |
|---|---|
| Repositories created before 2026-05-11 | Repositories created after 2026-05-11 |
Repositories using oarepo-app <= 2.3.0, or not using oarepo-app at all | --- |
Show migration steps
Update pyproject.toml
- In
pyproject.toml, remove alloarepo-*dependencies and replace them with the newoarepo-applibrary. Do not remove theoarepo[s3,rdm]dependency.
Before:
dependencies = [
"oarepo[s3,rdm]>=14.0.0,<14.1.9",
"oarepo-runtime>=2.0.0dev0,<3.0.0",
"oarepo-ui>=7.0.0dev0,<8.0.0",
...
]After:
dependencies = [
"oarepo[s3,rdm]>=14.2.1b10.dev6,<15.0.0",
"oarepo-app[production]==2.3.0", # <---- here
]- Update the version of the
oarepolibrary:
dependencies = [
"oarepo[s3,rdm]>=14.2.1b10.dev6,<15.0.0", # <---- here
"oarepo-app[production]==2.3.0",
]- Make sure you use Python 3.14 in the
requires-pythonsection.
requires-python = ">=3.14,<3.15"-
Remove the top-level
package.jsonif it exists. -
Run
./run.sh upgradeto update the lock file. -
Run
./run.sh resetto reset your local instance because of the CCMM vocabularies. -
If you have sample data, you will need to update it to use CCMM vocabularies. See your
https://127.0.0.1:5000/vocabularieswhich values are permitted.For example:
- Change the resource type ID from
datasettoc_ddb1. - Change the
createdtime reference toCreated(capitalized first letter). - Change the
cc0-1.0license toCC0-1.0(capitalizedCC).
- Change the resource type ID from
For inspiration, see invenio-fzu PR #22
If you are already running a production instance, please contact us first.
Make sure you have run the older migrations first.
The model create command now places the backend part of new models inside a models/ folder
(e.g. models/datasets/) instead of creating them as top-level directories (e.g. datasets/).
This keeps the repository structure cleaner as the number of models grows. New models are placed under models/ automatically, so no action is needed for them — the steps below only apply to existing models that still live at the repository root.
Existing repositories with models already at the top level will continue to work.
However, for a consistent folder structure we recommend moving existing models into models/ as well.
| Affected | Not affected |
|---|---|
| Repositories with models created at the top level before 2026-04-15 | Newly created repositories |
| Repositories adding new models alongside existing top-level models | Repositories with no models yet |
Show migration steps
1. Move existing top-level models into models/
mv datasets models/Repeat for every model that currently lives at the repository root.
2. Update invenio.cfg
Update the model import paths. For example, if you have a model called datasets:
# Before
from datasets import datasets_model
datasets_model.register()
# After
from models.datasets import datasets_model
datasets_model.register()3. Update pyproject.toml
In the module-name section of pyproject.toml, remove the entry for the model folder you just moved
(e.g. remove datasets). The model is now discovered from models/ automatically.
oarepo-ui v7.0+ package requires base template files in your model’s UI module. These templates must extend the oarepo-ui base templates. See Record landing page documentation for the complete template inheritance flow.
| Affected | Not affected |
|---|---|
| Model UIs created before 2026-02-18 | Model UIs generated after 2026-02-18 |
| Using default templates | Custom page templates configured |
| oarepo-ui >= 7.0 | older versions |
Show migration steps
Option 1: Use model update (Recommended)
Run the model update command from your repository root:
./run.sh model update <model_name>Option 2: Create files manually
If you prefer not to use model update, you can create the required template files manually in ui/mymodel/templates/semantic-ui/mymodel/. See the model copier template for the complete list of required files.
Common issues:
TemplateNotFound: mymodel/record_detail.html→ Create base template file- Partials not showing → Check that
mymodel/record_detail/main.htmlexist