You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It is the intended behavior of computed field slugs/keys. Changing the dash to underscore should fix the issue.
We should have enforced the pattern in the migrations but for now can you try cpf.key.replace("-", "_") and then cpf.save()
Validation of the key for ComputedField, CustomField, and Relationship is only done in clean() so any direct ORM interaction (ComputedField.objects.create() or ComputedField(...).save()) can result in invalid keys being set. Possible fix here: move that enforcement from clean() to save()?
When invalid keys are present, the GraphQL UI throws an exception and fails to load; it should instead log a warning/error message to syslog but not prevent the UI from loading at all.
Environment
Steps to Reproduce
bad-cpf
)Expected Behavior
GraphQL UI loads
Observed Behavior
The text was updated successfully, but these errors were encountered: