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

Users can set @metadata fields in user meta if the souce field isn't set in the object #743

Open
MrCreosote opened this issue Jun 20, 2024 · 0 comments

Comments

@MrCreosote
Copy link
Member

Normally @metadata fields in user metadata are populated from the object contents. However, if the object doesn't contain the field in question, the user can submit arbitrary values when saving an object. This could be very confusing for @metadata fields where the value is constrained, like a list length or range, etc.

Change the behavior so the user metadata for an @metadata field is either populated from the object data or not at all. Note that this is a backwards incompatible change and it's not clear what impact this would have on current processes. I suspect minimal but I don't have any evidence along those lines.

The behavior could work several ways:

  1. Throw an error when setting a @metadata field.
  2. Silently ignore the input
    1. by default, with a strict toggle for 1)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant