https://www.growthbook.io/ logo
#ask-questions
Title
# ask-questions
f

future-application-75099

03/21/2024, 10:38 AM
Hello. My team is using the java-sdk to work with namespaced features. In testing out either
getFeatureValue
or
evalFeature
, however, the returned source of my features are always
defaultValue
. Coverage is set to 1, and I have two features with a range of [0 0.5] and [0.5 1]. Are there are any other aspects of the configuration I should be looking at to ensure that the returned value is from one of the experiment variations rather than the default? Thank you!
f

fresh-football-47124

03/21/2024, 10:42 AM
Did you set the attributes correctly?
f

future-application-75099

03/21/2024, 1:39 PM
@fresh-football-47124 thanks for checking in. I've kept the user-attributes constant if those are the attributes you are referring to? I was assuming that any hash value there would result in a value between 0 and 1. I definitely could be doing something wrong though.
Ok, I think I was actually missing the property being used as the hashAttribute from the list of keys in the user-attributes. Thanks for directing my attention to that area, Graham.
5 Views