invenio-app-rdm
invenio-app-rdm copied to clipboard
Bug on visbility
Package version (if known): invenio-app-rdm.dev23
Describe the bug
When creating a new upload, if we select a restricted community the record visibility changes to restricted, if we remove the community, we cannot change the visibility of the record until we hit save.
Steps to Reproduce
- Go to 'New upload'
- Select a restricted community
- See record change permission to restricted
- Remove community
- See how it's not possible to change record restriction level.
Expected behavior
I should be able to change the record restriction level.
Screenshots (if applicable)
https://github.com/inveniosoftware/invenio-app-rdm/assets/15194802/a22ba208-f213-4b1a-bee1-b73e0ca94df7
duplicate of https://github.com/inveniosoftware/invenio-rdm-records/issues/1414
Notes from investigation: record is being set to restricted manually here: https://github.com/inveniosoftware/invenio-rdm-records/blob/ac008d792fd6ad5b63a6ad9ce5bb4f278e6ace80/invenio_rdm_records/assets/semantic-ui/js/invenio_rdm_records/src/deposit/state/reducers/deposit.js#L326-L332 the revert of this should happen - record has to be put back to public
This issue was automatically marked as stale.
This issue was automatically marked as stale.