Flagsmith / flagsmith-charts

Helm Charts for Flagsmith. Feature flagging and remote config service. Host yourself or use our hosted version.

Home Page:https://www.flagsmith.com/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

segments not working in self-hosted flagsmith

kevinr498 opened this issue · comments

react-dom.production.min.js:187 TypeError: Cannot read properties of null (reading 'find')
at Object.findOperator (utils.tsx:111:23)

@kevinr498 can you please provide full steps to reproduce and further information about the version of flagsmith you're using and how you're hosting?

Please also provide information about your Flagsmith on Flagsmith setup (if you have it configured). See docs here.

@matthewelwell we are using an exernal db - and our own ingress. We are using postgresql. We have rollingupdate deploymentstrategy. taskprocessor is enabled, influxdb2 persistence is enabled.
We are using the

helm repo add flagsmith https://flagsmith.github.io/flagsmith-charts/ || true
helm repo update flagsmith
helm upgrade --install -n flagsmith --create-namespace flagsmith flagsmith/flagsmith -f helm/values.yaml
we are using this for our installorupdgrade.sh file

Please provide helm chart version, flagsmith image version(s) and information about whether you've configured Flagsmith on Flagsmith.

If you can also provide a screenshot of the segments page where you're seeing this error, that would be helpful.

It seems to me that you have configured Flagsmith on Flagsmith but not configured the segment_operators flag correctly as per the documentation here.

How do you configure them in helm?

It's not in helm that you need to configure them. In the Flagsmith on Flagsmith project that I can see in your screenshot, please make sure that you have the segment_operators flag created, enabled, and with the values as per the documentation I linked above.

Thank you! @matthewelwell
You can close this out