Skip to content

Conversation

@carlinmack
Copy link
Contributor

❤️ Thank you for your contribution!

Description

Please describe briefly your pull request.

See inveniosoftware/invenio-rdm-records#2178

Checklist

Ticks in all boxes and 🟢 on all GitHub actions status checks are required to merge:

Frontend

Reminder

By using GitHub, you have already agreed to the GitHub’s Terms of Service including that:

  1. You license your contribution under the same terms as the current repository’s license.
  2. You agree that you have the right to license your contribution under the current repository’s license.

@carlinmack carlinmack moved this to In progress in Sprint Q4/2025 Oct 13, 2025
@carlinmack carlinmack force-pushed the file-mod-req branch 2 times, most recently from 74fd0db to d084022 Compare October 13, 2025 14:31
@carlinmack carlinmack self-assigned this Oct 13, 2025
@carlinmack carlinmack force-pushed the file-mod-req branch 2 times, most recently from a5d8029 to 6399b48 Compare October 24, 2025 08:02
* currently the permission is whether you can unlock the files
* but the files are only unlocked when you create the draft
* as such as an admin when you edit a published draft, if it was
  created by a user it will look like the files are unlocked but
  this is false

this PR correctly sets files_locked to whether the files are locked
@carlinmack carlinmack moved this from In progress to In review 🔍 in Sprint Q4/2025 Oct 27, 2025
@carlinmack carlinmack removed their assignment Oct 27, 2025
@carlinmack
Copy link
Contributor Author

tests pass locally. it's because it needs rdm-records to be merged

rd_allowed = immediate.allowed or request.allowed
existing_request = get_existing_deletion_request(record.id)

if rd_allowed:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

isn't the feature behind a flag? should we return all this information if f.e. we in CDS do not allow any record deletions?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: In review 🔍

Development

Successfully merging this pull request may close these issues.

3 participants