Cannot create User / Group Attributes with Kotlin SDK if User Attribute is not hidden
See original GitHub issueWith the Kotlin SDK, running against Looker 7.20.12, user attribute operations fail if the user attribute is not hidden.
For create_user_attribute()
for example, this works…
WriteUserAttribute(name=git_password, label=Git Password, type=string, default_value=, value_is_hidden=true, user_can_view=true, user_can_edit=true, hidden_value_domain_whitelist=https://foobar.com/*)
… but this fails with a 422…
WriteUserAttribute(name=git_username, label=Git Username, type=string, default_value=, value_is_hidden=false, user_can_view=true, user_can_edit=true, hidden_value_domain_whitelist=null)
Similiar for set_user_attribute_group_values
, this works…
[UserAttributeGroupValue(can=null, id=null, group_id=4, user_attribute_id=38, value_is_hidden=true, rank=null, value=1.2.3.4)]
… but this fails with a 500…
[UserAttributeGroupValue(can=null, id=null, group_id=4, user_attribute_id=28, value_is_hidden=false, rank=null, value=1.2.3.4)]
Testing with the API, I think the issue may be caused by the SDK always sending the hidden_value_domain_whitelist
, even if the value is not hidden.
API Docs:
Issue Analytics
- State:
- Created 2 years ago
- Comments:12 (8 by maintainers)
Top GitHub Comments
@frankspeak this should definitely be fixed with #601 now. That PR should get merged today
Thanks for the report. We’ll need to investigate the
422
scenario, and we also never want users to encounter500
errors from calling our API.