invenio-app-rdm icon indicating copy to clipboard operation
invenio-app-rdm copied to clipboard

Bug on visbility

Open jrcastro2 opened this issue 1 year ago • 4 comments

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

  1. Go to 'New upload'
  2. Select a restricted community
  3. See record change permission to restricted
  4. Remove community
  5. 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

jrcastro2 avatar Sep 08 '23 08:09 jrcastro2

duplicate of https://github.com/inveniosoftware/invenio-rdm-records/issues/1414

kpsherva avatar Sep 25 '23 11:09 kpsherva

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

anikachurilova avatar Oct 06 '23 15:10 anikachurilova

This issue was automatically marked as stale.

github-actions[bot] avatar Dec 06 '23 06:12 github-actions[bot]

This issue was automatically marked as stale.

github-actions[bot] avatar Feb 09 '24 06:02 github-actions[bot]