Specify updated field name causing premium feature block

Without this, the error returned when a user attempts to perform an update to an object (eg a Team) does not specify which field in the update request was considered blocking because of the lack of an enterprise license, making correcting the issue very difficult.
This commit is contained in:
Ben Langfeld 2026-02-17 11:41:37 -03:00 committed by GitHub
parent f4b79fa635
commit 4ea12150fa
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -372,7 +372,7 @@ def _update_metadata_field(updated_kv: dict, field_name: str) -> None:
# proceed with the update so that users can intentionally clear a
# previously-set field by sending an empty list/dict.
if value is not None and value != [] and value != {}:
_premium_user_check()
_premium_user_check(feature: f"update {field_name}")
if field_name in updated_kv and updated_kv[field_name] is not None:
# remove field from updated_kv