inveniosoftware / invenio-app-rdm

Turn-key research data management platform.
https://inveniordm.docs.cern.ch
MIT License
100 stars 144 forks source link

Bug on visbility #2386

Open jrcastro2 opened 1 year ago

jrcastro2 commented 1 year ago

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

kpsherva commented 11 months ago

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

anikachurilova commented 11 months ago

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

github-actions[bot] commented 9 months ago

This issue was automatically marked as stale.

github-actions[bot] commented 7 months ago

This issue was automatically marked as stale.