Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Serialize system owner in API responses #2849

Open
fenekku opened this issue Sep 18, 2024 · 1 comment
Open

Serialize system owner in API responses #2849

fenekku opened this issue Sep 18, 2024 · 1 comment
Labels
stale No activity for more than 60 days.

Comments

@fenekku
Copy link
Contributor

fenekku commented Sep 18, 2024

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:

Copy link
Contributor

This issue was automatically marked as stale.

@github-actions github-actions bot added the stale No activity for more than 60 days. label Nov 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
stale No activity for more than 60 days.
Projects
None yet
Development

No branches or pull requests

1 participant