When creating new access requests, we perform the "submit" action immediately after the request was created successfully.
If there was any error in the request creation, we return the (created, but unsubmitted) request early.
However, there's no strong indication that there have been errors (other than the .errors field being set?).
We should check that, and maybe raise an exception (with the created/unsubmitted request as payload).
When creating new access requests, we perform the "submit" action immediately after the request was created successfully. If there was any error in the request creation, we return the (created, but unsubmitted) request early. However, there's no strong indication that there have been errors (other than the
.errors
field being set?). We should check that, and maybe raise an exception (with the created/unsubmitted request as payload).invenio_rdm_records.services.access.service:RecordAccessService.create_user_access_request()
invenio_rdm_records.services.access.service:RecordAccessService.create_guest_access_request()