inveniosoftware / invenio-app-rdm

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

Serialize system owner in API responses #2849

Open fenekku opened 2 months ago

fenekku commented 2 months ago

Is your feature request related to a problem? Please describe.

Records may have no owner (owned_by undefined in the returned API responses) when they have been created by the system. An explicit object should be returned instead most likely using an EntityResolver as part of the serialization per @kpsherva .

Describe the solution you'd like

The exact shape of that field isn't clear yet though: {"system": true} / {"user": "system"} / {"user": null}. @tmorrell highlighted the need for more investigation.

Describe alternatives you've considered

The current alternative (being used) is for the frontend to detect empty owned_bys and treat those as system owned. (fine with that for now)

Additional context

What spurred the issue:

github-actions[bot] commented 5 days ago

This issue was automatically marked as stale.