thomaspoignant / go-feature-flag

GO Feature Flag is a simple, complete and lightweight self-hosted feature flag solution 100% Open Source. 🎛️
https://gofeatureflag.org/
MIT License
1.49k stars 148 forks source link

feat: Add config to allow surpressing notification on launch (flag cache load) #2534

Closed 8ma10s closed 4 weeks ago

8ma10s commented 1 month ago

Description

This pull request introduces a new feature to disable notifications on initialization and refactors the caching mechanism to support this feature. It also includes updates to the test suite to ensure the new functionality works as expected.

Problem

Resolution

How to test

Closes issue(s)

Resolve #2532

Checklist

netlify[bot] commented 1 month ago

Deploy Preview for go-feature-flag-doc-preview canceled.

Name Link
Latest commit ce61272685db5d3d60085312bf97855c3c3014e3
Latest deploy log https://app.netlify.com/sites/go-feature-flag-doc-preview/deploys/671a3df485f8e30008413b7a
codecov[bot] commented 1 month ago

Codecov Report

Attention: Patch coverage is 94.73684% with 1 line in your changes missing coverage. Please review.

Project coverage is 85.48%. Comparing base (a1955f0) to head (ce61272). Report is 1 commits behind head on main.

Files with missing lines Patch % Lines
cmd/relayproxy/service/gofeatureflag.go 0.00% 1 Missing :warning:
Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #2534 +/- ## ========================================== + Coverage 85.39% 85.48% +0.09% ========================================== Files 100 100 Lines 4436 4444 +8 ========================================== + Hits 3788 3799 +11 + Misses 518 516 -2 + Partials 130 129 -1 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.

8ma10s commented 1 month ago

Sorry about the repeated commits. I think I've fixed the issue, and hopefully it works now.

thomaspoignant commented 4 weeks ago

Thanks a lot for your contribution @8ma10s this is really great.

sonarcloud[bot] commented 4 weeks ago

Quality Gate Passed Quality Gate passed

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
0.0% Coverage on New Code
0.0% Duplication on New Code

See analysis details on SonarCloud

8ma10s commented 4 weeks ago

@thomaspoignant Thank you for reviewing and giving me suggestions! 🚀