Allow to disable telemetry from batect.yml
#1028
Comments
Thanks for the suggestion @sschuberth. I can see value in having something that disables telemetry for a project even if a user has enabled it, however, I'm not keen to add something that enables telemetry automatically with no user intervention - that seems like something that a user should still have control over. Does that make sense? |
Yes, makes sense. So essentially, the idea would be to only allow to disable telemetry from |
So, how would you go for implementing this, @charleskorn? In particular, where exactly inside |
I was thinking it could be a top-level configuration option in I'm keen to keep config variables for users to do with as they wish. What do you think? |
Top-level sounds fine. Not sure about the naming yet, though. Maybe slightly less "strict" |
I'm not sure on the name either... I was trying to find a name where it was clear that setting the value to |
Maybe |
Ping @charleskorn! Do you think this is something that could be solved for the next release of Batect? Together with #1016 these were the blockers for us to take Batect into production use. |
Yep, definitely. Sorry for the delay - I've been working on something else but that's not urgent. |
Huh, interesting stuff (and technical approach)! |
I've just added this and it will be released as part of 0.75.0 shortly. Please give it a go and let me know if you have any feedback! |
Hmm, something seem to not be working here. If I check out this branch of our project and initially run
despite having |
Ah, interesting - that would be a slightly bigger change, as the telemetry consent prompt happens before the configuration file is loaded. That's definitely something that can be fixed though. Even if you answer 'yes' to the prompt here, telemetry information will still not be collected for any project with |
…if forbid_telemetry is set to true in the project configuration file. See #1028 (comment).
Thanks for catching this @sschuberth - I've fixed this issue and it will be included in the next release. |
Awesome @charleskorn, thanks for the follow-up fix and new release! |
Describe the problem you'd like to solve
As Batect can nicely be bootstrapped, it works out of the box even for people new to Batect. However, new users still need to explicitly opt-in/-out from collecting telemetry, which may seem inconvenient.
Describe the solution you'd like
I'd like to pre-configure the collection of telemetry on a per-project basis via a setting in
batect.yml
. This has two benefits:Describe alternatives you've considered
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: