Skip to content

Commit

Permalink
v12: remove update indices
Browse files Browse the repository at this point in the history
  • Loading branch information
utnapischtim committed Jul 9, 2024
1 parent 1bd176d commit e6e6d14
Showing 1 changed file with 8 additions and 19 deletions.
27 changes: 8 additions & 19 deletions docs/releases/upgrading/upgrade-v12.0.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,11 @@ The steps listed in this article require an existing local installation of Inven
!!! warning "Upgrade your invenio-cli"

Make sure you have the latest `invenio-cli` installed. For InvenioRDM v12 it
is at least v1.2.0
is at least v1.3.1

```bash
$ invenio-cli --version
invenio-cli, version 1.2.0
invenio-cli, version 1.3.1
```

!!! info "Virtual environments"
Expand Down Expand Up @@ -123,23 +123,6 @@ invenio alembic upgrade
invenio queues declare
```

### Update indices mappings

```shell
invenio index update communities-communities-v1.0.0
invenio index update rdmrecords-drafts-draft-v5.0.0
invenio index update rdmrecords-records-record-v5.0.0
```

CAVEAT: this is not working because of a permission problem in
[invenio-search](https://github.com/inveniosoftware/invenio-search/blob/d8b23ecf48f63d8d313f90fd4618a480e15fbd7b/invenio_search/ext.py#L448).
The only way to solve it is to destroy the index and reinit and rebuild it from
scratch. Yes the statistics will be only stored in the index but the statistic
indices are created by templates and therefore not affected by `invenio index
destroy --yes-i-know`. The statistic indices will remain in the list of indices
and are totally functional also after a reinit.


### Data migration

Execute the data migration
Expand All @@ -156,6 +139,11 @@ invenio index init
invenio rdm rebuild-all-indices
```

In v12 the statistics will be stored in the index. The statistic indices are
created by templates and therefore not affected by `invenio index destroy
--yes-i-know`. The statistic indices will remain in the list of indices and are
totally functional also after a reinit.

### New roles

```bash
Expand Down Expand Up @@ -183,6 +171,7 @@ THEME_SITENAME = "Project name for header and UI"
- add: administration panel
- add: set quota
- add: branded communities
- add: share options for drafts and records
- change: the default delimiter for the licenses vocabulary file has been
changed from ";" to ",". The default licenses are available
[here](https://github.com/inveniosoftware/invenio-rdm-records/blob/master/invenio_rdm_records/fixtures/data/vocabularies/licenses.csv).
Expand Down

0 comments on commit e6e6d14

Please sign in to comment.