Skip to content

fix(weather): detection of overrides#1758

Merged
davo0411 merged 4 commits into
community-shaders:devfrom
SkrubbySkrubInAShrub:fix-weather-overrides-ui-not-loading-properly
Jan 25, 2026
Merged

fix(weather): detection of overrides#1758
davo0411 merged 4 commits into
community-shaders:devfrom
SkrubbySkrubInAShrub:fix-weather-overrides-ui-not-loading-properly

Conversation

@SkrubbySkrubInAShrub
Copy link
Copy Markdown
Collaborator

@SkrubbySkrubInAShrub SkrubbySkrubInAShrub commented Jan 24, 2026

The __enabled flag was being filtered out when loading cached weather settings,
preventing the UI from detecting that overrides were enabled.
The presence of this __enabled flag is not harmful as it gets filtered later when used by the lerping function.
When the overrides are enabled in the UI, this flag is also added to this cache, so this flag is almost always present except when loading the settings at startup.

Summary by CodeRabbit

  • Bug Fixes
    • Improved weather settings data handling to ensure all configuration values are properly retained.

✏️ Tip: You can customize this high-level summary in your review settings.

@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai Bot commented Jan 24, 2026

📝 Walkthrough

Walkthrough

Modified LoadSettingsFromWeather to directly assign the entire featureJson object to o_json when a weather-specific feature is enabled, rather than filtering out the __enabled key. Reduces code by six lines while maintaining existing control flow and error handling.

Changes

Cohort / File(s) Summary
Weather Settings Assignment Logic
src/WeatherManager.cpp
Changed LoadSettingsFromWeather to include __enabled key in o_json by assigning full featureJson object instead of filtering keys; net reduction of 6 lines

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~10 minutes

Possibly related PRs

Suggested reviewers

  • doodlum
  • davo0411
  • jiayev

Poem

🐰 A rabbit hops through JSON trees,
Simplifying with such ease—
No filtering, just one assign,
The whole featureJson shines so fine! ✨

🚥 Pre-merge checks | ✅ 1 | ❌ 2
❌ Failed checks (1 warning, 1 inconclusive)
Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Write docstrings for the functions missing them to satisfy the coverage threshold.
Title check ❓ Inconclusive The title 'fix(weather): detection of overrides' is vague and generic. It does not clearly describe the specific change (removing __enabled flag filtering) or its purpose (preventing UI from detecting overrides). While it relates to the PR's domain, it lacks specificity about what fix was applied. Consider a more specific title like 'fix(weather): preserve __enabled flag in LoadSettingsFromWeather' or 'fix(weather): don't strip __enabled flag to enable override detection' that better describes the actual code change.
✅ Passed checks (1 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing touches
  • 📝 Generate docstrings

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@github-actions
Copy link
Copy Markdown

github-actions Bot commented Jan 24, 2026

Using provided base ref: a22883c
Using base ref: a22883c
Base commit date: 2026-01-25T13:13:46-08:00 (Sunday, January 25, 2026 01:13 PM)
No actionable suggestions for changed features.

@github-actions
Copy link
Copy Markdown

github-actions Bot commented Jan 25, 2026

✅ A pre-release build is available for this PR:
Download

@alandtse alandtse changed the title fix(weather): don't strip __enabled flag in LoadSettingsFromWeather fix(weather): detection of overrides Jan 25, 2026
@alandtse alandtse requested a review from davo0411 January 25, 2026 06:58
@davo0411 davo0411 merged commit adffd24 into community-shaders:dev Jan 25, 2026
14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants