influxdb-java icon indicating copy to clipboard operation
influxdb-java copied to clipboard

create optional method in InfluxDBFactory().connect() where username is optional

Open mhiller opened this issue 10 years ago • 3 comments

Based on industry feedback, it seems that its pretty common for internal influxdb instances to not have logins configured and just allow anyone to submit data. Currently connect() does not allow username password to be null or optional.

If you do not have a login setup in your influxdb instance, you can pass an empty string but this does not "feel right"

mhiller avatar Sep 12 '16 14:09 mhiller

passing null values is not a good practice and make precondition checking even more error prone.

so sorry i do not agree with this request.

majst01 avatar Sep 12 '16 16:09 majst01

your not supported a common implementation of the service itself then, so the matter should not be considered closed. What is a better approach if the suggested implementation is not to standard ?

please refer to https://docs.influxdata.com/influxdb/v1.0/guides/writing_data/

mhiller avatar Sep 12 '16 16:09 mhiller

I know this documentation, but my arguments still apply. If you disagree, please show me how a valid implementation would look like in a pull request.

majst01 avatar Sep 12 '16 17:09 majst01