Skip to content

fix(config): set schema default Redis mode to "single" instead of empty string#4926

Merged
kodiakhq[bot] merged 1 commit into
v2from
rd/v2/redis-default-mode
Oct 22, 2025
Merged

fix(config): set schema default Redis mode to "single" instead of empty string#4926
kodiakhq[bot] merged 1 commit into
v2from
rd/v2/redis-default-mode

Conversation

@erka

@erka erka commented Oct 21, 2025

Copy link
Copy Markdown
Contributor

The Redis mode configuration now defaults to "single" instead of an empty
string in schema, which is more explicit and aligns with expected behavior. The empty
string option has been removed from the schema.

related flipt-io/docs#375

@codecov

codecov Bot commented Oct 21, 2025

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 59.01%. Comparing base (d3367b1) to head (aabf144).
⚠️ Report is 1 commits behind head on v2.

Additional details and impacted files
@@            Coverage Diff             @@
##               v2    flipt-io/flipt#4926      +/-   ##
==========================================
+ Coverage   58.97%   59.01%   +0.04%     
==========================================
  Files         135      135              
  Lines       16874    16874              
==========================================
+ Hits         9952     9959       +7     
+ Misses       6240     6234       -6     
+ Partials      682      681       -1     
Flag Coverage Δ
integrationtests 33.87% <ø> (+0.16%) ⬆️
unittests 49.76% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@erka
erka force-pushed the rd/v2/redis-default-mode branch from 51f30ab to 53d9021 Compare October 21, 2025 16:50
…ty string

The Redis mode configuration now defaults to "single" instead of an empty
string in schema, which is more explicit and aligns with expected behavior. The empty
string option has been removed from the schema.

Signed-off-by: Roman Dmytrenko <[email protected]>
@erka
erka force-pushed the rd/v2/redis-default-mode branch from 53d9021 to aabf144 Compare October 21, 2025 17:02
@erka erka added automerge Used by Kodiak bot to automerge PRs v2 Flipt v2 labels Oct 21, 2025
@erka
erka marked this pull request as ready for review October 21, 2025 17:13
@erka
erka requested a review from a team as a code owner October 21, 2025 17:13
@dosubot dosubot Bot added the size:S This PR changes 10-29 lines, ignoring generated files. label Oct 21, 2025
@dosubot

dosubot Bot commented Oct 21, 2025

Copy link
Copy Markdown

Documentation Updates

Checked 4 published document(s). No updates required.

How did I do? Any feedback?  Join Discord

@erka
erka requested a review from Copilot October 21, 2025 17:21

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR fixes the Redis mode configuration by changing its default value from an empty string to "single" in the schema definition. This change makes the default more explicit and aligns with expected behavior.

Key Changes:

  • Updated Redis mode default from empty string to "single" in both CUE and JSON schemas
  • Removed empty string as a valid enum option for Redis mode
  • Updated test configuration to explicitly set Redis mode to "single"

Reviewed Changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.

File Description
config/schema_test.go Added explicit Redis mode assignment and fixed bare return statement
config/flipt.schema.json Updated Redis mode default to "single", removed empty string enum option, and fixed duration defaults
config/flipt.schema.cue Changed Redis mode default from empty string to "single"

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

@erka
erka requested a review from markphelps October 21, 2025 17:24
@markphelps

Copy link
Copy Markdown
Collaborator

thank you!

@kodiakhq
kodiakhq Bot merged commit cdce547 into v2 Oct 22, 2025
32 checks passed
@kodiakhq
kodiakhq Bot deleted the rd/v2/redis-default-mode branch October 22, 2025 13:25
@github-project-automation github-project-automation Bot moved this to Done in Flipt V2 Oct 22, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

automerge Used by Kodiak bot to automerge PRs size:S This PR changes 10-29 lines, ignoring generated files. v2 Flipt v2

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

3 participants